org.kuali.kfs.module.ar.report.service.impl
Class AccountsReceivableReportServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ar.report.service.impl.AccountsReceivableReportServiceImpl
All Implemented Interfaces:
AccountsReceivableReportService

@Transactional
public class AccountsReceivableReportServiceImpl
extends Object
implements AccountsReceivableReportService


Constructor Summary
AccountsReceivableReportServiceImpl()
           
 
Method Summary
protected  void addAgingAmountToInvoiceMap(String mapKey, org.kuali.rice.kns.util.KualiDecimal amountToAdd, Map<String,String> invoiceMap)
          This method...
protected  void calculateAgingAmounts(List<CustomerStatementDetailReportDataHolder> details, Map<String,String> invoiceMap)
          This method calculates the total aging amounts for a given statement.
protected  String generateCityStateZipLine(String city, String state, String zipCode)
          This method...
 File generateCreditMemo(CustomerCreditMemoDocument creditMemo)
           
 File generateInvoice(CustomerInvoiceDocument invoice)
           
 List<File> generateInvoicesByBillingOrg(String chartCode, String orgCode, Date date)
           
 List<File> generateInvoicesByInitiator(String initiator, Date date)
           
 List<File> generateInvoicesByProcessingOrg(String chartCode, String orgCode, Date date)
           
 File generateStatement(String billingChartCode, String billingOrgCode, String customerNumber, Organization processingOrg, List<CustomerStatementDetailReportDataHolder> details)
          This method...
 List<File> generateStatementByAccount(String accountNumber)
           
 List<File> generateStatementByBillingOrg(String chartCode, String orgCode)
           
 List<File> generateStatementByCustomer(String customerNumber)
           
protected  List<File> generateStatementReports(Collection<CustomerInvoiceDocument> invoices)
           
protected  String getChartAndOrgCodesCombined(Organization org)
          This method...
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
          This method...
protected  org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
          This method...
 void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
           
protected  Map<String,Map<String,Map<String,List<CustomerStatementDetailReportDataHolder>>>> sortCustomerStatementData(List<CustomerInvoiceDocument> invoiceList)
          This method...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountsReceivableReportServiceImpl

public AccountsReceivableReportServiceImpl()
Method Detail

generateCreditMemo

public File generateCreditMemo(CustomerCreditMemoDocument creditMemo)
                        throws org.kuali.rice.kew.exception.WorkflowException
Specified by:
generateCreditMemo in interface AccountsReceivableReportService
Throws:
org.kuali.rice.kew.exception.WorkflowException
See Also:
AccountsReceivableReportService.generateCreditMemo(org.kuali.kfs.module.ar.document.CustomerCreditMemoDocument)

generateInvoice

public File generateInvoice(CustomerInvoiceDocument invoice)
Specified by:
generateInvoice in interface AccountsReceivableReportService
See Also:
AccountsReceivableReportService.generateInvoice(org.kuali.kfs.module.ar.document.CustomerInvoiceDocument)

generateStatement

public File generateStatement(String billingChartCode,
                              String billingOrgCode,
                              String customerNumber,
                              Organization processingOrg,
                              List<CustomerStatementDetailReportDataHolder> details)
This method...

Parameters:
billingChartCode -
billingOrgCode -
customerNumber -
details -
Returns:

generateInvoicesByBillingOrg

public List<File> generateInvoicesByBillingOrg(String chartCode,
                                               String orgCode,
                                               Date date)
Specified by:
generateInvoicesByBillingOrg in interface AccountsReceivableReportService
See Also:
AccountsReceivableReportService.generateInvoicesByBillingOrg(java.lang.String, java.lang.String, java.sql.Date)

generateInvoicesByProcessingOrg

public List<File> generateInvoicesByProcessingOrg(String chartCode,
                                                  String orgCode,
                                                  Date date)
Specified by:
generateInvoicesByProcessingOrg in interface AccountsReceivableReportService
See Also:
AccountsReceivableReportService.generateInvoicesByProcessingOrg(java.lang.String, java.lang.String, java.sql.Date)

generateInvoicesByInitiator

public List<File> generateInvoicesByInitiator(String initiator,
                                              Date date)
Specified by:
generateInvoicesByInitiator in interface AccountsReceivableReportService
See Also:
org.kuali.kfs.module.ar.report.service.AccountsReceivableReportService#generateInvoicesByInitiator(java.lang.String)

generateStatementReports

protected List<File> generateStatementReports(Collection<CustomerInvoiceDocument> invoices)

generateStatementByBillingOrg

public List<File> generateStatementByBillingOrg(String chartCode,
                                                String orgCode)
Specified by:
generateStatementByBillingOrg in interface AccountsReceivableReportService
See Also:
AccountsReceivableReportService.generateStatementByBillingOrg(java.lang.String, java.lang.String)

generateStatementByAccount

public List<File> generateStatementByAccount(String accountNumber)
Specified by:
generateStatementByAccount in interface AccountsReceivableReportService
See Also:
AccountsReceivableReportService.generateStatementByAccount(java.lang.String)

generateStatementByCustomer

public List<File> generateStatementByCustomer(String customerNumber)
Specified by:
generateStatementByCustomer in interface AccountsReceivableReportService
See Also:
AccountsReceivableReportService.generateStatementByCustomer(java.lang.String)

sortCustomerStatementData

protected Map<String,Map<String,Map<String,List<CustomerStatementDetailReportDataHolder>>>> sortCustomerStatementData(List<CustomerInvoiceDocument> invoiceList)
This method...

Parameters:
invoiceList -
Returns:

generateCityStateZipLine

protected String generateCityStateZipLine(String city,
                                          String state,
                                          String zipCode)
This method...

Parameters:
city -
state -
zipCode -
Returns:

calculateAgingAmounts

protected void calculateAgingAmounts(List<CustomerStatementDetailReportDataHolder> details,
                                     Map<String,String> invoiceMap)
This method calculates the total aging amounts for a given statement. This will often be a collection of totals from multiple invoices and/or credit memos.

Parameters:
details -
invoiceMap -

addAgingAmountToInvoiceMap

protected void addAgingAmountToInvoiceMap(String mapKey,
                                          org.kuali.rice.kns.util.KualiDecimal amountToAdd,
                                          Map<String,String> invoiceMap)
This method...

Parameters:
mapKey -
amountToAdd -
invoiceMap -

getChartAndOrgCodesCombined

protected String getChartAndOrgCodesCombined(Organization org)
This method...

Parameters:
org -
Returns:

getDateTimeService

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

Returns:

setDateTimeService

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

Parameters:
dateTimeService -

getPersonService

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

setDocumentService

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


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