|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PurapAccountingService
This class is used to generate Account Summaries for the Purchasing Accounts Payable Module account lists as well as to generate account lists that can be used for distribution to below the line items or any other items that may require distribution
Method Summary | ||
---|---|---|
void |
convertMoneyToPercent(PaymentRequestDocument pr)
Converts the amount to percent and updates the percent field on the CreditMemoAccount |
|
void |
deleteSummaryAccounts(Integer purapDocumentIdentifier,
String docType)
Deletes the ap summary accounts by the id of the doc type (Payment Request - PREQ or Credit Memo - CM) |
|
List<PurApAccountingLine> |
generateAccountDistributionForProration(List<SourceAccountingLine> accounts,
org.kuali.rice.kns.util.KualiDecimal totalAmount,
Integer percentScale)
Deprecated. |
|
List<PurApAccountingLine> |
generateAccountDistributionForProration(List<SourceAccountingLine> accounts,
org.kuali.rice.kns.util.KualiDecimal totalAmount,
Integer percentScale,
Class clazz)
Determines an appropriate account distribution for a particular Purchasing Accounts Payable list of Accounts. |
|
List<PurApAccountingLine> |
generateAccountDistributionForProrationWithZeroTotal(PurchasingAccountsPayableDocument purapdoc)
Determines an appropriate account distribution for a particular Purchasing Accounts Payable list of Accounts. |
|
List<SourceAccountingLine> |
generateSourceAccountsForVendorRemit(PurchasingAccountsPayableDocument document)
This method generates summary accounts for a vendor payment. |
|
List<SourceAccountingLine> |
generateSummary(List<PurApItem> items)
Generates an account summary, that is it creates a list of source accounts by rounding up the Purchasing Accounts Payable accounts off of the Purchasing Accounts Payable items. |
|
List<SummaryAccount> |
generateSummaryAccounts(PurchasingAccountsPayableDocument document)
This creates summary accounts based on a list of items. |
|
List<SummaryAccount> |
generateSummaryAccountsWithNoZeroTotals(PurchasingAccountsPayableDocument document)
This creates summary accounts based on a list of items excluding zero totals. |
|
List<SummaryAccount> |
generateSummaryAccountsWithNoZeroTotalsNoUseTax(PurchasingAccountsPayableDocument document)
This creates summary accounts based on a list of items excluding zero totals and use tax. |
|
List<SourceAccountingLine> |
generateSummaryExcludeItemTypes(List<PurApItem> items,
Set excludedItemTypeCodes)
convenience method that generates a list of source accounts while excluding items with the specified item types |
|
List<SourceAccountingLine> |
generateSummaryExcludeItemTypesAndNoZeroTotals(List<PurApItem> items,
Set excludedItemTypeCodes)
convenience method that generates a list of source accounts while excluding items with the specified item types and not including items with zero totals |
|
List<SourceAccountingLine> |
generateSummaryIncludeItemTypes(List<PurApItem> items,
Set includedItemTypeCodes)
convenience method that generates a list of source accounts while only including items with the specified item types |
|
List<SourceAccountingLine> |
generateSummaryIncludeItemTypesAndNoZeroTotals(List<PurApItem> items,
Set includedItemTypeCodes)
convenience method that generates a list of source accounts while only including items with the specified item types and not including items with zero totals |
|
List<SourceAccountingLine> |
generateSummaryTaxableAccounts(List<PurApItem> items)
Generates an account summary with only taxable accounts. |
|
List<SourceAccountingLine> |
generateSummaryWithNoZeroTotals(List<PurApItem> items)
convenience method that generates a list of source accounts while excluding items with $0 amounts |
|
List<SourceAccountingLine> |
generateSummaryWithNoZeroTotalsNoUseTax(List<PurApItem> items)
convenience method that generates a list of source accounts while excluding items with $0 amounts and use tax |
|
List<SourceAccountingLine> |
generateSummaryWithNoZeroTotalsUsingAlternateAmount(List<PurApItem> items)
convenience method that generates a list of source accounts while excluding items with $0 amounts and using the alternate amount |
|
List<UseTaxContainer> |
generateUseTaxAccount(PurchasingAccountsPayableDocument document)
Generates use tax helper class for a purap document |
|
List<PurApAccountingLine> |
getAccountsFromItem(PurApItem item)
|
|
List |
getAccountsPayableSummaryAccounts(Integer purapDocumentIdentifier,
String docType)
Retrieves the ap summary accounts by the id of the doc type (Payment Request - PREQ or Credit Memo - CM) |
|
boolean |
isTaxAccount(PurchasingAccountsPayableDocument document,
SourceAccountingLine account)
Checks whether the specified accounting line in the specified PurAP document is used for tax withholding. |
|
List<SourceAccountingLine> |
mergeAccountingLineLists(List<SourceAccountingLine> accountingLines1,
List<SourceAccountingLine> accountingLines2)
Merges list 2 into list 1 |
|
void |
updateAccountAmounts(PurchasingAccountsPayableDocument document)
Updates account amounts based on the percents. |
|
|
updateAccountAmountsWithTotal(List<T> sourceAccountingLines,
org.kuali.rice.kns.util.KualiDecimal totalAmount)
calculates values for a list of accounting lines based on an amount |
|
void |
updateItemAccountAmounts(PurApItem item)
Updates a single items account amounts |
Method Detail |
---|
List<PurApAccountingLine> generateAccountDistributionForProration(List<SourceAccountingLine> accounts, org.kuali.rice.kns.util.KualiDecimal totalAmount, Integer percentScale)
accounts
- totalAmount
- percentScale
-
List<PurApAccountingLine> generateAccountDistributionForProration(List<SourceAccountingLine> accounts, org.kuali.rice.kns.util.KualiDecimal totalAmount, Integer percentScale, Class clazz)
accounts
- the incoming source accounts from generateSummarytotalAmount
- the total amount of the documentpercentScale
- the scale to round toclazz
- the class of the Purchasing Accounts Payable Account
List<PurApAccountingLine> generateAccountDistributionForProrationWithZeroTotal(PurchasingAccountsPayableDocument purapdoc)
accounts
- the incoming source accounts from generateSummarypercentScale
- the scale to round toclazz
- the class of the Purchasing Accounts Payable Account
List<SummaryAccount> generateSummaryAccounts(PurchasingAccountsPayableDocument document)
document
- the document to generate the summary accounts from
List<SummaryAccount> generateSummaryAccountsWithNoZeroTotals(PurchasingAccountsPayableDocument document)
document
- the document to generate the summary accounts from
List<SummaryAccount> generateSummaryAccountsWithNoZeroTotalsNoUseTax(PurchasingAccountsPayableDocument document)
document
- the document to generate the summary accounts from
List<SourceAccountingLine> generateSummary(List<PurApItem> items)
document
- the document to generate the summary from
List<SourceAccountingLine> generateSummaryTaxableAccounts(List<PurApItem> items)
items
-
List<SourceAccountingLine> generateSummaryWithNoZeroTotals(List<PurApItem> items)
items
- the items to generate source accounts from
List<SourceAccountingLine> generateSummaryWithNoZeroTotalsNoUseTax(List<PurApItem> items)
items
- the items to generate source accounts from
List<SourceAccountingLine> generateSummaryWithNoZeroTotalsUsingAlternateAmount(List<PurApItem> items)
items
- the items to generate source accounts from
List<SourceAccountingLine> generateSummaryExcludeItemTypes(List<PurApItem> items, Set excludedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to exclude
List<SourceAccountingLine> generateSummaryExcludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set excludedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to exclude
List<SourceAccountingLine> generateSummaryIncludeItemTypes(List<PurApItem> items, Set includedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to include
List<SourceAccountingLine> generateSummaryIncludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set includedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to include
void updateAccountAmounts(PurchasingAccountsPayableDocument document)
document
- the documentvoid updateItemAccountAmounts(PurApItem item)
item
- List<PurApAccountingLine> getAccountsFromItem(PurApItem item)
void deleteSummaryAccounts(Integer purapDocumentIdentifier, String docType)
purapDocumentIdentifier
- The purapDocumentIdentifier of the document whose summary accounts are to be deleted.List getAccountsPayableSummaryAccounts(Integer purapDocumentIdentifier, String docType)
purapDocumentIdentifier
- The purapDocumentIdentifier of the document.List<SourceAccountingLine> generateSourceAccountsForVendorRemit(PurchasingAccountsPayableDocument document)
document
-
void convertMoneyToPercent(PaymentRequestDocument pr)
pr
- The payment request document containing the accounts whose percentage would be set.List<UseTaxContainer> generateUseTaxAccount(PurchasingAccountsPayableDocument document)
document
-
boolean isTaxAccount(PurchasingAccountsPayableDocument document, SourceAccountingLine account)
document
- the specified PurAP documentaccount
- the specified accounting line
<T extends PurApAccountingLine> void updateAccountAmountsWithTotal(List<T> sourceAccountingLines, org.kuali.rice.kns.util.KualiDecimal totalAmount)
T
- sourceAccountingLines
- totalAmount
- List<SourceAccountingLine> mergeAccountingLineLists(List<SourceAccountingLine> accountingLines1, List<SourceAccountingLine> accountingLines2)
list1
- list2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |