|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaymentRequestService
Defines methods that must be implemented by a PaymentRequestService implementation.
Method Summary | |
---|---|
PaymentRequestDocument |
addHoldOnPaymentRequest(PaymentRequestDocument document,
String note)
Marks a payment request on hold. |
boolean |
allowBackpost(PaymentRequestDocument paymentRequestDocument)
Payment Requests created in the previous fiscal year get backdated if we're at the beginning of the new fiscal year (i.e. |
boolean |
autoApprovePaymentRequest(PaymentRequestDocument doc,
org.kuali.rice.kns.util.KualiDecimal defaultMinimumLimit)
Checks whether the payment request document is eligible for auto approval. |
boolean |
autoApprovePaymentRequest(String docNumber,
org.kuali.rice.kns.util.KualiDecimal defaultMinimumLimit)
Checks whether the payment request document is eligible for auto approval. |
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. |
Date |
calculatePayDate(Date invoiceDate,
PaymentTermType terms)
Calculate based on the terms and calculate a date 10 days from today. |
void |
calculatePaymentRequest(PaymentRequestDocument pr,
boolean updateDiscount)
Recalculate the payment request. |
void |
calculateTaxArea(PaymentRequestDocument preq)
Performs calculations on the tax edit area, generates and adds NRA tax charge items as below the line items, with their accounting lines; the calculation will activate updates on the account summary tab and the general ledger entries as well. |
void |
cancelExtractedPaymentRequest(PaymentRequestDocument paymentRequest,
String note)
Cancels a PREQ that has already been extracted if allowed. |
void |
changeVendor(PaymentRequestDocument preq,
Integer headerId,
Integer detailId)
Changes the current vendor to the vendor passed in. |
String |
createPreqDocumentDescription(Integer purchaseOrderIdentifier,
String vendorName)
A method to create the description for the payment request document. |
boolean |
encumberedItemExistsForInvoicing(PurchaseOrderDocument document)
|
Collection<PaymentRequestDocument> |
getImmediatePaymentRequestsToExtract(String chartCode)
Get all the payment requests that are immediate and need to be extracted to PDP. |
PaymentRequestDocument |
getPaymentRequestByDocumentNumber(String documentNumber)
Obtains the payment request document given the document number. |
PaymentRequestDocument |
getPaymentRequestById(Integer poDocId)
Obtains the payment request document given the purapDocumentIdentifier. |
List |
getPaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId,
org.kuali.rice.kns.util.KualiDecimal invoiceAmount,
Date invoiceDate)
Obtains a list of payment request documents given the purchase order id, the invoice amount and the invoice date. |
List<PaymentRequestDocument> |
getPaymentRequestsByPurchaseOrderId(Integer poDocId)
Obtains a list of payment request documents given the purchase order id. |
List |
getPaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier)
Obtains a list of payment request documents given the vendorHeaderGeneratedIdentifier, vendorDetailAssignedIdentifier and the invoice number. |
List |
getPaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier,
String invoiceNumber)
Obtains a list of payment request documents given the vendorHeaderGeneratedIdentifier, vendorDetailAssignedIdentifier and the invoice number. |
Collection<PaymentRequestDocument> |
getPaymentRequestsToExtract(Date onOrBeforePaymentRequestPayDate)
Get all the payment requests that need to be extracted. |
Iterator<PaymentRequestDocument> |
getPaymentRequestsToExtractByCM(String campusCode,
VendorCreditMemoDocument cmd)
Get all the payment requests that match a credit memo. |
Collection<PaymentRequestDocument> |
getPaymentRequestsToExtractByVendor(String campusCode,
VendorGroupingHelper vendor,
Date onOrBeforePaymentRequestPayDate)
Get all the payment requests that match a vendor. |
Collection<PaymentRequestDocument> |
getPaymentRequestsToExtractSpecialPayments(String chartCode,
Date onOrBeforePaymentRequestPayDate)
Get all the special payment requests for a single chart that need to be extracted. |
Collection<PaymentRequestDocument> |
getPaymentRequestToExtractByChart(String chartCode,
Date onOrBeforePaymentRequestPayDate)
Get all the regular payment requests for a single campus. |
boolean |
hasActivePaymentRequestsForPurchaseOrder(Integer purchaseOrderIdentifier)
Determines if there are active payment requests for a purchase order. |
boolean |
hasDiscountItem(PaymentRequestDocument preq)
This method specifies whether the payment request document has a discount item. |
boolean |
isExtracted(PaymentRequestDocument document)
Returns true if the payment request has been extracted |
boolean |
isInvoiceDateAfterToday(Date invoiceDate)
Determines whether the invoice date is after today. |
boolean |
isPurchaseOrderValidForPaymentRequestDocumentCreation(PaymentRequestDocument paymentRequestDocument,
PurchaseOrderDocument po)
|
void |
markPaid(PaymentRequestDocument pr,
Date processDate)
Mark a payment request as being paid and set the payment request's paid date as the processDate. |
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. |
void |
populateAndSavePaymentRequest(PaymentRequestDocument preq)
Populate and save payment request. |
void |
populatePaymentRequest(PaymentRequestDocument preq)
Populate payment request. |
void |
processPaymentRequestInReceivingStatus()
|
PaymentRequestDocument |
removeHoldOnPaymentRequest(PaymentRequestDocument document,
String note)
Removes a hold on a payment request. |
void |
removeIneligibleAdditionalCharges(PaymentRequestDocument document)
Removes additional charge items that are not eligible on the payment request document. |
void |
removeRequestCancelOnPaymentRequest(PaymentRequestDocument document,
String note)
Removes a request cancel on payment request. |
void |
requestCancelOnPaymentRequest(PaymentRequestDocument document,
String note)
Marks a payment request as requested to be canceled. |
void |
resetExtractedPaymentRequest(PaymentRequestDocument paymentRequest,
String note)
Resets a Payment Request that had an associated Payment Request or Credit Memo cancelled externally. |
Methods inherited from interface org.kuali.kfs.module.purap.document.service.AccountsPayableDocumentSpecificService |
---|
generateGLEntriesCreateAccountsPayableDocument, getPersonForCancel, poItemEligibleForAp, shouldPurchaseOrderBeReversed, takePurchaseOrderCancelAction, updateStatusByNode |
Method Detail |
---|
List<PaymentRequestDocument> getPaymentRequestsByPurchaseOrderId(Integer poDocId)
poDocId
- The purchase order id to be used to obtain a list of payment request documents.
List getPaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, org.kuali.rice.kns.util.KualiDecimal invoiceAmount, Date invoiceDate)
poId
- The purchase order id used to obtain the payment request documents.invoiceAmount
- The invoice amount used to obtain the payment request documents.invoiceDate
- The invoice date used to obtain the payment request documents.
List getPaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier)
vendorHeaderGeneratedIdentifier
- The vendorHeaderGeneratedIdentifier used to obtain the payment request documents.vendorDetailAssignedIdentifier
- The vendorDetailAssignedIdentifier used to obtain the payment request documents.
List getPaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, String invoiceNumber)
vendorHeaderGeneratedIdentifier
- The vendorHeaderGeneratedIdentifier used to obtain the payment request documents.vendorDetailAssignedIdentifier
- The vendorDetailAssignedIdentifier used to obtain the payment request documents.invoiceNumber
- The invoice number used to obtain the payment request documents.
boolean isInvoiceDateAfterToday(Date invoiceDate)
invoiceDate
- The invoice date to be determined whether it's after today.
HashMap<String,String> paymentRequestDuplicateMessages(PaymentRequestDocument document)
document
- The payment request document to be processed/checked for duplicates.
Date calculatePayDate(Date invoiceDate, PaymentTermType terms)
invoiceDate
- The invoice date to be used in the pay date calculation.terms
- The payment term type to be used in the pay date calculation.
PaymentRequestDocument addHoldOnPaymentRequest(PaymentRequestDocument document, String note) throws Exception
document
- The payment request document to be marked as on hold.note
- The note to be added to the payment request document while being marked as on hold.
Exception
PaymentRequestDocument removeHoldOnPaymentRequest(PaymentRequestDocument document, String note) throws Exception
document
- The payment request document whose hold is to be removed.note
- The note to be added to the payment request document while its hold is being removed.
Exception
PaymentRequestDocument getPaymentRequestById(Integer poDocId)
poDocId
- The purapDocumentIdentifier of the payment request document to be obtained.
PaymentRequestDocument getPaymentRequestByDocumentNumber(String documentNumber)
documentNumber
- The document number to be used to obtain the payment request document.
void requestCancelOnPaymentRequest(PaymentRequestDocument document, String note) throws Exception
document
- The payment request document to be marked as requested to be canceled.note
- The note to be added to the payment request document while being marked as requested to be canceled.
Exception
boolean isExtracted(PaymentRequestDocument document)
document
- The payment request document to be determined whether it is extracted.
void removeRequestCancelOnPaymentRequest(PaymentRequestDocument document, String note) throws Exception
document
- The payment request document to be used for request cancel.note
- The note to be added to the payment request document upon the removal of the request cancel.
Exception
void resetExtractedPaymentRequest(PaymentRequestDocument paymentRequest, String note)
paymentRequest
- The extracted payment request document to be resetted.note
- The note to be added to the payment request document upon its reset.void cancelExtractedPaymentRequest(PaymentRequestDocument paymentRequest, String note)
paymentRequest
- The extracted payment request document to be canceled.note
- The note to be added to the payment request document.Collection<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode)
chartCode
- The chart code to be used as one of the criterias to retrieve the payment request documents.
Iterator<PaymentRequestDocument> getPaymentRequestsToExtractByCM(String campusCode, VendorCreditMemoDocument cmd)
cmd
- The credit memo document to be used to obtain the payment requests.
Collection<PaymentRequestDocument> getPaymentRequestsToExtractByVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforePaymentRequestPayDate)
vendor
- onOrBeforePaymentRequestPayDate
- only payment requests with a pay date on or before this date will be extracted
Collection<PaymentRequestDocument> getPaymentRequestsToExtract(Date onOrBeforePaymentRequestPayDate)
Collection<PaymentRequestDocument> getPaymentRequestsToExtractSpecialPayments(String chartCode, Date onOrBeforePaymentRequestPayDate)
chartCode
- The chart code to be used as one of the criterias to retrieve the payment request documents.
Collection<PaymentRequestDocument> getPaymentRequestToExtractByChart(String chartCode, Date onOrBeforePaymentRequestPayDate)
chartCode
- The chart code to be used as one of the criterias to retrieve the payment request documents.
void calculatePaymentRequest(PaymentRequestDocument pr, boolean updateDiscount)
pr
- The payment request document to be calculated.updateDiscount
- boolean true if we also want to calculate the discount items for the payment request.void calculateTaxArea(PaymentRequestDocument preq)
preq
- The payment request the NRA tax lines will be added to.void populatePaymentRequest(PaymentRequestDocument preq)
preq
- The payment request document to be populated.void populateAndSavePaymentRequest(PaymentRequestDocument preq) throws org.kuali.rice.kew.exception.WorkflowException
preq
- The payment request document to be populated and saved.
org.kuali.rice.kew.exception.WorkflowException
boolean autoApprovePaymentRequests()
boolean autoApprovePaymentRequest(String docNumber, org.kuali.rice.kns.util.KualiDecimal defaultMinimumLimit)
docNumber
- The payment request document number (not the payment request ID) to be auto approved.defaultMinimumLimit
- The default minimum limit amount to be used in determining the eligibility of the document to be auto approved.
RuntimeException
- To indicate to Spring transactional management that the transaction for this document should be rolled backboolean autoApprovePaymentRequest(PaymentRequestDocument doc, org.kuali.rice.kns.util.KualiDecimal defaultMinimumLimit)
doc
- The payment request document to be auto approved.defaultMinimumLimit
- The default minimum limit amount to be used in determining the eligibility of the document to be auto approved.
RuntimeException
- To indicate to Spring transactional management that the transaction for this document should be rolled backvoid markPaid(PaymentRequestDocument pr, Date processDate)
pr
- The payment request document to be marked as paid and paid date to be set.processDate
- The date to be set as the payment request's paid date.boolean hasDiscountItem(PaymentRequestDocument preq)
preq
- The payment request document to be verified whether it has a discount item.
void changeVendor(PaymentRequestDocument preq, Integer headerId, Integer detailId)
preq
- headerId
- detailId
- primaryHeaderId
- primaryDetailId
- String createPreqDocumentDescription(Integer purchaseOrderIdentifier, String vendorName)
purchaseOrderIdentifier
- The purchase order identifier to be used as part of the description.vendorName
- The vendor name to be used as part of the description.
boolean hasActivePaymentRequestsForPurchaseOrder(Integer purchaseOrderIdentifier)
purchaseOrderIdentifier
-
void processPaymentRequestInReceivingStatus()
boolean allowBackpost(PaymentRequestDocument paymentRequestDocument)
paymentRequestDocument
-
boolean isPurchaseOrderValidForPaymentRequestDocumentCreation(PaymentRequestDocument paymentRequestDocument, PurchaseOrderDocument po)
void removeIneligibleAdditionalCharges(PaymentRequestDocument document)
document
- boolean encumberedItemExistsForInvoicing(PurchaseOrderDocument document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |