public interface InvoiceService extends AccountsPayableDocumentSpecificService
Modifier and Type | Method and Description |
---|---|
InvoiceDocument |
addHoldOnInvoice(InvoiceDocument document,
String note)
Marks a invoice on hold.
|
boolean |
allowBackpost(InvoiceDocument invoiceDocument)
Invoices created in the previous fiscal year get backdated if we're at the beginning of the new fiscal year (i.e.
|
boolean |
autoApproveInvoice(InvoiceDocument doc,
org.kuali.rice.core.api.util.type.KualiDecimal defaultMinimumLimit)
Checks whether the invoice document is eligible for auto approval.
|
boolean |
autoApproveInvoice(String docNumber,
org.kuali.rice.core.api.util.type.KualiDecimal defaultMinimumLimit)
Checks whether the invoice document is eligible for auto approval.
|
boolean |
autoApproveInvoices()
Retrieve a list of PREQs that aren't approved, check to see if they match specific requirements, then auto-approve them if
possible.
|
boolean |
autoApprovePaymentRequest(String docNumber)
Checks whether the invoice document is eligible for auto approval.
|
void |
calculateInvoice(InvoiceDocument pr,
boolean updateDiscount)
Recalculate the invoice.
|
Date |
calculatePayDate(Date invoiceDate,
PaymentTermType terms)
Calculate based on the terms and calculate a date 10 days from today.
|
void |
calculateTaxArea(InvoiceDocument 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 |
cancelExtractedInvoice(InvoiceDocument invoice,
String note)
Cancels a PREQ that has already been extracted if allowed.
|
void |
changeVendor(InvoiceDocument preq,
Integer headerId,
Integer detailId)
Changes the current vendor to the vendor passed in.
|
void |
clearTax(InvoiceDocument document)
Clears tax info.
|
String |
createPreqDocumentDescription(Integer purchaseOrderIdentifier,
String vendorName)
A method to create the description for the invoice document.
|
boolean |
encumberedItemExistsForInvoicing(PurchaseOrderDocument document) |
Collection<InvoiceDocument> |
getImmediateInvoicesToExtract(String chartCode)
Get all the invoices that are immediate and need to be extracted to PDP.
|
InvoiceDocument |
getInvoiceByDocumentNumber(String documentNumber)
Obtains the invoice document given the document number.
|
InvoiceDocument |
getInvoiceById(Integer poDocId)
Obtains the invoice document given the purapDocumentIdentifier.
|
List |
getInvoicesByPOIdInvoiceAmountInvoiceDate(Integer poId,
org.kuali.rice.core.api.util.type.KualiDecimal invoiceAmount,
Date invoiceDate)
Obtains a list of invoice documents given the purchase order id, the invoice amount
and the invoice date.
|
List<InvoiceDocument> |
getInvoicesByPurchaseOrderId(Integer poDocId)
Obtains a list of invoice documents given the purchase order id.
|
List |
getInvoicesByVendorNumber(Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier)
Obtains a list of invoice documents given the vendorHeaderGeneratedIdentifier, vendorDetailAssignedIdentifier and the invoice number.
|
List |
getInvoicesByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier,
String invoiceNumber)
Obtains a list of invoice documents given the vendorHeaderGeneratedIdentifier, vendorDetailAssignedIdentifier and the invoice number.
|
Collection<InvoiceDocument> |
getInvoicesToExtract(Date onOrBeforeInvoicePayDate)
Get all the invoices that need to be extracted.
|
Collection<InvoiceDocument> |
getInvoicesToExtractByCM(String campusCode,
VendorCreditMemoDocument cmd)
Get all the invoices that match a credit memo.
|
Collection<InvoiceDocument> |
getInvoicesToExtractByVendor(String campusCode,
VendorGroupingHelper vendor,
Date onOrBeforeInvoicePayDate)
Get all the invoices that match a vendor.
|
Collection<InvoiceDocument> |
getInvoicesToExtractSpecialPayments(String chartCode,
Date onOrBeforeInvoicePayDate)
Get all the special invoices for a single chart that need to be extracted.
|
Collection<InvoiceDocument> |
getInvoiceToExtractByChart(String chartCode,
Date onOrBeforeInvoicePayDate)
Get all the regular invoices for a single campus.
|
String |
getParameter(String namespaceCode,
String componentCode,
String parameterName) |
boolean |
getParameterBoolean(String namespaceCode,
String componentCode,
String parameterName) |
boolean |
hasActiveInvoicesForPurchaseOrder(Integer purchaseOrderIdentifier)
Determines if there are active invoices for a purchase order.
|
boolean |
hasDiscountItem(InvoiceDocument preq)
This method specifies whether the invoice document has a discount item.
|
HashMap<String,String> |
invoiceDuplicateMessages(InvoiceDocument document)
Performs the processing to check whether the invoice is a duplicate and if so, adds
the information about the type of duplication into the resulting HashMap to be returned by this method.
|
boolean |
isExtracted(InvoiceDocument document)
Returns true if the invoice has been extracted
|
boolean |
isInvoiceDateAfterToday(Date invoiceDate)
Determines whether the invoice date is after today.
|
boolean |
isPurchaseOrderValidForInvoiceDocumentCreation(InvoiceDocument invoiceDocument,
PurchaseOrderDocument po) |
void |
markPaid(InvoiceDocument pr,
Date processDate)
Mark a invoice as being paid and set the invoice's paid date as the processDate.
|
void |
populateAndSaveInvoice(InvoiceDocument preq)
Populate and save invoice.
|
void |
processInvoiceInReceivingStatus() |
InvoiceDocument |
removeHoldOnInvoice(InvoiceDocument document,
String note)
Removes a hold on a invoice.
|
void |
removeIneligibleAdditionalCharges(InvoiceDocument document)
Removes additional charge items that are not eligible on the invoice document.
|
void |
removeRequestCancelOnInvoice(InvoiceDocument document,
String note)
Removes a request cancel on invoice.
|
void |
requestCancelOnInvoice(InvoiceDocument document,
String note)
Marks a invoice as requested to be canceled.
|
void |
resetExtractedInvoice(InvoiceDocument invoice,
String note)
Resets a Invoice that had an associated Invoice or Credit Memo cancelled externally.
|
generateGLEntriesCreateAccountsPayableDocument, getPersonForCancel, poItemEligibleForAp, shouldPurchaseOrderBeReversed, takePurchaseOrderCancelAction, updateStatusByNode
List<InvoiceDocument> getInvoicesByPurchaseOrderId(Integer poDocId)
poDocId
- The purchase order id to be used to obtain a list of invoice documents.List getInvoicesByPOIdInvoiceAmountInvoiceDate(Integer poId, org.kuali.rice.core.api.util.type.KualiDecimal invoiceAmount, Date invoiceDate)
poId
- The purchase order id used to obtain the invoice documents.invoiceAmount
- The invoice amount used to obtain the invoice documents.invoiceDate
- The invoice date used to obtain the invoice documents.List getInvoicesByVendorNumber(Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier)
vendorHeaderGeneratedIdentifier
- The vendorHeaderGeneratedIdentifier used to obtain the invoice documents.vendorDetailAssignedIdentifier
- The vendorDetailAssignedIdentifier used to obtain the invoice documents.List getInvoicesByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, String invoiceNumber)
vendorHeaderGeneratedIdentifier
- The vendorHeaderGeneratedIdentifier used to obtain the invoice documents.vendorDetailAssignedIdentifier
- The vendorDetailAssignedIdentifier used to obtain the invoice documents.invoiceNumber
- The invoice number used to obtain the invoice documents.boolean isInvoiceDateAfterToday(Date invoiceDate)
invoiceDate
- The invoice date to be determined whether it's after today.HashMap<String,String> invoiceDuplicateMessages(InvoiceDocument document)
document
- The invoice 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.InvoiceDocument addHoldOnInvoice(InvoiceDocument document, String note) throws Exception
document
- The invoice document to be marked as on hold.note
- The note to be added to the invoice document while being marked as on hold.Exception
InvoiceDocument removeHoldOnInvoice(InvoiceDocument document, String note) throws Exception
document
- The invoice document whose hold is to be removed.note
- The note to be added to the invoice document while its hold is being removed.Exception
InvoiceDocument getInvoiceById(Integer poDocId)
poDocId
- The purapDocumentIdentifier of the invoice document to be obtained.InvoiceDocument getInvoiceByDocumentNumber(String documentNumber)
documentNumber
- The document number to be used to obtain the invoice document.void requestCancelOnInvoice(InvoiceDocument document, String note) throws Exception
document
- The invoice document to be marked as requested to be canceled.note
- The note to be added to the invoice document while being marked as requested to be canceled.Exception
boolean isExtracted(InvoiceDocument document)
document
- The invoice document to be determined whether it is extracted.void removeRequestCancelOnInvoice(InvoiceDocument document, String note) throws Exception
document
- The invoice document to be used for request cancel.note
- The note to be added to the invoice document upon the removal of the request cancel.Exception
void resetExtractedInvoice(InvoiceDocument invoice, String note)
invoice
- The extracted invoice document to be resetted.note
- The note to be added to the invoice document upon its reset.void cancelExtractedInvoice(InvoiceDocument invoice, String note)
invoice
- The extracted invoice document to be canceled.note
- The note to be added to the invoice document.Collection<InvoiceDocument> getImmediateInvoicesToExtract(String chartCode)
chartCode
- The chart code to be used as one of the criterias to retrieve the invoice documents.Collection<InvoiceDocument> getInvoicesToExtractByCM(String campusCode, VendorCreditMemoDocument cmd)
cmd
- The credit memo document to be used to obtain the invoices.Collection<InvoiceDocument> getInvoicesToExtractByVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforeInvoicePayDate)
vendor
- onOrBeforeInvoicePayDate
- only invoices with a pay date on or before this date will be extractedCollection<InvoiceDocument> getInvoicesToExtract(Date onOrBeforeInvoicePayDate)
Collection<InvoiceDocument> getInvoicesToExtractSpecialPayments(String chartCode, Date onOrBeforeInvoicePayDate)
chartCode
- The chart code to be used as one of the criterias to retrieve the invoice documents.Collection<InvoiceDocument> getInvoiceToExtractByChart(String chartCode, Date onOrBeforeInvoicePayDate)
chartCode
- The chart code to be used as one of the criterias to retrieve the invoice documents.void calculateInvoice(InvoiceDocument pr, boolean updateDiscount)
pr
- The invoice document to be calculated.updateDiscount
- boolean true if we also want to calculate the discount items for the invoice.void calculateTaxArea(InvoiceDocument preq)
preq
- The invoice the NRA tax lines will be added to.void populateAndSaveInvoice(InvoiceDocument preq) throws org.kuali.rice.kew.api.exception.WorkflowException
preq
- The invoice document to be populated and saved.org.kuali.rice.kew.api.exception.WorkflowException
boolean autoApproveInvoices()
boolean autoApproveInvoice(String docNumber, org.kuali.rice.core.api.util.type.KualiDecimal defaultMinimumLimit)
docNumber
- The invoice document number (not the invoice 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 autoApproveInvoice(InvoiceDocument doc, org.kuali.rice.core.api.util.type.KualiDecimal defaultMinimumLimit)
doc
- The invoice 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(InvoiceDocument pr, Date processDate)
pr
- The invoice document to be marked as paid and paid date to be set.processDate
- The date to be set as the invoice's paid date.boolean hasDiscountItem(InvoiceDocument preq)
preq
- The invoice document to be verified whether it has a discount item.void changeVendor(InvoiceDocument preq, Integer headerId, Integer detailId)
preq
- headerId
- detailId
- 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 hasActiveInvoicesForPurchaseOrder(Integer purchaseOrderIdentifier)
purchaseOrderIdentifier
- void processInvoiceInReceivingStatus()
boolean allowBackpost(InvoiceDocument invoiceDocument)
invoiceDocument
- boolean isPurchaseOrderValidForInvoiceDocumentCreation(InvoiceDocument invoiceDocument, PurchaseOrderDocument po)
void removeIneligibleAdditionalCharges(InvoiceDocument document)
document
- boolean encumberedItemExistsForInvoicing(PurchaseOrderDocument document)
void clearTax(InvoiceDocument document)
document
- The disbursement voucher document being modified.boolean autoApprovePaymentRequest(String docNumber)
docNumber
- The invoice document number (not the invoice ID) to be auto approved.RuntimeException
- To indicate to Spring transactional management that the transaction for this document should be rolled backString getParameter(String namespaceCode, String componentCode, String parameterName)
boolean getParameterBoolean(String namespaceCode, String componentCode, String parameterName)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.