Method Summary |
|
public void | addHoldOnCreditMemo(CreditMemoDocument cmDocument, String note) Marks a credit memo as on hold. |
public void | calculateCreditMemo(CreditMemoDocument cmDocument) Performs the credit memo item extended price calculation. |
public boolean | canCancelCreditMemo(CreditMemoDocument cmDocument, UniversalUser user) Determines if the document can be canceled and if the given user has permission to do so.
Document can be canceled if not in canceled status already, extracted date is null, hold indicator is false, and user is
member of the accounts payable workgroup.
Parameters: cmDocument - - credit memo document to cancel. Parameters: user - - user requesting the cancel. |
public boolean | canHoldCreditMemo(CreditMemoDocument cmDocument, UniversalUser user) Determines if the document can be put on hold and if the user has permission to do so.
Must be an Accounts Payable user, credit memo not already on hold, extracted date is null, and credit memo
status approved or complete.
Parameters: cmDocument - - credit memo document to hold. Parameters: user - - user requesting the hold. |
public boolean | canRemoveHoldCreditMemo(CreditMemoDocument cmDocument, UniversalUser user) Determines if the document can be taken off hold and if the given user has permission to do so.
Must be person who put credit memo on hold or accounts payable supervisor and credit memo must be on hold.
Parameters: cmDocument - - credit memo document that is on hold. Parameters: user - - user requesting to remove the hold. |
public void | cancelExtractedCreditMemo(CreditMemoDocument cmDocument, String note) |
public String | creditMemoDuplicateMessages(CreditMemoDocument cmDocument) Makes call to dao to check for duplicate credit memos, and if one is found a message is returned. |
public CreditMemoDocument | getCreditMemoByDocumentNumber(String documentNumber) Get a credit memo by document number.
Parameters: documentNumber - The document number of the credit memo to be retrieved. |
public CreditMemoDocument | getCreditMemoDocumentById(Integer purchasingDocumentIdentifier) Retrieves the Credit Memo document by the purapDocumentIdentifier.
Parameters: purchasingDocumentIdentifier - The purapDocumentIdentifier of the credit memo to be retrieved. |
public Iterator<CreditMemoDocument> | getCreditMemosToExtract(String chartCode) Gets the Credit memos that can be extracted.
Parameters: chartCode - Chart to select from. |
public Iterator<CreditMemoDocument> | getCreditMemosToExtractByVendor(String chartCode, VendorGroupingHelper vendor) Pulls all extractable credit memo documents for a given vendor. |
public List<PurchaseOrderItem> | getPOInvoicedItems(PurchaseOrderDocument poDocument) Iterates through the items of the purchase order document and checks for items that have been invoiced.
Parameters: poDocument - - purchase order document containing the lines to check. |
public Set<VendorGroupingHelper> | getVendorsOnCreditMemosToExtract(String chartCode) Pulls a distinct list of all vendors on CM documents which are ready for extraction. |
public void | markPaid(CreditMemoDocument cm, Date processDate) |
public void | populateAndSaveCreditMemo(CreditMemoDocument creditMemoDocument) Persists the credit memo with business rule checks. |
public void | removeHoldOnCreditMemo(CreditMemoDocument cmDocument, String note) Removes a hold on the credit memo document. |
public void | reopenClosedPO(CreditMemoDocument cmDocument) Reopens the purchase order document related to the given credit memo
document if it is closed. |
public void | resetExtractedCreditMemo(CreditMemoDocument cmDocument, String note) |
public void | saveDocumentWithoutValidation(CreditMemoDocument creditMemoDocument) Persists the credit memo without business rule checks. |