Method Summary |
|
public void | addHoldOnPaymentRequest(PaymentRequestDocument document, String note) Marks a payment request on hold. |
public boolean | autoApprovePaymentRequest(PaymentRequestDocument doc, KualiDecimal defaultMinimumLimit) Checks whether the payment request document is eligible for auto approval. |
public boolean | autoApprovePaymentRequests() Retrieve a list of PREQs that aren't approved, check to see if they match specific requirements, then auto-approve them if
possible. |
public Date | calculatePayDate(Date invoiceDate, PaymentTermType terms) Calculate based on the terms and calculate a date 10 days from today. |
public void | calculatePaymentRequest(PaymentRequestDocument pr, boolean updateDiscount) Recalculate the payment request. |
public boolean | canHoldPaymentRequest(PaymentRequestDocument document, UniversalUser user) Determines if a user has permission to put the payment request on hold.
Parameters: document - The payment request document to be determined whether the user has permission to put it on hold. Parameters: user - The user whose permission to put the payment request on hold is to be determined. |
public boolean | canRemoveHoldPaymentRequest(PaymentRequestDocument document, UniversalUser user) Determines if a user has permission to remove a hold on the payment request.
Parameters: document - The payment request document to be determined whether the user has permission to remove hold on it. Parameters: user - The user whose permission to remove hold on the payment request is to be determined. |
public boolean | canUserRemoveRequestCancelOnPaymentRequest(PaymentRequestDocument document, UniversalUser user) Determines if a user has permission to remove a request for cancel on the payment request.
Parameters: document - The payment request document to be determined whether the user has permission to remove a request for cancel on it. Parameters: user - The user whose permission to remove a request for cancel on the payment request is to be determined. |
public boolean | canUserRequestCancelOnPaymentRequest(PaymentRequestDocument document, UniversalUser user) Determines if a user has permission to request cancel on the payment request.
Parameters: document - The payment request document to be determined whether the user has permission to request cancel on it. Parameters: user - The user whose permission to request cancel on the payment request is to be determined. |
public void | cancelExtractedPaymentRequest(PaymentRequestDocument paymentRequest, String note) Cancels a PREQ that has already been extracted if allowed. |
public void | deleteSummaryAccounts(Integer purapDocumentIdentifier) |
public Iterator<PaymentRequestDocument> | getImmediatePaymentRequestsToExtract(String chartCode) Get all the payment requests that are immediate and need to be extracted to PDP.
Parameters: chartCode - The chart code to be used as one of the criterias to retrieve the payment request documents. |
public PaymentRequestDocument | getPaymentRequestByDocumentNumber(String documentNumber) Obtains the payment request document given the document number.
Parameters: documentNumber - The document number to be used to obtain the payment request document. |
public PaymentRequestDocument | getPaymentRequestById(Integer poDocId) Obtains the payment request document given the purapDocumentIdentifier.
Parameters: poDocId - The purapDocumentIdentifier of the payment request document to be obtained. |
public Iterator<PaymentRequestDocument> | getPaymentRequestToExtractByChart(String chartCode) Get all the regular payment requests for a single campus.
Parameters: chartCode - The chart code to be used as one of the criterias to retrieve the payment request documents. |
public List | getPaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, KualiDecimal invoiceAmount, Date invoiceDate) Obtains a list of payment request documents given the purchase order id, the invoice amount
and the invoice date.
Parameters: poId - The purchase order id used to obtain the payment request documents. Parameters: invoiceAmount - The invoice amount used to obtain the payment request documents. Parameters: invoiceDate - The invoice date used to obtain the payment request documents. |
public List<PaymentRequestDocument> | getPaymentRequestsByPurchaseOrderId(Integer poDocId) Obtains a list of payment request documents given the purchase order id.
Parameters: poDocId - The purchase order id to be used to obtain a list of payment request documents. |
public List | getPaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, String invoiceNumber) Obtains a list of payment request documents given the vendorHeaderGeneratedIdentifier, vendorDetailAssignedIdentifier and the invoice number.
Parameters: vendorHeaderGeneratedIdentifier - The vendorHeaderGeneratedIdentifier used to obtain the payment request documents. Parameters: vendorDetailAssignedIdentifier - The vendorDetailAssignedIdentifier used to obtain the payment request documents. Parameters: invoiceNumber - The invoice number used to obtain the payment request documents. |
public Iterator<PaymentRequestDocument> | getPaymentRequestsToExtract() Get all the payment requests that need to be extracted. |
public Iterator<PaymentRequestDocument> | getPaymentRequestsToExtractByCM(String campusCode, CreditMemoDocument cmd) Get all the payment requests that match a credit memo.
Parameters: cmd - The credit memo document to be used to obtain the payment requests. |
public Iterator<PaymentRequestDocument> | getPaymentRequestsToExtractByVendor(String campusCode, VendorGroupingHelper vendor) Get all the payment requests that match a vendor. |
public Iterator<PaymentRequestDocument> | getPaymentRequestsToExtractSpecialPayments(String chartCode) Get all the special payment requests for a single chart that need to be extracted.
Parameters: chartCode - The chart code to be used as one of the criterias to retrieve the payment request documents. |
public boolean | hasDiscountItem(PaymentRequestDocument preq) This method specifies whether the payment request document has a discount item.
Parameters: preq - The payment request document to be verified whether it has a discount item. |
public boolean | isExtracted(PaymentRequestDocument document) Returns true if the payment request has been extracted
Parameters: document - The payment request document to be determined whether it is extracted. |
public boolean | isInvoiceDateAfterToday(Date invoiceDate) Determines whether the invoice date is after today.
Parameters: invoiceDate - The invoice date to be determined whether it's after today. |
public void | markPaid(PaymentRequestDocument pr, Date processDate) Mark a payment request as being paid and set the payment request's paid date as the processDate. |
public HashMap<String, String> | paymentRequestDuplicateMessages(PaymentRequestDocument document) Performs the processing to check whether the payment request is a duplicate and if so, adds
the information about the type of duplication into the resulting HashMap to be returned by this method.
Parameters: document - The payment request document to be processed/checked for duplicates. |
public void | populateAndSavePaymentRequest(PaymentRequestDocument preq) Populate and save payment request. |
public void | populatePaymentRequest(PaymentRequestDocument preq) Populate payment request. |
public void | removeHoldOnPaymentRequest(PaymentRequestDocument document, String note) Removes a hold on a payment request. |
public void | removeRequestCancelOnPaymentRequest(PaymentRequestDocument document, String note) Removes a request cancel on payment request. |
public void | requestCancelOnPaymentRequest(PaymentRequestDocument document, String note) Marks a payment request as requested to be canceled. |
public void | resetExtractedPaymentRequest(PaymentRequestDocument paymentRequest, String note) Resets a Payment Request that had an associated Payment Request or Credit Memo cancelled externally. |
public void | saveDocumentWithoutValidation(PaymentRequestDocument paymentRequestDocument) Persists the payment request without business rule checks. |