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, updateStatusByNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
autoApprovePaymentRequest
addHoldOnInvoice, 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, resetExtractedInvoice
generateGLEntriesCreateAccountsPayableDocument, getPersonForCancel, poItemEligibleForAp, shouldPurchaseOrderBeReversed, takePurchaseOrderCancelAction, updateStatusByNode
protected 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 OleInvoiceService
protected org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public OleOrderRecordService getOleOrderRecordService()
public void setPurapService(PurapService purapService)
setPurapService
in class InvoiceServiceImpl
public void setPurchaseOrderService(PurchaseOrderService purchaseOrderService)
setPurchaseOrderService
in class InvoiceServiceImpl
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
setDocumentService
in class InvoiceServiceImpl
public void setNoteService(org.kuali.rice.krad.service.NoteService noteService)
setNoteService
in class InvoiceServiceImpl
public void setPurapAccountingService(PurapAccountingService purapAccountingService)
setPurapAccountingService
in class InvoiceServiceImpl
public void setOlePurapAccountingService(OlePurapAccountingService olePurapAccountingService)
public void completePaymentDocument(OleInvoiceDocument invoiceDocument)
completePaymentDocument
in interface OleInvoiceService
OleInvoiceService.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 OleInvoiceService
OleInvoiceService.calculateProrateItemSurcharge(org.kuali.ole.select.document.OleInvoiceDocument)
public void calculateInvoice(InvoiceDocument invoice, boolean updateDiscount)
InvoiceService
calculateInvoice
in interface InvoiceService
calculateInvoice
in class InvoiceServiceImpl
invoice
- 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)
InvoiceServiceImpl
distributeAccounting
in class InvoiceServiceImpl
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountWithExclusionsSubsetItems(String[] excludedTypes, boolean includeBelowTheLine, List<PurApItem> itemsForTotal)
getTotalDollarAmountWithExclusionsSubsetItems
in interface OleInvoiceService
excludedTypes
- includeBelowTheLine
- itemsForTotal
- public OleInvoiceDocument getInvoiceByDocumentNumber(String documentNumber)
InvoiceService
getInvoiceByDocumentNumber
in interface InvoiceService
getInvoiceByDocumentNumber
in class InvoiceServiceImpl
documentNumber
- The document number to be used to obtain the invoice document.InvoiceService.getInvoiceByDocumentNumber(String)
public boolean validateProratedSurcharge(OleInvoiceDocument invoiceDocument)
validateProratedSurcharge
in interface OleInvoiceService
OleInvoiceService.validateProratedSurcharge(org.kuali.ole.select.document.OleInvoiceDocument)
public void calculateWithoutProrates(OleInvoiceDocument invoiceDocument)
calculateWithoutProrates
in interface OleInvoiceService
OleInvoiceService.calculateWithoutProrates(org.kuali.ole.select.document.OleInvoiceDocument)
public void createPaymentRequestOrCreditMemoDocument(OleInvoiceDocument inv)
createPaymentRequestOrCreditMemoDocument
in interface OleInvoiceService
public void createPaymentRequestDocument(OleInvoiceDocument inv, List<OleInvoiceItem> items, boolean flag)
public void populateInvoice(OleInvoiceDocument invoiceDocument)
populateInvoice
in interface OleInvoiceService
public OleInvoiceDocument populateInvoiceFromPurchaseOrders(OleInvoiceDocument invoiceDocument, HashMap<String,ExpiredOrClosedAccountEntry> expiredOrClosedAccountList)
populateInvoiceFromPurchaseOrders
in interface OleInvoiceService
public String saveInvoiceDocument(OleInvoiceDocument invoiceDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
saveInvoiceDocument
in interface OleInvoiceService
org.kuali.rice.kew.api.exception.WorkflowException
public String routeInvoiceDocument(OleInvoiceDocument invoiceDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
routeInvoiceDocument
in interface OleInvoiceService
org.kuali.rice.kew.api.exception.WorkflowException
public OleInvoiceDocument populateVendorDetail(String vendorNumber, OleInvoiceDocument oleInvoiceDocument)
populateVendorDetail
in interface OleInvoiceService
public void createCreditMemoDocument(OleInvoiceDocument invoiceDocument, List<OleInvoiceItem> items, boolean flag)
createCreditMemoDocument
in interface OleInvoiceService
public OleInvoiceDocument getInvoiceDocumentById(Integer invoiceIdentifier)
getInvoiceDocumentById
in interface OleInvoiceService
public boolean autoApprovePaymentRequest(OleInvoiceDocument doc)
autoApprovePaymentRequest
in interface OleInvoiceService
public OleInvoiceDocument populateInvoiceDocument(OleInvoiceDocument invoiceDocument)
populateInvoiceDocument
in interface OleInvoiceService
public OleInvoiceDocument populateInvoiceItems(OleInvoiceDocument invoiceDocument)
populateInvoiceItems
in interface OleInvoiceService
public void calculateAccount(PurApItem purapItem)
calculateAccount
in interface OleInvoiceService
public void convertPOItemToInvoiceItem(OleInvoiceDocument oleInvoiceDocument)
convertPOItemToInvoiceItem
in interface OleInvoiceService
public String createInvoiceNoMatchQuestionText(OleInvoiceDocument invoiceDocument)
createInvoiceNoMatchQuestionText
in interface OleInvoiceService
public String createSubscriptionDateOverlapQuestionText(OleInvoiceDocument invoiceDocument)
createSubscriptionDateOverlapQuestionText
in interface OleInvoiceService
public String getParameter(String name)
getParameter
in interface OleInvoiceService
public String[] getCollapseSections()
getCollapseSections
in interface OleInvoiceService
public String[] getDefaultCollapseSections()
getDefaultCollapseSections
in interface OleInvoiceService
public boolean canCollapse(String sectionName, String[] collapseSections)
canCollapse
in interface OleInvoiceService
public boolean isDuplicationExists(OleInvoiceDocument invoiceDocument, OLEInvoiceForm invoiceForm, boolean isBlanketApprove)
isDuplicationExists
in interface OleInvoiceService
invoiceDocument
- public String getPaymentMethodType(String paymentId)
getPaymentMethodType
in interface OleInvoiceService
public boolean validateDepositAccount(OleInvoiceDocument oleInvoiceDocument)
validateDepositAccount
in interface OleInvoiceService
public boolean isNotificationRequired(OleInvoiceDocument oleInvoiceDocument)
isNotificationRequired
in interface OleInvoiceService
public 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 OleInvoiceService
public OleInvoiceRecord populateValuesFromProfile(BibMarcRecord bibMarcRecord)
populateValuesFromProfile
in interface OleInvoiceService
public void setDefaultAndConstantValuesToInvoiceRecord(OleInvoiceRecord oleInvoiceRecord)
setDefaultAndConstantValuesToInvoiceRecord
in interface OleInvoiceService
public String getCurrencyTypeIdFromCurrencyType(String currencyType)
getCurrencyTypeIdFromCurrencyType
in interface OleInvoiceService
public DataField getDataFieldForTag(BibMarcRecord bibMarcRecord, String tag)
public String getCurrencyType(String currencyTypeId)
getCurrencyType
in interface OleInvoiceService
public OleExchangeRate getExchangeRate(String currencyTypeId)
getExchangeRate
in interface OleInvoiceService
public void deleteInvoiceItem(OleInvoiceDocument oleInvoiceDocument)
deleteInvoiceItem
in interface OleInvoiceService
public OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
public String getPurchaseOrderVendor(String poId)
getPurchaseOrderVendor
in interface OleInvoiceService
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.