public interface PurapAccountingService
Modifier and Type | Method and Description |
---|---|
void |
convertMoneyToPercent(InvoiceDocument inv)
Converts the amount to percent and updates the percent field on the CreditMemoAccount
|
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.core.api.util.type.KualiDecimal totalAmount,
Integer percentScale)
Deprecated.
|
List<PurApAccountingLine> |
generateAccountDistributionForProration(List<SourceAccountingLine> accounts,
org.kuali.rice.core.api.util.type.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)
|
List |
getSummaryAccountsbyCreditMemoIdentifier(Integer creditMemoIdentifier)
Retrieves the summary accounts by credit memo document id.
|
List |
getSummaryAccountsbyInvoiceIdentifier(Integer invoicetIdentifier)
Retrieves the summary accounts by Invoice document id.
|
List |
getSummaryAccountsbyPaymentRequestIdentifier(Integer paymentRequestIdentifier)
Retrieves the summary accounts by payment request document id.
|
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.
|
<T extends PurApAccountingLine> |
updateAccountAmountsWithTotal(List<T> sourceAccountingLines,
org.kuali.rice.core.api.util.type.KualiDecimal totalAmount)
calculates values for a list of accounting lines based on an amount
|
<T extends PurApAccountingLine> |
updateAccountAmountsWithTotal(List<T> sourceAccountingLines,
org.kuali.rice.core.api.util.type.KualiDecimal totalAmount,
org.kuali.rice.core.api.util.type.KualiDecimal discountAmount)
calculates values for a list of accounting lines based on an amount taking discount into account
|
void |
updateItemAccountAmounts(PurApItem item)
Updates a single items account amounts
|
<T extends PurApAccountingLine> |
updatePreqAccountAmountsWithTotal(List<T> sourceAccountingLines,
org.kuali.rice.core.api.util.type.KualiDecimal totalAmount)
calculates values for a list of accounting lines based on an amount on preq for sequential method.
|
void |
updatePreqItemAccountAmounts(PurApItem item)
Updates a single preq item accounts amounts
|
<T extends PurApAccountingLine> |
updatePreqProporationalAccountAmountsWithTotal(List<T> sourceAccountingLines,
org.kuali.rice.core.api.util.type.KualiDecimal totalAmount)
calculates values for a list of accounting lines based on an amount on preq for proportional method.
|
void |
updatePreqProportionalItemAccountAmounts(PurApItem item)
Updates a single preq item accounts amounts
|
@Deprecated List<PurApAccountingLine> generateAccountDistributionForProration(List<SourceAccountingLine> accounts, org.kuali.rice.core.api.util.type.KualiDecimal totalAmount, Integer percentScale)
accounts
- totalAmount
- percentScale
- List<PurApAccountingLine> generateAccountDistributionForProration(List<SourceAccountingLine> accounts, org.kuali.rice.core.api.util.type.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 AccountList<PurApAccountingLine> generateAccountDistributionForProrationWithZeroTotal(PurchasingAccountsPayableDocument purapdoc)
accounts
- the incoming source accounts from generateSummarypercentScale
- the scale to round toclazz
- the class of the Purchasing Accounts Payable AccountList<SummaryAccount> generateSummaryAccounts(PurchasingAccountsPayableDocument document)
document
- the document to generate the summary accounts fromList<SummaryAccount> generateSummaryAccountsWithNoZeroTotals(PurchasingAccountsPayableDocument document)
document
- the document to generate the summary accounts fromList<SummaryAccount> generateSummaryAccountsWithNoZeroTotalsNoUseTax(PurchasingAccountsPayableDocument document)
document
- the document to generate the summary accounts fromList<SourceAccountingLine> generateSummary(List<PurApItem> items)
document
- the document to generate the summary fromList<SourceAccountingLine> generateSummaryTaxableAccounts(List<PurApItem> items)
items
- List<SourceAccountingLine> generateSummaryWithNoZeroTotals(List<PurApItem> items)
items
- the items to generate source accounts fromList<SourceAccountingLine> generateSummaryWithNoZeroTotalsNoUseTax(List<PurApItem> items)
items
- the items to generate source accounts fromList<SourceAccountingLine> generateSummaryWithNoZeroTotalsUsingAlternateAmount(List<PurApItem> items)
items
- the items to generate source accounts fromList<SourceAccountingLine> generateSummaryExcludeItemTypes(List<PurApItem> items, Set excludedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to excludeList<SourceAccountingLine> generateSummaryExcludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set excludedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to excludeList<SourceAccountingLine> generateSummaryIncludeItemTypes(List<PurApItem> items, Set includedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to includeList<SourceAccountingLine> generateSummaryIncludeItemTypesAndNoZeroTotals(List<PurApItem> items, Set includedItemTypeCodes)
items
- the items to generate source accounts fromexcludedItemTypeCodes
- the item types to includevoid updateAccountAmounts(PurchasingAccountsPayableDocument document)
document
- the documentvoid updateItemAccountAmounts(PurApItem item)
item
- void updatePreqItemAccountAmounts(PurApItem item)
item
- void updatePreqProportionalItemAccountAmounts(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.void convertMoneyToPercent(InvoiceDocument inv)
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.core.api.util.type.KualiDecimal totalAmount)
T
- sourceAccountingLines
- totalAmount
- <T extends PurApAccountingLine> void updateAccountAmountsWithTotal(List<T> sourceAccountingLines, org.kuali.rice.core.api.util.type.KualiDecimal totalAmount, org.kuali.rice.core.api.util.type.KualiDecimal discountAmount)
T
- sourceAccountingLines
- totalAmount
- discountAmount
- <T extends PurApAccountingLine> void updatePreqAccountAmountsWithTotal(List<T> sourceAccountingLines, org.kuali.rice.core.api.util.type.KualiDecimal totalAmount)
T
- sourceAccountingLines
- totalAmount
- <T extends PurApAccountingLine> void updatePreqProporationalAccountAmountsWithTotal(List<T> sourceAccountingLines, org.kuali.rice.core.api.util.type.KualiDecimal totalAmount)
T
- sourceAccountingLines
- totalAmount
- List<SourceAccountingLine> mergeAccountingLineLists(List<SourceAccountingLine> accountingLines1, List<SourceAccountingLine> accountingLines2)
list1
- list2
- List getSummaryAccountsbyPaymentRequestIdentifier(Integer paymentRequestIdentifier)
paymentRequestIdentifier
- - payment request document idList getSummaryAccountsbyInvoiceIdentifier(Integer invoicetIdentifier)
invoicetIdentifier
- - payment request document idList getSummaryAccountsbyCreditMemoIdentifier(Integer creditMemoIdentifier)
creditMemoIdentifier
- - credit memo document idCopyright © 2004–2015 The Kuali Foundation. All rights reserved.