| org.kuali.module.purap.service.PurapAccountingService
All known Subclasses: org.kuali.module.purap.service.impl.PurapAccountingServiceImpl,
PurapAccountingService | public interface PurapAccountingService (Code) | | 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 | |
public List<PurApAccountingLine> | generateAccountDistributionForProration(List<SourceAccountingLine> accounts, KualiDecimal totalAmount, Integer percentScale) | public List<PurApAccountingLine> | generateAccountDistributionForProration(List<SourceAccountingLine> accounts, KualiDecimal totalAmount, Integer percentScale, Class clazz) Determines an appropriate account distribution for a particular Purchasing Accounts Payable list of Accounts. | public List<PurApAccountingLine> | generateAccountDistributionForProrationWithZeroTotal(List<PurApAccountingLine> accounts, Integer percentScale) Determines an appropriate account distribution for a particular Purchasing Accounts Payable list of Accounts. | public 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. | public List<SummaryAccount> | generateSummaryAccounts(PurchasingAccountsPayableDocument document) This creates summary accounts based on a list of items. | public List<SourceAccountingLine> | generateSummaryExcludeItemTypes(List<PurApItem> items, Set excludedItemTypeCodes) | public List<SourceAccountingLine> | generateSummaryExcludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set excludedItemTypeCodes) | public List<SourceAccountingLine> | generateSummaryIncludeItemTypes(List<PurApItem> items, Set includedItemTypeCodes) | public List<SourceAccountingLine> | generateSummaryIncludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set includedItemTypeCodes) | public List<SourceAccountingLine> | generateSummaryWithNoZeroTotals(List<PurApItem> items) | public List<SourceAccountingLine> | generateSummaryWithNoZeroTotalsUsingAlternateAmount(List<PurApItem> items) | public List<PurApAccountingLine> | getAccountsFromItem(PurApItem item) | public void | updateAccountAmounts(PurchasingAccountsPayableDocument document) This method updates account amounts based on the percents. | public void | updateItemAccountAmounts(PurApItem item) |
generateAccountDistributionForProration | public List<PurApAccountingLine> generateAccountDistributionForProration(List<SourceAccountingLine> accounts, KualiDecimal totalAmount, Integer percentScale, Class clazz)(Code) | | Determines an appropriate account distribution for a particular Purchasing Accounts Payable list of Accounts. It does this by looking at the accounts that were provided
which should be generated from a generateSummary method. It then builds up a list of PurApAccountingLines (specified by the Class variable) and tries to determine the
appropriate percents to use on the new accounts, this may require some moving of percents to the last account as a slush.
Parameters: accounts - the incoming source accounts from generateSummary Parameters: totalAmount - the total amount of the document Parameters: percentScale - the scale to round to Parameters: clazz - the class of the Purchasing Accounts Payable Account a list of new Purchasing Accounts Payable Accounts |
generateAccountDistributionForProrationWithZeroTotal | public List<PurApAccountingLine> generateAccountDistributionForProrationWithZeroTotal(List<PurApAccountingLine> accounts, Integer percentScale)(Code) | | Determines an appropriate account distribution for a particular Purchasing Accounts Payable list of Accounts. It does this by looking at the accounts that were provided
which should be generated from a generateSummary method. It then builds up a list of PurApAccountingLines (specified by the Class variable) and tries to determine the
appropriate percents to use on the new accounts, this may require some moving of percents to the last account as a slush. This is called when a document has a zero dollar
total
Parameters: accounts - the incoming source accounts from generateSummary Parameters: percentScale - the scale to round to Parameters: clazz - the class of the Purchasing Accounts Payable Account a list of new Purchasing Accounts Payable Accounts |
generateSummary | public List<SourceAccountingLine> generateSummary(List<PurApItem> items)(Code) | | 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.
Parameters: document - the document to generate the summary from a list of source accounts |
generateSummaryExcludeItemTypes | public List<SourceAccountingLine> generateSummaryExcludeItemTypes(List<PurApItem> items, Set excludedItemTypeCodes)(Code) | | convenience method that generates a list of source accounts while excluding items with
the specified item types
Parameters: items - the items to generate source accounts from Parameters: excludedItemTypeCodes - the item types to exclude a list of source accounts "rolled up" from the purap accounts |
generateSummaryExcludeItemTypesAndNoZeroTotals | public List<SourceAccountingLine> generateSummaryExcludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set excludedItemTypeCodes)(Code) | | convenience method that generates a list of source accounts while excluding items with
the specified item types and not including items with zero totals
Parameters: items - the items to generate source accounts from Parameters: excludedItemTypeCodes - the item types to exclude a list of source accounts "rolled up" from the purap accounts |
generateSummaryIncludeItemTypes | public List<SourceAccountingLine> generateSummaryIncludeItemTypes(List<PurApItem> items, Set includedItemTypeCodes)(Code) | | convenience method that generates a list of source accounts while only including items with
the specified item types
Parameters: items - the items to generate source accounts from Parameters: excludedItemTypeCodes - the item types to include a list of source accounts "rolled up" from the purap accounts |
generateSummaryIncludeItemTypesAndNoZeroTotals | public List<SourceAccountingLine> generateSummaryIncludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set includedItemTypeCodes)(Code) | | 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
Parameters: items - the items to generate source accounts from Parameters: excludedItemTypeCodes - the item types to include a list of source accounts "rolled up" from the purap accounts |
generateSummaryWithNoZeroTotals | public List<SourceAccountingLine> generateSummaryWithNoZeroTotals(List<PurApItem> items)(Code) | | convenience method that generates a list of source accounts while excluding items with
$0 amounts
Parameters: items - the items to generate source accounts from a list of source accounts "rolled up" from the purap accounts |
generateSummaryWithNoZeroTotalsUsingAlternateAmount | public List<SourceAccountingLine> generateSummaryWithNoZeroTotalsUsingAlternateAmount(List<PurApItem> items)(Code) | | convenience method that generates a list of source accounts while excluding items with
$0 amounts and using the alternate amount
Parameters: items - the items to generate source accounts from a list of source accounts "rolled up" from the purap accounts |
updateAccountAmounts | public void updateAccountAmounts(PurchasingAccountsPayableDocument document)(Code) | | This method updates account amounts based on the percents.
Parameters: document - the document |
updateItemAccountAmounts | public void updateItemAccountAmounts(PurApItem item)(Code) | | This method updates a single items account amounts
Parameters: item - |
|
|