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

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

@Transactional
public class CustomerInvoiceDetailServiceImpl
extends Object
implements CustomerInvoiceDetailService


Constructor Summary
CustomerInvoiceDetailServiceImpl()
           
 
Method Summary
 String getAccountsReceivableObjectCodeBasedOnReceivableParameter(CustomerInvoiceDetail customerInvoiceDetail)
          This method returns the correct accounts receivable object code based on a receivable parameter.
 AccountsReceivableTaxService getAccountsReceivableTaxService()
           
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
           
 CustomerInvoiceDetail getCustomerInvoiceDetail(String documentNumber, Integer sequenceNumber)
          This method returns a customer invoice detail based on invoice document number and invoice item sequence number
 CustomerInvoiceDetail getCustomerInvoiceDetailFromCustomerInvoiceItemCode(String invoiceItemCode, String chartOfAccountsCode, String organizationCode)
          This method...
 CustomerInvoiceDetail getCustomerInvoiceDetailFromCustomerInvoiceItemCodeForCurrentUser(String invoiceItemCode)
          This method returns a customer invoice detail from a customer invoice item code for a current user
 CustomerInvoiceDetail getCustomerInvoiceDetailFromOrganizationAccountingDefault(Integer universityFiscalYear, String chartOfAccountsCode, String organizationCode)
          This method returns a customer invoice detail for use on the CustomerInvoiceDocumentAction.
 CustomerInvoiceDetail getCustomerInvoiceDetailFromOrganizationAccountingDefaultForCurrentYear()
          This method returns a customer invoice detail for current user and current fiscal year for use on the CustomerInvoiceDocumentAction.
 Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForInvoice(CustomerInvoiceDocument customerInvoiceDocument)
           
 Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForInvoice(String customerInvoiceDocumentNumber)
           
 Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForInvoiceWithCaching(String customerInvoiceDocumentNumber)
          Cached for better performance...
 List<String> getCustomerInvoiceDocumentNumbersByAccountNumber(String accountNumber)
          This method ...
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
           
 CustomerInvoiceDetail getDiscountCustomerInvoiceDetail(CustomerInvoiceDetail customerInvoiceDetail, Integer universityFiscalYear, String chartOfAccountsCode, String organizationCode)
          This method returns a discount customer invoice detail based on a customer invoice detail, the chart of accounts code
 CustomerInvoiceDetail getDiscountCustomerInvoiceDetailForCurrentYear(CustomerInvoiceDetail customerInvoiceDetail, CustomerInvoiceDocument customerInvoiceDocument)
          This method returns a discount customer invoice detail for the current year
 InvoicePaidAppliedService getInvoicePaidAppliedService()
           
 org.kuali.rice.kns.service.ParameterService getParameterService()
           
 TaxService getTaxService()
           
 UniversityDateService getUniversityDateService()
           
 void prepareCustomerInvoiceDetailForAdd(CustomerInvoiceDetail customerInvoiceDetail, CustomerInvoiceDocument customerInvoiceDocument)
          This method is used to make sure the amounts are calculated correctly and the correct AR object code is in place
 void recalculateCustomerInvoiceDetail(CustomerInvoiceDocument customerInvoiceDocument, CustomerInvoiceDetail customerInvoiceDetail)
          This method is used to recalculate a customer invoice detail based on updated values
 void setAccountsReceivableTaxService(AccountsReceivableTaxService accountsReceivableTaxService)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setInvoicePaidAppliedService(InvoicePaidAppliedService invoicePaidAppliedService)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setTaxService(TaxService taxService)
           
 void setUniversityDateService(UniversityDateService universityDateService)
           
 void updateAccountsForCorrespondingDiscount(CustomerInvoiceDetail parent)
          This method is used to update account for corresponding discount line based on parent line's account
 void updateAccountsReceivableObjectCode(CustomerInvoiceDetail customerInvoiceDetail)
          This method is used to update the accounts receivable object code if receivable options 1 or 2 are selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerInvoiceDetailServiceImpl

public CustomerInvoiceDetailServiceImpl()
Method Detail

getCustomerInvoiceDetailFromOrganizationAccountingDefault

public CustomerInvoiceDetail getCustomerInvoiceDetailFromOrganizationAccountingDefault(Integer universityFiscalYear,
                                                                                       String chartOfAccountsCode,
                                                                                       String organizationCode)
Description copied from interface: CustomerInvoiceDetailService
This method returns a customer invoice detail for use on the CustomerInvoiceDocumentAction. If corresponding organization accounting default exists for billing chart and org, then the customer invoice detail is defaulted using the organization accounting default values.

Specified by:
getCustomerInvoiceDetailFromOrganizationAccountingDefault in interface CustomerInvoiceDetailService
Returns:
See Also:
org.kuali.kfs.module.ar.document.service.CustomerInvoiceDetailService#getAddCustomerInvoiceDetail(java.lang.Integer, java.lang.String, java.lang.String)

getCustomerInvoiceDetailFromOrganizationAccountingDefaultForCurrentYear

public CustomerInvoiceDetail getCustomerInvoiceDetailFromOrganizationAccountingDefaultForCurrentYear()
Description copied from interface: CustomerInvoiceDetailService
This method returns a customer invoice detail for current user and current fiscal year for use on the CustomerInvoiceDocumentAction. If corresponding organization accounting default exists for billing chart and org, then the customer invoice detail is defaulted using the organization accounting default values.

Specified by:
getCustomerInvoiceDetailFromOrganizationAccountingDefaultForCurrentYear in interface CustomerInvoiceDetailService
Returns:
See Also:
org.kuali.kfs.module.ar.document.service.CustomerInvoiceDetailService#getAddLineCustomerInvoiceDetailForCurrentUserAndYear()

getCustomerInvoiceDetailFromCustomerInvoiceItemCode

public CustomerInvoiceDetail getCustomerInvoiceDetailFromCustomerInvoiceItemCode(String invoiceItemCode,
                                                                                 String chartOfAccountsCode,
                                                                                 String organizationCode)
Description copied from interface: CustomerInvoiceDetailService
This method...

Specified by:
getCustomerInvoiceDetailFromCustomerInvoiceItemCode in interface CustomerInvoiceDetailService
Returns:
See Also:
CustomerInvoiceDetailService.getCustomerInvoiceDetailFromCustomerInvoiceItemCode(java.lang.String, java.lang.String, java.lang.String)

getCustomerInvoiceDocumentNumbersByAccountNumber

public List<String> getCustomerInvoiceDocumentNumbersByAccountNumber(String accountNumber)
Description copied from interface: CustomerInvoiceDetailService
This method ...

Specified by:
getCustomerInvoiceDocumentNumbersByAccountNumber in interface CustomerInvoiceDetailService
Returns:

getCustomerInvoiceDetailFromCustomerInvoiceItemCodeForCurrentUser

public CustomerInvoiceDetail getCustomerInvoiceDetailFromCustomerInvoiceItemCodeForCurrentUser(String invoiceItemCode)
Description copied from interface: CustomerInvoiceDetailService
This method returns a customer invoice detail from a customer invoice item code for a current user

Specified by:
getCustomerInvoiceDetailFromCustomerInvoiceItemCodeForCurrentUser in interface CustomerInvoiceDetailService
Returns:
See Also:
CustomerInvoiceDetailService.getCustomerInvoiceDetailFromCustomerInvoiceItemCodeForCurrentUser(java.lang.String)

getDiscountCustomerInvoiceDetail

public CustomerInvoiceDetail getDiscountCustomerInvoiceDetail(CustomerInvoiceDetail customerInvoiceDetail,
                                                              Integer universityFiscalYear,
                                                              String chartOfAccountsCode,
                                                              String organizationCode)
Description copied from interface: CustomerInvoiceDetailService
This method returns a discount customer invoice detail based on a customer invoice detail, the chart of accounts code

Specified by:
getDiscountCustomerInvoiceDetail in interface CustomerInvoiceDetailService
Returns:
See Also:
CustomerInvoiceDetailService.getDiscountCustomerInvoiceDetail(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail, java.lang.Integer, java.lang.String, java.lang.String)

getDiscountCustomerInvoiceDetailForCurrentYear

public CustomerInvoiceDetail getDiscountCustomerInvoiceDetailForCurrentYear(CustomerInvoiceDetail customerInvoiceDetail,
                                                                            CustomerInvoiceDocument customerInvoiceDocument)
Description copied from interface: CustomerInvoiceDetailService
This method returns a discount customer invoice detail for the current year

Specified by:
getDiscountCustomerInvoiceDetailForCurrentYear in interface CustomerInvoiceDetailService
Returns:
See Also:
org.kuali.kfs.module.ar.document.service.CustomerInvoiceDetailService#getDiscountCustomerInvoiceDetailForCurrentYear(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail)

recalculateCustomerInvoiceDetail

public void recalculateCustomerInvoiceDetail(CustomerInvoiceDocument customerInvoiceDocument,
                                             CustomerInvoiceDetail customerInvoiceDetail)
Description copied from interface: CustomerInvoiceDetailService
This method is used to recalculate a customer invoice detail based on updated values

Specified by:
recalculateCustomerInvoiceDetail in interface CustomerInvoiceDetailService
See Also:
org.kuali.kfs.module.ar.document.service.CustomerInvoiceDetailService#recalculateCustomerInvoiceDetail(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail)

updateAccountsForCorrespondingDiscount

public void updateAccountsForCorrespondingDiscount(CustomerInvoiceDetail parent)
Description copied from interface: CustomerInvoiceDetailService
This method is used to update account for corresponding discount line based on parent line's account

Specified by:
updateAccountsForCorrespondingDiscount in interface CustomerInvoiceDetailService
See Also:
CustomerInvoiceDetailService.updateAccountsForCorrespondingDiscount(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail)

getCustomerInvoiceDetail

public CustomerInvoiceDetail getCustomerInvoiceDetail(String documentNumber,
                                                      Integer sequenceNumber)
Description copied from interface: CustomerInvoiceDetailService
This method returns a customer invoice detail based on invoice document number and invoice item sequence number

Specified by:
getCustomerInvoiceDetail in interface CustomerInvoiceDetailService
Returns:
See Also:
CustomerInvoiceDetailService.getCustomerInvoiceDetail(java.lang.String, java.lang.Integer)

getCustomerInvoiceDetailsForInvoice

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

getCustomerInvoiceDetailsForInvoiceWithCaching

public Collection<CustomerInvoiceDetail> getCustomerInvoiceDetailsForInvoiceWithCaching(String customerInvoiceDocumentNumber)
Description copied from interface: CustomerInvoiceDetailService
Cached for better performance...

Specified by:
getCustomerInvoiceDetailsForInvoiceWithCaching in interface CustomerInvoiceDetailService
Returns:
List of customer invoice details
See Also:
CustomerInvoiceDetailService.getCustomerInvoiceDetailsForInvoiceWithCaching(java.lang.String)

getCustomerInvoiceDetailsForInvoice

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

updateAccountsReceivableObjectCode

public void updateAccountsReceivableObjectCode(CustomerInvoiceDetail customerInvoiceDetail)
Description copied from interface: CustomerInvoiceDetailService
This method is used to update the accounts receivable object code if receivable options 1 or 2 are selected.

Specified by:
updateAccountsReceivableObjectCode in interface CustomerInvoiceDetailService
See Also:
CustomerInvoiceDetailService.updateAccountsReceivableObjectCode(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail)

getAccountsReceivableObjectCodeBasedOnReceivableParameter

public String getAccountsReceivableObjectCodeBasedOnReceivableParameter(CustomerInvoiceDetail customerInvoiceDetail)
Description copied from interface: CustomerInvoiceDetailService
This method returns the correct accounts receivable object code based on a receivable parameter.

Specified by:
getAccountsReceivableObjectCodeBasedOnReceivableParameter in interface CustomerInvoiceDetailService
Returns:
See Also:
CustomerInvoiceDetailService.getAccountsReceivableObjectCodeBasedOnReceivableParameter(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail)

prepareCustomerInvoiceDetailForAdd

public void prepareCustomerInvoiceDetailForAdd(CustomerInvoiceDetail customerInvoiceDetail,
                                               CustomerInvoiceDocument customerInvoiceDocument)
Description copied from interface: CustomerInvoiceDetailService
This method is used to make sure the amounts are calculated correctly and the correct AR object code is in place

Specified by:
prepareCustomerInvoiceDetailForAdd in interface CustomerInvoiceDetailService
See Also:
CustomerInvoiceDetailService.prepareCustomerInvoiceDetailForAdd(org.kuali.kfs.module.ar.businessobject.CustomerInvoiceDetail, org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
See Also:
public void prepareCustomerInvoiceDetailForErrorCorrection(CustomerInvoiceDetail customerInvoiceDetail, CustomerInvoiceDocument customerInvoiceDocument) { // negate unit price customerInvoiceDetail.setInvoiceItemUnitPrice(customerInvoiceDetail.getInvoiceItemUnitPrice().negate()); //clear the old CustomerInvoiceDocument customerInvoiceDetail.setCustomerInvoiceDocument(null); }

setDateTimeService

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

getUniversityDateService

public UniversityDateService getUniversityDateService()

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)

getBusinessObjectService

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

setBusinessObjectService

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

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

setInvoicePaidAppliedService

public void setInvoicePaidAppliedService(InvoicePaidAppliedService invoicePaidAppliedService)
Parameters:
invoicePaidAppliedService -

getInvoicePaidAppliedService

public InvoicePaidAppliedService getInvoicePaidAppliedService()

getTaxService

public TaxService getTaxService()

setTaxService

public void setTaxService(TaxService taxService)

getAccountsReceivableTaxService

public AccountsReceivableTaxService getAccountsReceivableTaxService()

setAccountsReceivableTaxService

public void setAccountsReceivableTaxService(AccountsReceivableTaxService accountsReceivableTaxService)


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