|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.endow.batch.service.impl.GeneralLedgerInterfaceBatchProcessServiceImpl
@Transactional public class GeneralLedgerInterfaceBatchProcessServiceImpl
This class implements the GeneralLedgerInterfaceBatchProcessService.
Constructor Summary | |
---|---|
GeneralLedgerInterfaceBatchProcessServiceImpl()
Constructs a GeneralLedgerInterfaceBatchProcessServiceImpl instance |
Method Summary | |
---|---|
protected void |
addChartTotalsToDocumentTypeTotals()
add chart level totals to document type totals and reset the chart/object level totals. |
protected void |
addDocumentTypeTotalsToGrandTotals()
add totals to grand totals and reset document level totals... |
protected void |
addTotalsToChartTotals()
|
protected boolean |
createCashEntry(GlInterfaceBatchProcessKemLine transactionArchive,
PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps,
Date postedDate,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
method to create cash entry GL record |
protected boolean |
createGainLossEntry(OriginEntryFull oef,
GlInterfaceBatchProcessKemLine transactionArchive,
PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
method to create a gain/loss record when document type = EAD... |
protected boolean |
createGLEntriesForEGLTOrGLET(GlInterfaceBatchProcessKemLine transactionArchive,
PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps,
Date postedDate,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
method to create cash entry GL record for each transaction archive financial doc number |
boolean |
createGlEntriesForTransactionArchives(String documentType,
Collection<GlInterfaceBatchProcessKemLine> transactionArchives,
PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps,
Date postedDate,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
For the transaction archives this method creates GL entries into the output file. |
protected boolean |
createNonCashEntry(GlInterfaceBatchProcessKemLine transactionArchive,
PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps,
Date postedDate,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
method to create non-cash entry GL record |
protected boolean |
createOffsetEntry(OriginEntryFull oef,
GlInterfaceBatchProcessKemLine transactionArchive,
PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
method to create an offset record when document type is NON-CASH |
protected OriginEntryFull |
createOriginEntryFull(GlInterfaceBatchProcessKemLine transactionArchive,
Date postedDate,
GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
method to create origin entry and populate the fields |
protected void |
createOutputEntry(Transaction entry,
PrintStream group)
|
protected EndowmentAccountingLineBaseDao |
getEndowmentAccountingLineBaseDao()
Gets the endowmentAccountingLineBaseDao attribute. |
protected GLInterfaceBatchExceptionReportHeader |
getGLInterfaceBatchExceptionReportHeader()
Gets the processFeeTransactionsTotalProcessedReportHeader attribute. |
protected ReportWriterService |
getgLInterfaceBatchExceptionReportsWriterService()
Gets the gLInterfaceBatchExceptionReportsWriterService attribute. |
protected GLInterfaceBatchExceptionTableRowValues |
getGLInterfaceBatchExceptionRowReason()
Gets the gLInterfaceBatchExceptionRowReason attribute. |
protected GLInterfaceBatchExceptionTableRowValues |
getGLInterfaceBatchExceptionTableRowValues()
Gets the gLInterfaceBatchExceptionTableRowValues attribute. |
GLInterfaceBatchProcessDao |
getgLInterfaceBatchProcessDao()
Gets the gLInterfaceBatchProcessDao attribute. |
protected GLInterfaceBatchStatisticsReportDetailTableRow |
getGLInterfaceBatchStatisticsReportDetailTableRow()
Gets the gLInterfaceBatchStatisticsReportDetailTableRow attribute. |
ReportWriterService |
getgLInterfaceBatchStatisticsReportsWriterService()
Gets the gLInterfaceBatchStatisticsReportsWriterService attribute. |
ReportWriterService |
getgLInterfaceBatchTotalProcessedReportsWriterService()
Gets the gLInterfaceBatchTotalProcessedReportsWriterService attribute. |
protected GLInterfaceBatchTotalsProcessedTableRowValues |
getGLInterfaceBatchTotalsProcessedTableRowValues()
Gets the gLInterfaceBatchTotalsProcessedTableRowValues attribute. |
protected GLLinkDao |
getgLLinkDao()
gets attribute gLLinkDao |
protected KEMService |
getKemService()
Gets the kemService. |
protected org.kuali.rice.kns.service.ParameterService |
getParameterService()
Gets the parameterService attribute. |
String |
getSepartorLine()
get the separator line - to write a header line in statistics report |
protected BigDecimal |
getTransactionAmount(GlInterfaceBatchProcessKemLine transactionArchive)
method to get transaction amount |
protected TransactionArchiveDao |
getTransactionArchiveDao()
Gets the transactionArchiveDao attribute. |
protected String |
getTransactionDebitCreditCode(String documentType,
BigDecimal transactionAmount,
String subTypeCode)
method to get transaction debit/credit code |
protected String |
getTransactionDebitCreditCodeForOffSetEntry(BigDecimal transactionAmount)
method to get transaction debit/credit code |
protected String |
getTransactionDescription(GlInterfaceBatchProcessKemLine transactionArchive,
Date postedDate)
method to get transaction description |
protected void |
initializeChartObjectTotals()
method to initialize object level totals.... |
protected void |
processDocumentTypeTotals()
method to write document type totals whenever document type changes. |
boolean |
processKEMActivity()
process the KEM Activity transactions to create gl entries in the origin entry file |
boolean |
processKEMActivityToCreateGLEntries()
The process is intended to serve to consolidate KEM activity for the day into valid general ledger debits and credits to update the institution's records. |
void |
setBatchFileDirectoryName(String batchFileDirectoryName)
This method sets the batchFileDirectoryName |
void |
setEndowmentAccountingLineBaseDao(EndowmentAccountingLineBaseDao endowmentAccountingLineBaseDao)
Sets the endowmentAccountingLineBaseDao attribute value. |
void |
setGLInterfaceBatchExceptionReportHeader(GLInterfaceBatchExceptionReportHeader gLInterfaceBatchExceptionReportHeader)
Sets the gLInterfaceBatchExceptionReportHeader attribute value. |
void |
setgLInterfaceBatchExceptionReportsWriterService(ReportWriterService gLInterfaceBatchExceptionReportsWriterService)
Sets the gLInterfaceBatchExceptionReportsWriterService attribute value. |
void |
setGLInterfaceBatchExceptionRowReason(GLInterfaceBatchExceptionTableRowValues gLInterfaceBatchExceptionRowReason)
Sets the gLInterfaceBatchExceptionRowReason attribute value. |
void |
setGLInterfaceBatchExceptionTableRowValues(GLInterfaceBatchExceptionTableRowValues gLInterfaceBatchExceptionTableRowValues)
Sets the gLInterfaceBatchExceptionTableRowValues attribute value. |
void |
setgLInterfaceBatchProcessDao(GLInterfaceBatchProcessDao gLInterfaceBatchProcessDao)
Sets the gLInterfaceBatchProcessDao attribute value. |
void |
setGLInterfaceBatchStatisticsReportDetailTableRow(GLInterfaceBatchStatisticsReportDetailTableRow gLInterfaceBatchStatisticsReportDetailTableRow)
Sets the gLInterfaceBatchStatisticsReportDetailTableRow attribute value. |
void |
setgLInterfaceBatchStatisticsReportsWriterService(ReportWriterService gLInterfaceBatchStatisticsReportsWriterService)
Sets the gLInterfaceBatchStatisticsReportsWriterService attribute value. |
void |
setgLInterfaceBatchTotalProcessedReportsWriterService(ReportWriterService gLInterfaceBatchTotalProcessedReportsWriterService)
Sets the gLInterfaceBatchTotalProcessedReportsWriterService attribute value. |
void |
setGLInterfaceBatchTotalsProcessedTableRowValues(GLInterfaceBatchTotalsProcessedTableRowValues gLInterfaceBatchTotalsProcessedTableRowValues)
Sets the gLInterfaceBatchTotalsProcessedTableRowValues attribute value. |
void |
setgLLinkDao(GLLinkDao gLLinkDao)
sets attribute gLLinkDao |
void |
setKemService(KEMService kemService)
Sets the kemService. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
void |
setTransactionArchiveDao(TransactionArchiveDao transactionArchiveDao)
Sets the transactionArchiveDao attribute value. |
protected void |
updateTotals(GlInterfaceBatchProcessKemLine transactionArchive)
add debit and credit totals and number of lines processed to detail line. |
protected void |
updateTotalsProcessed(GlInterfaceBatchProcessKemLine transactionArchive)
method to update the totals processed amount variables. |
protected void |
writeExceptionRecord(GlInterfaceBatchProcessKemLine transactionArchive,
String reasonMessage)
writes out the table row values then writes the reason row and inserts a blank line |
protected void |
writeReportHeaders()
Writes the reports headers for totals processed, waived and accrued fee, and exceptions reports. |
protected void |
writeStatisticsReport(Collection<GLInterfaceBatchStatisticsReportDetailTableRow> statisticsReportRows)
method to write the statistics report.... |
protected void |
writeTotalsProcessedChartDetailTotalsLine()
write chart TotalsProcessedDetailTotalsLine method to write details total line. |
protected void |
writeTotalsProcessedDocumentTypeDetailTotalsLine()
write document type TotalsProcessedDetailTotalsLine method to write details total line. |
protected void |
writeTotalsProcessedGrandTotalsLine()
write document TotalsProcessedDetailTotalsLine method to write details total line. |
protected void |
writeTotalsProcessedObjectDetailTotalsLine(String previousDocumentTypeCode,
String previousChartCode,
String previousObjectCode)
write TotalsProcessedDetailTotalsLine method to write details total line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger LOG
protected String batchFileDirectoryName
protected KEMService kemService
protected GLLinkDao gLLinkDao
protected TransactionArchiveDao transactionArchiveDao
protected EndowmentAccountingLineBaseDao endowmentAccountingLineBaseDao
protected GLInterfaceBatchProcessDao gLInterfaceBatchProcessDao
protected org.kuali.rice.kns.service.ParameterService parameterService
protected ReportWriterService gLInterfaceBatchStatisticsReportsWriterService
protected ReportWriterService gLInterfaceBatchTotalProcessedReportsWriterService
protected ReportWriterService gLInterfaceBatchExceptionReportsWriterService
protected GLInterfaceBatchExceptionReportHeader gLInterfaceBatchExceptionReportHeader
protected GLInterfaceBatchTotalsProcessedReportHeader gLInterfaceBatchTotalProcessedReportHeader
protected GLInterfaceBatchExceptionTableRowValues gLInterfaceBatchExceptionTableRowValues
protected GLInterfaceBatchExceptionTableRowValues gLInterfaceBatchExceptionRowReason
protected GLInterfaceBatchTotalsProcessedTableRowValues gLInterfaceBatchTotalsProcessedTableRowValues
protected GLInterfaceBatchStatisticsReportDetailTableRow gLInterfaceBatchStatisticsReportDetailTableRow
protected BigDecimal chartObjectDebitAmountSubTotal
protected BigDecimal chartObjectCreditAmountSubTotal
protected long chartObjectNumberOfRecordsSubTotal
protected BigDecimal chartDebitAmountSubTotal
protected BigDecimal chartCreditAmountSubTotal
protected long chartNumberOfRecordsSubTotal
protected BigDecimal documentTypeDebitAmountSubTotal
protected BigDecimal documentTypeCreditAmountSubTotal
protected long documentTypeNumberOfRecordsSubTotal
protected BigDecimal documentTypeDebitAmountGrandTotal
protected BigDecimal documentTypeCreditAmountGrandTotal
protected long documentTypeNumberOfRecordsGrandTotal
protected String previousDocumentTypeCode
protected String previousChartCode
protected String previousObjectCode
protected boolean documentTypeWritten
protected boolean statisticsHeaderWritten
Constructor Detail |
---|
public GeneralLedgerInterfaceBatchProcessServiceImpl()
Method Detail |
---|
public boolean processKEMActivityToCreateGLEntries()
processKEMActivityToCreateGLEntries
in interface GeneralLedgerInterfaceBatchProcessService
return boolean true if successful else false
public boolean processKEMActivity()
protected void writeReportHeaders()
public boolean createGlEntriesForTransactionArchives(String documentType, Collection<GlInterfaceBatchProcessKemLine> transactionArchives, PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps, Date postedDate, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
documentType
- transactionArchives
- transaction archive records sorted by document type namepostedDate
- statisticsDataRow
- to collect the statistics about GL entries, exception entriesOUTPUT_KEM_TO_GL_DATA_FILE_ps
- GL origin entry file
protected boolean createCashEntry(GlInterfaceBatchProcessKemLine transactionArchive, PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps, Date postedDate, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
transactionArchive,OUTPUT_KEM_TO_GL_DATA_FILE_ps,
- postedDate, statisticsDataRow
protected boolean createNonCashEntry(GlInterfaceBatchProcessKemLine transactionArchive, PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps, Date postedDate, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
transactionArchive,OUTPUT_KEM_TO_GL_DATA_FILE_ps,
- postedDate
protected boolean createGainLossEntry(OriginEntryFull oef, GlInterfaceBatchProcessKemLine transactionArchive, PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
oef
- OriginEntryFulltransactionArchive
- OUTPUT_KEM_TO_GL_DATA_FILE_ps
- the output filestatisticsDataRow
-
protected boolean createOffsetEntry(OriginEntryFull oef, GlInterfaceBatchProcessKemLine transactionArchive, PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
oef
- OriginEntryFulltransactionArchive
- OUTPUT_KEM_TO_GL_DATA_FILE_ps
- the output filestatisticsDataRow
-
protected boolean createGLEntriesForEGLTOrGLET(GlInterfaceBatchProcessKemLine transactionArchive, PrintStream OUTPUT_KEM_TO_GL_DATA_FILE_ps, Date postedDate, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
transactionArchive,OUTPUT_KEM_TO_GL_DATA_FILE_ps,
- postedDate
protected OriginEntryFull createOriginEntryFull(GlInterfaceBatchProcessKemLine transactionArchive, Date postedDate, GLInterfaceBatchStatisticsReportDetailTableRow statisticsDataRow)
transactionArchive,
- postedDate
protected String getTransactionDescription(GlInterfaceBatchProcessKemLine transactionArchive, Date postedDate)
transactionArchive
-
protected BigDecimal getTransactionAmount(GlInterfaceBatchProcessKemLine transactionArchive)
transactionArchive
-
protected String getTransactionDebitCreditCode(String documentType, BigDecimal transactionAmount, String subTypeCode)
transactionAmount
- subTypeCode
-
protected String getTransactionDebitCreditCodeForOffSetEntry(BigDecimal transactionAmount)
transactionAmount
-
protected void createOutputEntry(Transaction entry, PrintStream group) throws IOException
IOException
protected void updateTotalsProcessed(GlInterfaceBatchProcessKemLine transactionArchive)
transactionArchive
- protected void updateTotals(GlInterfaceBatchProcessKemLine transactionArchive)
transactionArchive
- protected void writeTotalsProcessedObjectDetailTotalsLine(String previousDocumentTypeCode, String previousChartCode, String previousObjectCode)
previousDocumentTypeCode
- feeMethodCode
- totalLinesGenerated
- protected void writeTotalsProcessedChartDetailTotalsLine()
protected void writeTotalsProcessedDocumentTypeDetailTotalsLine()
protected void processDocumentTypeTotals()
protected void writeTotalsProcessedGrandTotalsLine()
protected void addDocumentTypeTotalsToGrandTotals()
protected void addChartTotalsToDocumentTypeTotals()
protected void addTotalsToChartTotals()
protected void initializeChartObjectTotals()
protected void writeStatisticsReport(Collection<GLInterfaceBatchStatisticsReportDetailTableRow> statisticsReportRows)
statisticsReportRows
- Collection of statistics detail rowspublic String getSepartorLine()
protected void writeExceptionRecord(GlInterfaceBatchProcessKemLine transactionArchive, String reasonMessage)
transactionArchive
- reasonMessage
- the reason messageprotected ReportWriterService getgLInterfaceBatchExceptionReportsWriterService()
public void setgLInterfaceBatchExceptionReportsWriterService(ReportWriterService gLInterfaceBatchExceptionReportsWriterService)
gLInterfaceBatchExceptionReportsWriterService
- The gLInterfaceBatchExceptionReportsWriterService to set.public ReportWriterService getgLInterfaceBatchTotalProcessedReportsWriterService()
public void setgLInterfaceBatchTotalProcessedReportsWriterService(ReportWriterService gLInterfaceBatchTotalProcessedReportsWriterService)
gLInterfaceBatchTotalProcessedReportsWriterService
- The gLInterfaceBatchTotalProcessedReportsWriterService to set.public ReportWriterService getgLInterfaceBatchStatisticsReportsWriterService()
public void setgLInterfaceBatchStatisticsReportsWriterService(ReportWriterService gLInterfaceBatchStatisticsReportsWriterService)
gLInterfaceBatchStatisticsReportsWriterService
- The gLInterfaceBatchStatisticsReportsWriterService to set.protected KEMService getKemService()
public void setKemService(KEMService kemService)
kemService
- public void setGLInterfaceBatchExceptionReportHeader(GLInterfaceBatchExceptionReportHeader gLInterfaceBatchExceptionReportHeader)
processFeeTransactionsExceptionReportHeader
- The processFeeTransactionsExceptionReportHeader to set.protected GLInterfaceBatchExceptionReportHeader getGLInterfaceBatchExceptionReportHeader()
protected GLInterfaceBatchExceptionTableRowValues getGLInterfaceBatchExceptionTableRowValues()
public void setGLInterfaceBatchExceptionTableRowValues(GLInterfaceBatchExceptionTableRowValues gLInterfaceBatchExceptionTableRowValues)
gLInterfaceBatchExceptionTableRowValues
- The gLInterfaceBatchExceptionTableRowValues to set.protected GLInterfaceBatchExceptionTableRowValues getGLInterfaceBatchExceptionRowReason()
public void setGLInterfaceBatchExceptionRowReason(GLInterfaceBatchExceptionTableRowValues gLInterfaceBatchExceptionRowReason)
gLInterfaceBatchExceptionRowReason
- The gLInterfaceBatchExceptionRowReason to set.protected GLInterfaceBatchTotalsProcessedTableRowValues getGLInterfaceBatchTotalsProcessedTableRowValues()
public void setGLInterfaceBatchTotalsProcessedTableRowValues(GLInterfaceBatchTotalsProcessedTableRowValues gLInterfaceBatchTotalsProcessedTableRowValues)
gLInterfaceBatchTotalsProcessedTableRowValues
- The gLInterfaceBatchTotalsProcessedTableRowValues to set.protected GLInterfaceBatchStatisticsReportDetailTableRow getGLInterfaceBatchStatisticsReportDetailTableRow()
public void setGLInterfaceBatchStatisticsReportDetailTableRow(GLInterfaceBatchStatisticsReportDetailTableRow gLInterfaceBatchStatisticsReportDetailTableRow)
gLInterfaceBatchStatisticsReportDetailTableRow
- The gLInterfaceBatchStatisticsTableRowValues to set.protected TransactionArchiveDao getTransactionArchiveDao()
public void setTransactionArchiveDao(TransactionArchiveDao transactionArchiveDao)
transactionArchiveDao
- The transactionArchiveDao to set.public void setBatchFileDirectoryName(String batchFileDirectoryName)
batchFileDirectoryName
- protected org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.protected EndowmentAccountingLineBaseDao getEndowmentAccountingLineBaseDao()
public void setEndowmentAccountingLineBaseDao(EndowmentAccountingLineBaseDao endowmentAccountingLineBaseDao)
endowmentAccountingLineBaseDao
- The endowmentAccountingLineBaseDao to set.public GLInterfaceBatchProcessDao getgLInterfaceBatchProcessDao()
public void setgLInterfaceBatchProcessDao(GLInterfaceBatchProcessDao gLInterfaceBatchProcessDao)
gLInterfaceBatchProcessDao
- The gLInterfaceBatchProcessDao to set.protected GLLinkDao getgLLinkDao()
public void setgLLinkDao(GLLinkDao gLLinkDao)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |