org.kuali.kfs.module.ar.document.service.impl
Class CustomerInvoiceDocumentServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ar.document.service.impl.CustomerInvoiceDocumentServiceImpl
All Implemented Interfaces:
CustomerInvoiceDocumentService

@Transactional
public class CustomerInvoiceDocumentServiceImpl
extends Object
implements CustomerInvoiceDocumentService


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
CustomerInvoiceDocumentServiceImpl()
           
 
Method Summary
 Collection<CustomerInvoiceDocument> attachWorkflowHeadersToTheInvoices(Collection<CustomerInvoiceDocument> invoices)
          Gets invoices without workflow headers, retrieves the workflow headers and returns invoices with workflow headers.
 boolean checkIfInvoiceNumberIsFinal(String invDocumentNumber)
           
 void closeCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
          This method updates the open invoice indicator if amounts have been completely paid off
 void convertDiscountsToPaidApplieds(CustomerInvoiceDocument invoice)
          Converts discount lines on the customer invoice document to paidapplieds.
 AccountsReceivableDocumentHeaderService getAccountsReceivableDocumentHeaderService()
           
 Collection<CustomerInvoiceDocument> getAllOpenCustomerInvoiceDocuments()
          Retrieves all invoice documents that are Open with outstanding balances, including workflow headers.
 Collection<CustomerInvoiceDocument> getAllOpenCustomerInvoiceDocuments(boolean includeWorkflowHeaders)
           
 Collection<CustomerInvoiceDocument> getAllOpenCustomerInvoiceDocumentsWithoutWorkflow()
          Retrieves all invoice documents that are Open with outstanding balances.
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
           
 CustomerAddressService getCustomerAddressService()
           
 Customer getCustomerByInvoiceDocumentNumber(String invoiceDocumentNumber)
           
 Customer getCustomerByOrganizationInvoiceNumber(String organizationInvoiceNumber)
           
 Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
           
 Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForCustomerInvoiceDocument(String customerInvoiceDocumentNumber)
           
 Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForCustomerInvoiceDocumentWithCaching(CustomerInvoiceDocument customerInvoiceDocument)
          Cached for better performance
 CustomerInvoiceDocumentDao getCustomerInvoiceDocumentDao()
           
 Collection<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByAccountNumber(String accountNumber)
           
 List<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByBillingChartAndOrg(String chartOfAccountsCode, String organizationCode)
           
 Collection<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByCustomerNumber(String customerNumber)
           
 List<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByProcessingChartAndOrg(String chartOfAccountsCode, String organizationCode)
           
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
           
protected  Date getDefaultInvoiceDueDate()
          This method sets due date equal to todays date +30 days by default
 org.kuali.rice.kns.service.DocumentService getDocumentService()
           
 CustomerInvoiceDocument getInvoiceByInvoiceDocumentNumber(String invoiceDocumentNumber)
           
 CustomerInvoiceDocument getInvoiceByOrganizationInvoiceNumber(String organizationInvoiceNumber)
           
 Collection<NonInvoicedDistribution> getNonInvoicedDistributionsForInvoice(String documentNumber)
           
 org.kuali.rice.kns.util.KualiDecimal getNonInvoicedTotalForInvoice(CustomerInvoiceDocument invoice)
           
 org.kuali.rice.kns.util.KualiDecimal getNonInvoicedTotalForInvoice(String documentNumber)
           
 org.kuali.rice.kns.util.KualiDecimal getOpenAmountForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
          This method...
 org.kuali.rice.kns.util.KualiDecimal getOpenAmountForCustomerInvoiceDocument(String customerInvoiceDocumentNumber)
          This method...
 Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerName(String customerName)
          Retrieves all Open Invoices for the given Customer Name.
 Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerNameByCustomerType(String customerName, String customerTypeCode)
          Retrieves all Open Invoices for the given Customer Name and Customer Type Code Note that the customerName field is turned into a 'LIKE customerName*' query.
 Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerNumber(String customerNumber)
          Retrieves all Open Invoices for this given Customer Number.
 Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerType(String customerTypeCode)
          Retrieves all Open Invoices for the given Customer Type Code.
 org.kuali.rice.kns.util.KualiDecimal getOriginalTotalAmountForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
           
 org.kuali.rice.kns.util.KualiDecimal getPaidAppliedTotalForInvoice(CustomerInvoiceDocument invoice)
           
 org.kuali.rice.kns.util.KualiDecimal getPaidAppliedTotalForInvoice(String documentNumber)
           
protected  org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
           
 List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsByBillingChartAndOrg(String chartOfAccountsCode, String organizationCode)
           
 List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsByInitiatorPrincipalName(String initiatorPrincipalName)
           
 List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsByProcessingChartAndOrg(String chartOfAccountsCode, String organizationCode)
           
 List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsForBillingStatementByBillingChartAndOrg(String chartOfAccountsCode, String organizationCode)
           
 ReceivableAccountingLineService getReceivableAccountingLineService()
           
 void loadCustomerAddressesForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
          If the customer number and address identifiers are present, display customer information
 void setAccountsReceivableDocumentHeaderService(AccountsReceivableDocumentHeaderService accountsReceivableDocumentHeaderService)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 void setCustomerAddressService(CustomerAddressService customerAddressService)
           
 void setCustomerInvoiceDetailService(CustomerInvoiceDetailService customerInvoiceDetailService)
           
 void setCustomerInvoiceDocumentDao(CustomerInvoiceDocumentDao customerInvoiceDocumentDao)
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setDocumentDao(org.kuali.rice.kns.dao.DocumentDao documentDao)
           
 void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
           
 void setInvoicePaidAppliedService(InvoicePaidAppliedService invoicePaidAppliedService)
           
 void setNonInvoicedDistributionService(NonInvoicedDistributionService nonInvoicedDistributionService)
           
 void setReceivableAccountingLineService(ReceivableAccountingLineService receivableAccountingLineService)
           
 void setUniversityDateService(UniversityDateService universityDateService)
           
protected  void setupBasicDefaultValuesForCustomerInvoiceDocument(CustomerInvoiceDocument document)
           
 void setupDefaultValuesForCopiedCustomerInvoiceDocument(CustomerInvoiceDocument document)
          This method sets up default values for customer invoice document when copied.
 void setupDefaultValuesForNewCustomerInvoiceDocument(CustomerInvoiceDocument document)
          Refactor to have all the setters in here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

CustomerInvoiceDocumentServiceImpl

public CustomerInvoiceDocumentServiceImpl()
Method Detail

convertDiscountsToPaidApplieds

public void convertDiscountsToPaidApplieds(CustomerInvoiceDocument invoice)
Description copied from interface: CustomerInvoiceDocumentService
Converts discount lines on the customer invoice document to paidapplieds. This method is only intended to be used once the document is at least in the Processed state, and will throw an error if used on a document in an earlier state. This method is intended to be called from the CustomerInvoiceDocument.handleRouteStatusChange

Specified by:
convertDiscountsToPaidApplieds in interface CustomerInvoiceDocumentService
Parameters:
invoice - A populated Invoice document that is at least PROCESSED.

getAllOpenCustomerInvoiceDocuments

public Collection<CustomerInvoiceDocument> getAllOpenCustomerInvoiceDocuments()
Description copied from interface: CustomerInvoiceDocumentService
Retrieves all invoice documents that are Open with outstanding balances, including workflow headers.

Specified by:
getAllOpenCustomerInvoiceDocuments in interface CustomerInvoiceDocumentService
Returns:
A collection of CustomerInvoiceDocument documents, or an empty list of no matches.

getAllOpenCustomerInvoiceDocumentsWithoutWorkflow

public Collection<CustomerInvoiceDocument> getAllOpenCustomerInvoiceDocumentsWithoutWorkflow()
Description copied from interface: CustomerInvoiceDocumentService
Retrieves all invoice documents that are Open with outstanding balances. Will NOT retrieve workflow headers, so results of this are not suitable for using to route, save, or otherwise perform workflow operations upon.

Specified by:
getAllOpenCustomerInvoiceDocumentsWithoutWorkflow in interface CustomerInvoiceDocumentService
Returns:

getAllOpenCustomerInvoiceDocuments

public Collection<CustomerInvoiceDocument> getAllOpenCustomerInvoiceDocuments(boolean includeWorkflowHeaders)

attachWorkflowHeadersToTheInvoices

public Collection<CustomerInvoiceDocument> attachWorkflowHeadersToTheInvoices(Collection<CustomerInvoiceDocument> invoices)
Description copied from interface: CustomerInvoiceDocumentService
Gets invoices without workflow headers, retrieves the workflow headers and returns invoices with workflow headers.

Specified by:
attachWorkflowHeadersToTheInvoices in interface CustomerInvoiceDocumentService
Returns:

getOpenInvoiceDocumentsByCustomerNumber

public Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerNumber(String customerNumber)
Description copied from interface: CustomerInvoiceDocumentService
Retrieves all Open Invoices for this given Customer Number. IMPORTANT - Workflow headers and status are not retrieved by this method, only the raw Customer Invoice Document from the Database. If you need a full workflow document, you can do use DocumentService to retrieve each by document number.

Specified by:
getOpenInvoiceDocumentsByCustomerNumber in interface CustomerInvoiceDocumentService
Returns:

getOpenInvoiceDocumentsByCustomerNameByCustomerType

public Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerNameByCustomerType(String customerName,
                                                                                               String customerTypeCode)
Description copied from interface: CustomerInvoiceDocumentService
Retrieves all Open Invoices for the given Customer Name and Customer Type Code Note that the customerName field is turned into a 'LIKE customerName*' query. IMPORTANT - Workflow headers and status are not retrieved by this method, only the raw Customer Invoice Document from the Database. If you need a full workflow document, you can do use DocumentService to retrieve each by document number.

Specified by:
getOpenInvoiceDocumentsByCustomerNameByCustomerType in interface CustomerInvoiceDocumentService
Returns:

getOpenInvoiceDocumentsByCustomerName

public Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerName(String customerName)
Description copied from interface: CustomerInvoiceDocumentService
Retrieves all Open Invoices for the given Customer Name. Note that this is a leading substring search, so whatever is entered into the customerName field is turned into a 'LIKE customerName*' query. IMPORTANT - Workflow headers and status are not retrieved by this method, only the raw Customer Invoice Document from the Database. If you need a full workflow document, you can do use DocumentService to retrieve each by document number.

Specified by:
getOpenInvoiceDocumentsByCustomerName in interface CustomerInvoiceDocumentService
Returns:

getOpenInvoiceDocumentsByCustomerType

public Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerType(String customerTypeCode)
Description copied from interface: CustomerInvoiceDocumentService
Retrieves all Open Invoices for the given Customer Type Code. IMPORTANT - Workflow headers and status are not retrieved by this method, only the raw Customer Invoice Document from the Database. If you need a full workflow document, you can do use DocumentService to retrieve each by document number.

Specified by:
getOpenInvoiceDocumentsByCustomerType in interface CustomerInvoiceDocumentService
Returns:

getCustomerInvoiceDetailsForCustomerInvoiceDocument

public Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
Specified by:
getCustomerInvoiceDetailsForCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getCustomerInvoiceDetailsForCustomerInvoiceDocument(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

getCustomerInvoiceDetailsForCustomerInvoiceDocumentWithCaching

public Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForCustomerInvoiceDocumentWithCaching(CustomerInvoiceDocument customerInvoiceDocument)
Description copied from interface: CustomerInvoiceDocumentService
Cached for better performance

Specified by:
getCustomerInvoiceDetailsForCustomerInvoiceDocumentWithCaching in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getCustomerInvoiceDetailsForCustomerInvoiceDocumentWithCaching(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

getCustomerInvoiceDetailsForCustomerInvoiceDocument

public Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForCustomerInvoiceDocument(String customerInvoiceDocumentNumber)
Specified by:
getCustomerInvoiceDetailsForCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getCustomerInvoiceDetailsForCustomerInvoiceDocument(java.lang.String)

getOpenAmountForCustomerInvoiceDocument

public org.kuali.rice.kns.util.KualiDecimal getOpenAmountForCustomerInvoiceDocument(String customerInvoiceDocumentNumber)
Description copied from interface: CustomerInvoiceDocumentService
This method...

Specified by:
getOpenAmountForCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
Returns:

getOpenAmountForCustomerInvoiceDocument

public org.kuali.rice.kns.util.KualiDecimal getOpenAmountForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
Description copied from interface: CustomerInvoiceDocumentService
This method...

Specified by:
getOpenAmountForCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
Returns:

getOriginalTotalAmountForCustomerInvoiceDocument

public org.kuali.rice.kns.util.KualiDecimal getOriginalTotalAmountForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
Specified by:
getOriginalTotalAmountForCustomerInvoiceDocument in interface CustomerInvoiceDocumentService

getCustomerInvoiceDocumentsByCustomerNumber

public Collection<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByCustomerNumber(String customerNumber)
Specified by:
getCustomerInvoiceDocumentsByCustomerNumber in interface CustomerInvoiceDocumentService
Returns:
See Also:
org.kuali.kfs.module.ar.document.service.CustomerInvoiceDocumentService#getInvoicesByCustomerNumber(java.lang.String)

getCustomerByOrganizationInvoiceNumber

public Customer getCustomerByOrganizationInvoiceNumber(String organizationInvoiceNumber)
Specified by:
getCustomerByOrganizationInvoiceNumber in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getCustomerByOrganizationInvoiceNumber(java.lang.String)

getInvoiceByOrganizationInvoiceNumber

public CustomerInvoiceDocument getInvoiceByOrganizationInvoiceNumber(String organizationInvoiceNumber)
Specified by:
getInvoiceByOrganizationInvoiceNumber in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getInvoiceByOrganizationInvoiceNumber(java.lang.String)

getCustomerByInvoiceDocumentNumber

public Customer getCustomerByInvoiceDocumentNumber(String invoiceDocumentNumber)
Specified by:
getCustomerByInvoiceDocumentNumber in interface CustomerInvoiceDocumentService
Parameters:
invoiceDocumentNumber -
Returns:

getInvoiceByInvoiceDocumentNumber

public CustomerInvoiceDocument getInvoiceByInvoiceDocumentNumber(String invoiceDocumentNumber)
Specified by:
getInvoiceByInvoiceDocumentNumber in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getInvoiceByInvoiceDocumentNumber(java.lang.String)

getPrintableCustomerInvoiceDocumentsByInitiatorPrincipalName

public List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsByInitiatorPrincipalName(String initiatorPrincipalName)
Specified by:
getPrintableCustomerInvoiceDocumentsByInitiatorPrincipalName in interface CustomerInvoiceDocumentService

getPrintableCustomerInvoiceDocumentsByBillingChartAndOrg

public List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsByBillingChartAndOrg(String chartOfAccountsCode,
                                                                                              String organizationCode)
Specified by:
getPrintableCustomerInvoiceDocumentsByBillingChartAndOrg in interface CustomerInvoiceDocumentService

getPrintableCustomerInvoiceDocumentsForBillingStatementByBillingChartAndOrg

public List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsForBillingStatementByBillingChartAndOrg(String chartOfAccountsCode,
                                                                                                                 String organizationCode)
Specified by:
getPrintableCustomerInvoiceDocumentsForBillingStatementByBillingChartAndOrg in interface CustomerInvoiceDocumentService

getPrintableCustomerInvoiceDocumentsByProcessingChartAndOrg

public List<CustomerInvoiceDocument> getPrintableCustomerInvoiceDocumentsByProcessingChartAndOrg(String chartOfAccountsCode,
                                                                                                 String organizationCode)
Specified by:
getPrintableCustomerInvoiceDocumentsByProcessingChartAndOrg in interface CustomerInvoiceDocumentService
See Also:
org.kuali.module.ar.service.CustomerInvoiceDocumentService#getCustomerInvoiceDocumentsByCustomerNumber(java.lang.String)

getCustomerInvoiceDocumentsByAccountNumber

public Collection<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByAccountNumber(String accountNumber)
Specified by:
getCustomerInvoiceDocumentsByAccountNumber in interface CustomerInvoiceDocumentService

getCustomerInvoiceDocumentsByBillingChartAndOrg

public List<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByBillingChartAndOrg(String chartOfAccountsCode,
                                                                                     String organizationCode)
Specified by:
getCustomerInvoiceDocumentsByBillingChartAndOrg in interface CustomerInvoiceDocumentService

getCustomerInvoiceDocumentsByProcessingChartAndOrg

public List<CustomerInvoiceDocument> getCustomerInvoiceDocumentsByProcessingChartAndOrg(String chartOfAccountsCode,
                                                                                        String organizationCode)
Specified by:
getCustomerInvoiceDocumentsByProcessingChartAndOrg in interface CustomerInvoiceDocumentService
See Also:
org.kuali.module.ar.service.CustomerInvoiceDocumentService#getCustomerInvoiceDocumentsByCustomerNumber(java.lang.String)

setupDefaultValuesForNewCustomerInvoiceDocument

public void setupDefaultValuesForNewCustomerInvoiceDocument(CustomerInvoiceDocument document)
Refactor to have all the setters in here.

Specified by:
setupDefaultValuesForNewCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
See Also:
CustomerInvoiceDocumentService.setupDefaultValuesForNewCustomerInvoiceDocument(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

loadCustomerAddressesForCustomerInvoiceDocument

public void loadCustomerAddressesForCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
Description copied from interface: CustomerInvoiceDocumentService
If the customer number and address identifiers are present, display customer information

Specified by:
loadCustomerAddressesForCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
See Also:
CustomerInvoiceDocumentService.loadCustomerAddressesForCustomerInvoiceDocument(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

setupDefaultValuesForCopiedCustomerInvoiceDocument

public void setupDefaultValuesForCopiedCustomerInvoiceDocument(CustomerInvoiceDocument document)
Description copied from interface: CustomerInvoiceDocumentService
This method sets up default values for customer invoice document when copied.

Specified by:
setupDefaultValuesForCopiedCustomerInvoiceDocument in interface CustomerInvoiceDocumentService
See Also:
CustomerInvoiceDocumentService.setupDefaultValuesForCopiedCustomerInvoiceDocument(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

getNonInvoicedDistributionsForInvoice

public Collection<NonInvoicedDistribution> getNonInvoicedDistributionsForInvoice(String documentNumber)
Specified by:
getNonInvoicedDistributionsForInvoice in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getNonInvoicedDistributionsForInvoice(java.lang.String)

getNonInvoicedTotalForInvoice

public org.kuali.rice.kns.util.KualiDecimal getNonInvoicedTotalForInvoice(CustomerInvoiceDocument invoice)
Specified by:
getNonInvoicedTotalForInvoice in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getNonInvoicedTotalForInvoice(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

getNonInvoicedTotalForInvoice

public org.kuali.rice.kns.util.KualiDecimal getNonInvoicedTotalForInvoice(String documentNumber)
Specified by:
getNonInvoicedTotalForInvoice in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getNonInvoicedTotalForInvoice(java.lang.String)

getPaidAppliedTotalForInvoice

public org.kuali.rice.kns.util.KualiDecimal getPaidAppliedTotalForInvoice(CustomerInvoiceDocument invoice)
Specified by:
getPaidAppliedTotalForInvoice in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getPaidAppliedTotalForInvoice(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

getPaidAppliedTotalForInvoice

public org.kuali.rice.kns.util.KualiDecimal getPaidAppliedTotalForInvoice(String documentNumber)
Specified by:
getPaidAppliedTotalForInvoice in interface CustomerInvoiceDocumentService
Returns:
See Also:
CustomerInvoiceDocumentService.getPaidAppliedTotalForInvoice(java.lang.String)

setupBasicDefaultValuesForCustomerInvoiceDocument

protected void setupBasicDefaultValuesForCustomerInvoiceDocument(CustomerInvoiceDocument document)
Parameters:
document -

getDefaultInvoiceDueDate

protected Date getDefaultInvoiceDueDate()
This method sets due date equal to todays date +30 days by default

Parameters:
dateTimeService -

closeCustomerInvoiceDocument

public void closeCustomerInvoiceDocument(CustomerInvoiceDocument customerInvoiceDocument)
Description copied from interface: CustomerInvoiceDocumentService
This method updates the open invoice indicator if amounts have been completely paid off

Specified by:
closeCustomerInvoiceDocument in interface CustomerInvoiceDocumentService

getCustomerInvoiceDocumentDao

public CustomerInvoiceDocumentDao getCustomerInvoiceDocumentDao()

setCustomerInvoiceDocumentDao

public void setCustomerInvoiceDocumentDao(CustomerInvoiceDocumentDao customerInvoiceDocumentDao)

getDocumentService

public org.kuali.rice.kns.service.DocumentService getDocumentService()

setDocumentService

public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)

getReceivableAccountingLineService

public ReceivableAccountingLineService getReceivableAccountingLineService()

setReceivableAccountingLineService

public void setReceivableAccountingLineService(ReceivableAccountingLineService receivableAccountingLineService)

getAccountsReceivableDocumentHeaderService

public AccountsReceivableDocumentHeaderService getAccountsReceivableDocumentHeaderService()

setAccountsReceivableDocumentHeaderService

public void setAccountsReceivableDocumentHeaderService(AccountsReceivableDocumentHeaderService accountsReceivableDocumentHeaderService)

getCustomerAddressService

public CustomerAddressService getCustomerAddressService()

setCustomerAddressService

public void setCustomerAddressService(CustomerAddressService customerAddressService)

setDocumentDao

public void setDocumentDao(org.kuali.rice.kns.dao.DocumentDao documentDao)

setInvoicePaidAppliedService

public void setInvoicePaidAppliedService(InvoicePaidAppliedService invoicePaidAppliedService)

setNonInvoicedDistributionService

public void setNonInvoicedDistributionService(NonInvoicedDistributionService nonInvoicedDistributionService)

setCustomerInvoiceDetailService

public void setCustomerInvoiceDetailService(CustomerInvoiceDetailService customerInvoiceDetailService)

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)

getPersonService

protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
Returns:
Returns the personService.

checkIfInvoiceNumberIsFinal

public boolean checkIfInvoiceNumberIsFinal(String invDocumentNumber)
Specified by:
checkIfInvoiceNumberIsFinal in interface CustomerInvoiceDocumentService
See Also:
CustomerInvoiceDocumentService.checkIfInvoiceNumberIsFinal(java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.