public interface CreditMemoService extends AccountsPayableDocumentSpecificService
Modifier and Type | Method and Description |
---|---|
VendorCreditMemoDocument |
addHoldOnCreditMemo(VendorCreditMemoDocument cmDocument,
String note)
Marks a credit memo as on hold.
|
void |
calculateCreditMemo(VendorCreditMemoDocument cmDocument)
Performs the credit memo item extended price calculation.
|
void |
cancelExtractedCreditMemo(VendorCreditMemoDocument cmDocument,
String note)
This is called by PDP to cancel a CreditMemoDocument that has already been extracted
|
String |
creditMemoDuplicateMessages(VendorCreditMemoDocument cmDocument)
Makes call to dao to check for duplicate credit memos, and if one is found a message is returned.
|
VendorCreditMemoDocument |
getCreditMemoByDocumentNumber(String documentNumber)
Get a credit memo by document number.
|
VendorCreditMemoDocument |
getCreditMemoDocumentById(Integer purchasingDocumentIdentifier)
Retrieves the Credit Memo document by the purapDocumentIdentifier.
|
List<VendorCreditMemoDocument> |
getCreditMemosToExtract(String chartCode)
Gets the Credit memos that can be extracted.
|
Collection<VendorCreditMemoDocument> |
getCreditMemosToExtractByVendor(String chartCode,
VendorGroupingHelper vendor)
Pulls all extractable credit memo documents for a given vendor.
|
List<PurchaseOrderItem> |
getPOInvoicedItems(PurchaseOrderDocument poDocument)
Iterates through the items of the purchase order document and checks for items that have been invoiced.
|
Set<VendorGroupingHelper> |
getVendorsOnCreditMemosToExtract(String chartCode)
Pulls a distinct list of all vendors on CM documents which are ready for extraction.
|
boolean |
hasActiveCreditMemosForPurchaseOrder(Integer purchaseOrderIdentifier)
Determines if there are active credit memos for a purchase order.
|
void |
markPaid(VendorCreditMemoDocument cm,
Date processDate)
Mark a credit memo is being used on a payment
|
void |
populateAndSaveCreditMemo(VendorCreditMemoDocument creditMemoDocument)
Persists the credit memo with business rule checks.
|
void |
populateDocumentAfterInit(VendorCreditMemoDocument cmDocument)
Populates the document from either the associated payment request document, purchase order document, or vendor detail based
on the credit memo type.
|
VendorCreditMemoDocument |
removeHoldOnCreditMemo(VendorCreditMemoDocument cmDocument,
String note)
Removes a hold on the credit memo document.
|
void |
reopenClosedPO(VendorCreditMemoDocument cmDocument)
Reopens the purchase order document related to the given credit memo
document if it is closed.
|
void |
resetExtractedCreditMemo(VendorCreditMemoDocument cmDocument,
String note)
This is called by PDP to cancel a CreditMemoDocument that has already been extracted
|
generateGLEntriesCreateAccountsPayableDocument, getPersonForCancel, poItemEligibleForAp, shouldPurchaseOrderBeReversed, takePurchaseOrderCancelAction, updateStatusByNode
void populateDocumentAfterInit(VendorCreditMemoDocument cmDocument)
cmDocument
- - Credit Memo Document to PopulateList<VendorCreditMemoDocument> getCreditMemosToExtract(String chartCode)
chartCode
- Chart to select from.Set<VendorGroupingHelper> getVendorsOnCreditMemosToExtract(String chartCode)
chartCode
- Collection<VendorCreditMemoDocument> getCreditMemosToExtractByVendor(String chartCode, VendorGroupingHelper vendor)
chartCode
- vendor
- VendorCreditMemoDocument getCreditMemoByDocumentNumber(String documentNumber)
documentNumber
- The document number of the credit memo to be retrieved.VendorCreditMemoDocument getCreditMemoDocumentById(Integer purchasingDocumentIdentifier)
purchasingDocumentIdentifier
- The purapDocumentIdentifier of the credit memo to be retrieved.String creditMemoDuplicateMessages(VendorCreditMemoDocument cmDocument)
cmDocument
- - CreditMemoDocument to run duplicate check on.List<PurchaseOrderItem> getPOInvoicedItems(PurchaseOrderDocument poDocument)
poDocument
- - purchase order document containing the lines to check.void populateAndSaveCreditMemo(VendorCreditMemoDocument creditMemoDocument)
creditMemoDocument
- - credit memo document to save.void calculateCreditMemo(VendorCreditMemoDocument cmDocument)
cmDocument
- - credit memo document to calculate.VendorCreditMemoDocument addHoldOnCreditMemo(VendorCreditMemoDocument cmDocument, String note) throws Exception
cmDocument
- - credit memo document to hold.note
- - note explaining why the document is being put on hold.Exception
VendorCreditMemoDocument removeHoldOnCreditMemo(VendorCreditMemoDocument cmDocument, String note) throws Exception
cmDocument
- - credit memo document to remove hold on.note
- - note explaining why the credit memo is being taken off hold.Exception
void resetExtractedCreditMemo(VendorCreditMemoDocument cmDocument, String note)
cmDocument
- The credit memo document to be resetted.note
- The note to be added to the credit memo document.void cancelExtractedCreditMemo(VendorCreditMemoDocument cmDocument, String note)
cmDocument
- The credit memo document to be canceled.note
- The note to be added to the document to be canceled.void reopenClosedPO(VendorCreditMemoDocument cmDocument)
cmDocument
- The credit memo document to be used to obtained the
purchase order document to be closed.void markPaid(VendorCreditMemoDocument cm, Date processDate)
cm
- The credit memo document to be marked as paid.processDate
- The date to be set as the credit memo's paid timestamp.boolean hasActiveCreditMemosForPurchaseOrder(Integer purchaseOrderIdentifier)
purchaseOrderIdentifier
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.