public class OleInvoiceServiceImpl extends InvoiceServiceImpl implements OleInvoiceService
| Modifier and Type | Field and Description |
|---|---|
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
kualiConfigurationService |
protected static org.apache.log4j.Logger |
LOG |
protected org.kuali.rice.krad.service.NoteService |
noteService |
protected PurapService |
purapService |
protected PurchaseOrderService |
purchaseOrderService |
accountsPayableService, bankService, businessObjectService, configurationService, currencyTypeIndicator, dataDictionaryService, dateTimeService, financialSystemWorkflowHelperService, invoiceDao, kualiRuleService, negativeInvoiceApprovalLimitService, parameterService, purapWorkflowIntegrationService, universityDateService, vendorService, workflowDocumentService| Constructor and Description |
|---|
OleInvoiceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUnorderedItemsToAmendment(PurchaseOrderAmendmentDocument amendment,
OleInvoiceDocument rlDoc)
Adds an unordered item to a po amendment document.
|
boolean |
autoApprovePaymentRequest(OleInvoiceDocument doc) |
void |
calculateAccount(PurApItem purapItem)
This method calculates the Amount and the Percent in Accounting Line if the Invoiced List Price changed
|
void |
calculateInvoice(InvoiceDocument invoice,
boolean updateDiscount)
Recalculate the invoice.
|
void |
calculateProrateItemSurcharge(OleInvoiceDocument invoiceDocument) |
org.kuali.rice.core.api.util.type.KualiDecimal |
calculateThresholdAmount(org.kuali.rice.core.api.util.type.KualiDecimal thresholdPercentage,
org.kuali.rice.core.api.util.type.KualiDecimal purchaseOrderAmount) |
void |
calculateWithoutProrates(OleInvoiceDocument invoiceDocument)
This method is for caluclate the total amount without select proprate by Quantity,doller and manual
|
boolean |
canCollapse(String sectionName,
String[] collapseSections) |
void |
completePaymentDocument(OleInvoiceDocument invoiceDocument)
This method deletes unneeded items and updates the totals on the po and does any additional processing based on items
|
void |
convertPOItemToInvoiceItem(OleInvoiceDocument oleInvoiceDocument) |
void |
createCreditMemoDocument(OleInvoiceDocument invoiceDocument,
List<OleInvoiceItem> items,
boolean flag) |
String |
createInvoiceAmountExceedsThresholdText(OleInvoiceDocument oleinvoiceDocument) |
String |
createInvoiceNoMatchQuestionText(OleInvoiceDocument invoiceDocument)
This method prepares the warning message for the Invoice Document based on the Invoice Amount
and the Grand Total
|
void |
createPaymentRequestDocument(OleInvoiceDocument inv,
List<OleInvoiceItem> items,
boolean flag) |
void |
createPaymentRequestOrCreditMemoDocument(OleInvoiceDocument inv) |
protected OlePurchaseOrderItem |
createPoItemFromPaymentLine(OleInvoiceItem rlItem)
Creates a PO item from invoice Line item.
|
String |
createSubscriptionDateOverlapQuestionText(OleInvoiceDocument invoiceDocument)
This method prepares the warning message for the Invoice Document based on the Invoice Amount
and the Grand Total
|
void |
deleteInvoiceItem(OleInvoiceDocument oleInvoiceDocument) |
protected void |
distributeAccounting(InvoiceDocument invoiceDocument)
Distributes accounts for a payment request document.
|
protected org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
String[] |
getCollapseSections() |
String |
getCurrencyType(String currencyTypeId) |
String |
getCurrencyTypeIdFromCurrencyType(String currencyType) |
DataField |
getDataFieldForTag(BibMarcRecord bibMarcRecord,
String tag) |
String[] |
getDefaultCollapseSections() |
OleExchangeRate |
getExchangeRate(String currencyTypeId) |
OleInvoiceDocument |
getInvoiceByDocumentNumber(String documentNumber)
Obtains the invoice document given the document number.
|
OleInvoiceDocument |
getInvoiceDocumentById(Integer invoiceIdentifier) |
OleOrderRecordService |
getOleOrderRecordService() |
OleSelectDocumentService |
getOleSelectDocumentService() |
String |
getParameter(String name) |
String |
getPaymentMethodType(String paymentId) |
String |
getPurchaseOrderVendor(String poId) |
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountWithExclusionsSubsetItems(String[] excludedTypes,
boolean includeBelowTheLine,
List<PurApItem> itemsForTotal)
This method...
|
protected boolean |
hasNewUnorderedItem(OleInvoiceDocument paymentDoc)
Checks the item list for newly added items.
|
boolean |
isDuplicationExists(OleInvoiceDocument invoiceDocument,
OLEInvoiceForm invoiceForm,
boolean isBlanketApprove)
This method checks whether duplication occured on the Invoice Document.
|
boolean |
isNotificationRequired(OleInvoiceDocument oleInvoiceDocument) |
void |
populateInvoice(OleInvoiceDocument invoiceDocument) |
OleInvoiceDocument |
populateInvoiceDocument(OleInvoiceDocument invoiceDocument) |
OleInvoiceDocument |
populateInvoiceFromPurchaseOrders(OleInvoiceDocument invoiceDocument,
HashMap<String,ExpiredOrClosedAccountEntry> expiredOrClosedAccountList) |
OleInvoiceDocument |
populateInvoiceItems(OleInvoiceDocument invoiceDocument) |
OleInvoiceRecord |
populateValuesFromProfile(BibMarcRecord bibMarcRecord) |
OleInvoiceDocument |
populateVendorDetail(String vendorNumber,
OleInvoiceDocument oleInvoiceDocument) |
String |
routeInvoiceDocument(OleInvoiceDocument invoiceDocument) |
String |
saveInvoiceDocument(OleInvoiceDocument invoiceDocument) |
void |
setAccountingLinesFromPayment(OleInvoiceItem payItem,
OlePurchaseOrderItem purItem)
Setting Accounting Lines For POA from newLineItem
|
void |
setDefaultAndConstantValuesToInvoiceRecord(OleInvoiceRecord oleInvoiceRecord) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setNoteService(org.kuali.rice.krad.service.NoteService noteService) |
void |
setOleBatchProcessProfileBo(OLEBatchProcessProfileBo oleBatchProcessProfileBo) |
void |
setOlePurapAccountingService(OlePurapAccountingService olePurapAccountingService) |
void |
setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService) |
void |
setPurapAccountingService(PurapAccountingService purapAccountingService) |
void |
setPurapService(PurapService purapService) |
void |
setPurchaseOrderService(PurchaseOrderService purchaseOrderService) |
protected void |
spawnPoAmendmentForUnorderedItems(OleInvoiceDocument invoice,
PurchaseOrderDocument po)
Spawns PO amendments for new unordered items on a Invoice document.
|
protected void |
updatePaymentTotalsOnPurchaseOrder(OleInvoiceDocument invoiceDocument) |
boolean |
validateDepositAccount(OleInvoiceDocument oleInvoiceDocument) |
boolean |
validateProratedSurcharge(OleInvoiceDocument invoiceDocument)
This method is validates the prorate surchanges if prorate by manual
|
addHoldOnInvoice, addTaxAccountingLine, addTaxItem, allowBackpost, autoApproveInvoice, autoApproveInvoice, autoApproveInvoices, autoApprovePaymentRequest, autoApprovePaymentRequest, calculateDiscount, calculatePayDate, calculateTaxArea, cancelExtractedInvoice, changeVendor, clearRequestCancelFields, clearTax, createPreqDocumentDescription, encumberedItemExistsForInvoicing, filterInvoiceByAppDocStatus, filterInvoiceByAppDocStatus, filterInvoiceByAppDocStatus, findDiscountItem, findFullOrderDiscountItem, generateGLEntriesCreateAccountsPayableDocument, getAccountsPayableService, getImmediateInvoicesToExtract, getInvoiceById, getInvoicesByPOIdInvoiceAmountInvoiceDate, getInvoicesByPurchaseOrderId, getInvoicesByVendorNumber, getInvoicesByVendorNumberInvoiceNumber, getInvoicesToExtract, getInvoicesToExtractByCM, getInvoicesToExtractByVendor, getInvoicesToExtractSpecialPayments, getInvoiceToExtractByChart, getMinimumLimitAmount, getParameter, getParameterBoolean, getPersonForCancel, hasActiveInvoicesForPurchaseOrder, hasDiscountItem, invoiceDuplicateMessages, isBeingAdHocRouted, isEligibleForAutoApproval, isExtracted, isInvoiceDateAfterToday, isPurchaseOrderValidForInvoiceDocumentCreation, logAndThrowRuntimeException, logAndThrowRuntimeException, markPaid, paymentTermsDateCalculation, poItemEligibleForAp, populateAndSaveInvoice, processInvoiceInReceivingStatus, removeHoldOnInvoice, removeIneligibleAdditionalCharges, removeRequestCancelOnInvoice, removeTaxItems, requestCancelOnInvoice, resetExtractedInvoice, returnLaterDate, setAccountsPayableService, setBankService, setBusinessObjectService, setConfigurationService, setDataDictionaryService, setDateTimeService, setFinancialSystemWorkflowHelperService, setInvoiceDao, setKualiRuleService, setNegativeInvoiceApprovalLimitService, setParameterService, setPurapWorkflowIntegrationService, setUniversityDateService, setVendorAddress, setVendorService, setWorkflowDocumentService, shouldPurchaseOrderBeReversed, takePurchaseOrderCancelAction, updateStatusByNode, updateStatusByNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitautoApprovePaymentRequestaddHoldOnInvoice, allowBackpost, autoApproveInvoice, autoApproveInvoice, autoApproveInvoices, autoApprovePaymentRequest, calculatePayDate, calculateTaxArea, cancelExtractedInvoice, changeVendor, clearTax, createPreqDocumentDescription, encumberedItemExistsForInvoicing, getImmediateInvoicesToExtract, getInvoiceById, getInvoicesByPOIdInvoiceAmountInvoiceDate, getInvoicesByPurchaseOrderId, getInvoicesByVendorNumber, getInvoicesByVendorNumberInvoiceNumber, getInvoicesToExtract, getInvoicesToExtractByCM, getInvoicesToExtractByVendor, getInvoicesToExtractSpecialPayments, getInvoiceToExtractByChart, getParameter, getParameterBoolean, hasActiveInvoicesForPurchaseOrder, hasDiscountItem, invoiceDuplicateMessages, isExtracted, isInvoiceDateAfterToday, isPurchaseOrderValidForInvoiceDocumentCreation, markPaid, populateAndSaveInvoice, processInvoiceInReceivingStatus, removeHoldOnInvoice, removeIneligibleAdditionalCharges, removeRequestCancelOnInvoice, requestCancelOnInvoice, resetExtractedInvoicegenerateGLEntriesCreateAccountsPayableDocument, getPersonForCancel, poItemEligibleForAp, shouldPurchaseOrderBeReversed, takePurchaseOrderCancelAction, updateStatusByNodeprotected static org.apache.log4j.Logger LOG
protected PurchaseOrderService purchaseOrderService
protected PurapService purapService
protected org.kuali.rice.krad.service.DocumentService documentService
protected org.kuali.rice.krad.service.NoteService noteService
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
public OleInvoiceServiceImpl()
public void setOleBatchProcessProfileBo(OLEBatchProcessProfileBo oleBatchProcessProfileBo)
setOleBatchProcessProfileBo in interface OleInvoiceServiceprotected org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public OleOrderRecordService getOleOrderRecordService()
public void setPurapService(PurapService purapService)
setPurapService in class InvoiceServiceImplpublic void setPurchaseOrderService(PurchaseOrderService purchaseOrderService)
setPurchaseOrderService in class InvoiceServiceImplpublic void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
setDocumentService in class InvoiceServiceImplpublic void setNoteService(org.kuali.rice.krad.service.NoteService noteService)
setNoteService in class InvoiceServiceImplpublic void setPurapAccountingService(PurapAccountingService purapAccountingService)
setPurapAccountingService in class InvoiceServiceImplpublic void setOlePurapAccountingService(OlePurapAccountingService olePurapAccountingService)
public void completePaymentDocument(OleInvoiceDocument invoiceDocument)
completePaymentDocument in interface OleInvoiceServiceOleInvoiceService.completePaymentDocument(org.kuali.ole.select.document.OleInvoiceDocument)protected void updatePaymentTotalsOnPurchaseOrder(OleInvoiceDocument invoiceDocument)
protected void spawnPoAmendmentForUnorderedItems(OleInvoiceDocument invoice, PurchaseOrderDocument po)
invoice - Documentpo - protected boolean hasNewUnorderedItem(OleInvoiceDocument paymentDoc)
paymentDoc - protected void addUnorderedItemsToAmendment(PurchaseOrderAmendmentDocument amendment, OleInvoiceDocument rlDoc)
amendment - rlDoc - protected OlePurchaseOrderItem createPoItemFromPaymentLine(OleInvoiceItem rlItem)
rlItem - public void setAccountingLinesFromPayment(OleInvoiceItem payItem, OlePurchaseOrderItem purItem)
payItem - purItem - public void calculateProrateItemSurcharge(OleInvoiceDocument invoiceDocument)
calculateProrateItemSurcharge in interface OleInvoiceServiceOleInvoiceService.calculateProrateItemSurcharge(org.kuali.ole.select.document.OleInvoiceDocument)public void calculateInvoice(InvoiceDocument invoice, boolean updateDiscount)
InvoiceServicecalculateInvoice in interface InvoiceServicecalculateInvoice in class InvoiceServiceImplinvoice - The invoice document to be calculated.updateDiscount - boolean true if we also want to calculate the discount items for the invoice.InvoiceService.calculateInvoice(org.kuali.ole.module.purap.document.InvoiceDocument,
boolean)protected void distributeAccounting(InvoiceDocument invoiceDocument)
InvoiceServiceImpldistributeAccounting in class InvoiceServiceImplpublic org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountWithExclusionsSubsetItems(String[] excludedTypes, boolean includeBelowTheLine, List<PurApItem> itemsForTotal)
getTotalDollarAmountWithExclusionsSubsetItems in interface OleInvoiceServiceexcludedTypes - includeBelowTheLine - itemsForTotal - public OleInvoiceDocument getInvoiceByDocumentNumber(String documentNumber)
InvoiceServicegetInvoiceByDocumentNumber in interface InvoiceServicegetInvoiceByDocumentNumber in class InvoiceServiceImpldocumentNumber - The document number to be used to obtain the invoice document.InvoiceService.getInvoiceByDocumentNumber(String)public boolean validateProratedSurcharge(OleInvoiceDocument invoiceDocument)
validateProratedSurcharge in interface OleInvoiceServiceOleInvoiceService.validateProratedSurcharge(org.kuali.ole.select.document.OleInvoiceDocument)public void calculateWithoutProrates(OleInvoiceDocument invoiceDocument)
calculateWithoutProrates in interface OleInvoiceServiceOleInvoiceService.calculateWithoutProrates(org.kuali.ole.select.document.OleInvoiceDocument)public void createPaymentRequestOrCreditMemoDocument(OleInvoiceDocument inv)
createPaymentRequestOrCreditMemoDocument in interface OleInvoiceServicepublic void createPaymentRequestDocument(OleInvoiceDocument inv, List<OleInvoiceItem> items, boolean flag)
public void populateInvoice(OleInvoiceDocument invoiceDocument)
populateInvoice in interface OleInvoiceServicepublic OleInvoiceDocument populateInvoiceFromPurchaseOrders(OleInvoiceDocument invoiceDocument, HashMap<String,ExpiredOrClosedAccountEntry> expiredOrClosedAccountList)
populateInvoiceFromPurchaseOrders in interface OleInvoiceServicepublic String saveInvoiceDocument(OleInvoiceDocument invoiceDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
saveInvoiceDocument in interface OleInvoiceServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionpublic String routeInvoiceDocument(OleInvoiceDocument invoiceDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
routeInvoiceDocument in interface OleInvoiceServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionpublic OleInvoiceDocument populateVendorDetail(String vendorNumber, OleInvoiceDocument oleInvoiceDocument)
populateVendorDetail in interface OleInvoiceServicepublic void createCreditMemoDocument(OleInvoiceDocument invoiceDocument, List<OleInvoiceItem> items, boolean flag)
createCreditMemoDocument in interface OleInvoiceServicepublic OleInvoiceDocument getInvoiceDocumentById(Integer invoiceIdentifier)
getInvoiceDocumentById in interface OleInvoiceServicepublic boolean autoApprovePaymentRequest(OleInvoiceDocument doc)
autoApprovePaymentRequest in interface OleInvoiceServicepublic OleInvoiceDocument populateInvoiceDocument(OleInvoiceDocument invoiceDocument)
populateInvoiceDocument in interface OleInvoiceServicepublic OleInvoiceDocument populateInvoiceItems(OleInvoiceDocument invoiceDocument)
populateInvoiceItems in interface OleInvoiceServicepublic void calculateAccount(PurApItem purapItem)
calculateAccount in interface OleInvoiceServicepublic void convertPOItemToInvoiceItem(OleInvoiceDocument oleInvoiceDocument)
convertPOItemToInvoiceItem in interface OleInvoiceServicepublic String createInvoiceNoMatchQuestionText(OleInvoiceDocument invoiceDocument)
createInvoiceNoMatchQuestionText in interface OleInvoiceServicepublic String createSubscriptionDateOverlapQuestionText(OleInvoiceDocument invoiceDocument)
createSubscriptionDateOverlapQuestionText in interface OleInvoiceServicepublic String getParameter(String name)
getParameter in interface OleInvoiceServicepublic String[] getCollapseSections()
getCollapseSections in interface OleInvoiceServicepublic String[] getDefaultCollapseSections()
getDefaultCollapseSections in interface OleInvoiceServicepublic boolean canCollapse(String sectionName, String[] collapseSections)
canCollapse in interface OleInvoiceServicepublic boolean isDuplicationExists(OleInvoiceDocument invoiceDocument, OLEInvoiceForm invoiceForm, boolean isBlanketApprove)
isDuplicationExists in interface OleInvoiceServiceinvoiceDocument - public String getPaymentMethodType(String paymentId)
getPaymentMethodType in interface OleInvoiceServicepublic boolean validateDepositAccount(OleInvoiceDocument oleInvoiceDocument)
validateDepositAccount in interface OleInvoiceServicepublic boolean isNotificationRequired(OleInvoiceDocument oleInvoiceDocument)
isNotificationRequired in interface OleInvoiceServicepublic org.kuali.rice.core.api.util.type.KualiDecimal calculateThresholdAmount(org.kuali.rice.core.api.util.type.KualiDecimal thresholdPercentage, org.kuali.rice.core.api.util.type.KualiDecimal purchaseOrderAmount)
public String createInvoiceAmountExceedsThresholdText(OleInvoiceDocument oleinvoiceDocument)
createInvoiceAmountExceedsThresholdText in interface OleInvoiceServicepublic OleInvoiceRecord populateValuesFromProfile(BibMarcRecord bibMarcRecord)
populateValuesFromProfile in interface OleInvoiceServicepublic void setDefaultAndConstantValuesToInvoiceRecord(OleInvoiceRecord oleInvoiceRecord)
setDefaultAndConstantValuesToInvoiceRecord in interface OleInvoiceServicepublic String getCurrencyTypeIdFromCurrencyType(String currencyType)
getCurrencyTypeIdFromCurrencyType in interface OleInvoiceServicepublic DataField getDataFieldForTag(BibMarcRecord bibMarcRecord, String tag)
public String getCurrencyType(String currencyTypeId)
getCurrencyType in interface OleInvoiceServicepublic OleExchangeRate getExchangeRate(String currencyTypeId)
getExchangeRate in interface OleInvoiceServicepublic void deleteInvoiceItem(OleInvoiceDocument oleInvoiceDocument)
deleteInvoiceItem in interface OleInvoiceServicepublic OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
public String getPurchaseOrderVendor(String poId)
getPurchaseOrderVendor in interface OleInvoiceServiceCopyright © 2004–2015 The Kuali Foundation. All rights reserved.