org.kuali.kfs.module.ar.batch.service.impl
Class LockboxServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ar.batch.service.impl.LockboxServiceImpl
All Implemented Interfaces:
LockboxService

@Transactional
public class LockboxServiceImpl
extends Object
implements LockboxService

Lockbox Iterators are sorted by processedInvoiceDate and batchSequenceNumber. Potentially there could be many batches on the same date. For each set of records with the same processedInvoiceDate and batchSequenceNumber, there will be one Cash-Control document. Each record within this set will create one Application document.


Constructor Summary
LockboxServiceImpl()
           
 
Method Summary
protected  void deleteProcessedLockboxEntry(Lockbox lockboxEntry)
           
 AccountsReceivableDocumentHeaderService getAccountsReceivableDocumentHeaderService()
           
 CashControlDocumentService getCashControlDocumentService()
           
 org.kuali.rice.kns.service.DocumentService getDocumentService()
          Gets the documentService attribute.
 LockboxDao getLockboxDao()
           
 Long getMaxLockboxSequenceNumber()
          Returns the highest (numerically) value for the Lockbox invoiceSequenceNumber.
protected  com.lowagie.text.Document getPdfDoc()
           
protected  org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
           
 SystemInformationService getSystemInformationService()
           
 boolean processLockbox()
           
protected  String rightPad(String valToPad, int sizeToPadTo)
           
protected  String rightPad(String valToPad, int sizeToPadTo, String padChar)
           
protected  void routePayAppWithoutBusinessRules(String payAppDocNumber, String annotation)
           
 void setAccountsReceivableDocumentHeaderService(AccountsReceivableDocumentHeaderService accountsReceivableDocumentHeaderService)
           
 void setBoService(org.kuali.rice.kns.service.BusinessObjectService boService)
           
 void setCashControlDocumentService(CashControlDocumentService cashControlDocumentService)
           
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
          Sets the dataDictionaryService attribute value.
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
          Sets the documentService attribute value.
 void setLockboxDao(LockboxDao lockboxDao)
           
 void setPaymentApplicationDocumentService(PaymentApplicationDocumentService paymentApplicationDocumentService)
           
 void setReportsDirectory(String reportsDirectory)
           
 void setSystemInformationService(SystemInformationService systemInformationService)
           
protected  void writeBatchGroupSectionTitle(com.lowagie.text.Document pdfDoc, String batchSeqNbr, Date procInvDt, String cashControlDocNumber)
           
protected  void writeCashControlDetailLine(com.lowagie.text.Document pdfDoc, org.kuali.rice.kns.util.KualiDecimal amount, String description)
           
protected  void writeDetailLine(com.lowagie.text.Document pdfDoc, String detailLineText)
           
protected  void writeExceptionStackTrace(com.lowagie.text.Document pdfDoc, Exception e)
           
protected  void writeInvoiceDetailLine(com.lowagie.text.Document pdfDoc, String invoiceNumber, boolean open, String customerNumber, org.kuali.rice.kns.util.KualiDecimal openAmount)
           
protected  void writeLockboxRecordLine(com.lowagie.text.Document pdfDoc, String lockboxNumber, String customerNumber, String invoiceNumber, org.kuali.rice.kns.util.KualiDecimal invoiceTotalAmount, String paymentMediumCode, String bankCode)
           
protected  void writePayAppLine(com.lowagie.text.Document pdfDoc, String payAppDocNbr, String description)
           
protected  void writeSummaryDetailLine(com.lowagie.text.Document pdfDoc, String summary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockboxServiceImpl

public LockboxServiceImpl()
Method Detail

processLockbox

public boolean processLockbox()
                       throws org.kuali.rice.kew.exception.WorkflowException
Specified by:
processLockbox in interface LockboxService
Throws:
org.kuali.rice.kew.exception.WorkflowException

routePayAppWithoutBusinessRules

protected void routePayAppWithoutBusinessRules(String payAppDocNumber,
                                               String annotation)

deleteProcessedLockboxEntry

protected void deleteProcessedLockboxEntry(Lockbox lockboxEntry)

getPdfDoc

protected com.lowagie.text.Document getPdfDoc()

rightPad

protected String rightPad(String valToPad,
                          int sizeToPadTo)

rightPad

protected String rightPad(String valToPad,
                          int sizeToPadTo,
                          String padChar)

writeBatchGroupSectionTitle

protected void writeBatchGroupSectionTitle(com.lowagie.text.Document pdfDoc,
                                           String batchSeqNbr,
                                           Date procInvDt,
                                           String cashControlDocNumber)

writeLockboxRecordLine

protected void writeLockboxRecordLine(com.lowagie.text.Document pdfDoc,
                                      String lockboxNumber,
                                      String customerNumber,
                                      String invoiceNumber,
                                      org.kuali.rice.kns.util.KualiDecimal invoiceTotalAmount,
                                      String paymentMediumCode,
                                      String bankCode)

writeInvoiceDetailLine

protected void writeInvoiceDetailLine(com.lowagie.text.Document pdfDoc,
                                      String invoiceNumber,
                                      boolean open,
                                      String customerNumber,
                                      org.kuali.rice.kns.util.KualiDecimal openAmount)

writeCashControlDetailLine

protected void writeCashControlDetailLine(com.lowagie.text.Document pdfDoc,
                                          org.kuali.rice.kns.util.KualiDecimal amount,
                                          String description)

writeSummaryDetailLine

protected void writeSummaryDetailLine(com.lowagie.text.Document pdfDoc,
                                      String summary)

writePayAppLine

protected void writePayAppLine(com.lowagie.text.Document pdfDoc,
                               String payAppDocNbr,
                               String description)

writeExceptionStackTrace

protected void writeExceptionStackTrace(com.lowagie.text.Document pdfDoc,
                                        Exception e)

writeDetailLine

protected void writeDetailLine(com.lowagie.text.Document pdfDoc,
                               String detailLineText)

getMaxLockboxSequenceNumber

public Long getMaxLockboxSequenceNumber()
Description copied from interface: LockboxService
Returns the highest (numerically) value for the Lockbox invoiceSequenceNumber.

Specified by:
getMaxLockboxSequenceNumber in interface LockboxService
Returns:
The max Lockbox.invoiceSequenceNumber

getLockboxDao

public LockboxDao getLockboxDao()

setLockboxDao

public void setLockboxDao(LockboxDao lockboxDao)

getSystemInformationService

public SystemInformationService getSystemInformationService()

setSystemInformationService

public void setSystemInformationService(SystemInformationService systemInformationService)

getAccountsReceivableDocumentHeaderService

public AccountsReceivableDocumentHeaderService getAccountsReceivableDocumentHeaderService()

setAccountsReceivableDocumentHeaderService

public void setAccountsReceivableDocumentHeaderService(AccountsReceivableDocumentHeaderService accountsReceivableDocumentHeaderService)

setPaymentApplicationDocumentService

public void setPaymentApplicationDocumentService(PaymentApplicationDocumentService paymentApplicationDocumentService)

getPersonService

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

getDocumentService

public org.kuali.rice.kns.service.DocumentService getDocumentService()
Gets the documentService attribute.

Returns:
Returns the documentService.

setDocumentService

public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value.

Parameters:
documentService - The documentService to set.

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.

Parameters:
dataDictionaryService - The dataDictionaryService to set.

setDateTimeService

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

getCashControlDocumentService

public CashControlDocumentService getCashControlDocumentService()

setCashControlDocumentService

public void setCashControlDocumentService(CashControlDocumentService cashControlDocumentService)

setReportsDirectory

public void setReportsDirectory(String reportsDirectory)

setBoService

public void setBoService(org.kuali.rice.kns.service.BusinessObjectService boService)


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