public class BalanceForwardRuleHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BalanceForwardRuleHelper.BalanceForwardProcessState
A container for the state of the balance forward process.
|
Constructor and Description |
---|
BalanceForwardRuleHelper()
Constructs a BalanceForwardRuleHelper
|
BalanceForwardRuleHelper(Integer closingFiscalYear)
Constructs a BalanceForwardRuleHelper, using a fiscal year.
|
BalanceForwardRuleHelper(Integer closingFiscalYear,
Date transactionDate,
String balanceForwardsclosedFileName,
String balanceForwardsUnclosedFileName)
Constructs a BalanceForwardRuleHelper, but this one goes whole hog: initializes all of the relevant parameters and the
balance types to process
|
Modifier and Type | Method and Description |
---|---|
OriginEntryFull |
generateCumulativeForwardOriginEntry(Balance balance)
This method generates an origin entry for a given cumulative balance forward balance
|
OriginEntryFull |
generateGeneralForwardOriginEntry(Balance balance)
Creates an origin entry that will forward this "general" balance
|
String |
getAnnualClosingDocType()
Gets the annualClosingDocType attribute.
|
String |
getBalanceForwardsclosedFileName() |
String |
getBalanceForwardsUnclosedFileName() |
Integer |
getClosingFiscalYear() |
String |
getGlOriginationCode()
Gets the glOriginationCode attribute.
|
BalanceForwardRuleHelper.BalanceForwardProcessState |
getState() |
Date |
getTransactionDate() |
void |
processCumulativeForwardBalance(Balance balance,
PrintStream closedPs,
PrintStream unclosedPs)
This method creates an origin entry for a cumulative balance forward and saves it in its proper origin entry group
|
void |
processGeneralForwardBalance(Balance balance,
PrintStream closedPs,
PrintStream unclosedPs)
The balance to create a general balance forward origin entry for
|
void |
setBalanceForwardsclosedFileName(String balanceForwardsclosedFileName) |
void |
setBalanceForwardsUnclosedFileName(String balanceForwardsUnclosedFileName) |
void |
setClosingFiscalYear(Integer fiscalYear) |
void |
setOriginEntryService(OriginEntryService originEntryService) |
void |
setPriorYearAccountService(PriorYearAccountService priorYearAccountService) |
void |
setSubFundGroupService(SubFundGroupService subFundGroupService) |
void |
setTransactionDate(Date transactionDate) |
void |
writeClosedAccountBalanceForwardLedgerSummaryReport(ReportWriterService reportWriterService)
Writes the ledger report for cumulative balance forward entries to the given reportWriterService
|
void |
writeOpenAccountBalanceForwardLedgerSummaryReport(ReportWriterService reportWriterService)
Writes the ledger report for general balance forward entries to the given reportWriterService
|
public BalanceForwardRuleHelper()
public BalanceForwardRuleHelper(Integer closingFiscalYear)
closingFiscalYear
- the fiscal year that is closing outpublic BalanceForwardRuleHelper(Integer closingFiscalYear, Date transactionDate, String balanceForwardsclosedFileName, String balanceForwardsUnclosedFileName)
closingFiscalYear
- the fiscal year to closetransactionDate
- the date this job is being runclosedPriorYearAccountGroup
- the group to put balance forwarding origin entries with closed accounts intounclosedPriorYearAccountGroup
- the group to put balance forwarding origin entries with open accounts intopublic void processGeneralForwardBalance(Balance balance, PrintStream closedPs, PrintStream unclosedPs)
balance
- a balance to create an origin entry forclosedPriorYearAccountGroup
- the group to put balance forwarding origin entries with closed accounts intounclosedPriorYearAccountGroup
- the group to put balance forwarding origin entries with open accounts intoFatalErrorException
public void processCumulativeForwardBalance(Balance balance, PrintStream closedPs, PrintStream unclosedPs)
balance
- a balance which needs to have a cumulative origin entry generated for itclosedPriorYearAccountGroup
- the origin entry group where forwarding origin entries with closed prior year accounts gounclosedPriorYearAcocuntGroup
- the origin entry group where forwarding origin entries with open prior year accounts gopublic OriginEntryFull generateCumulativeForwardOriginEntry(Balance balance)
balance
- a balance to foward, cumulative stylepublic OriginEntryFull generateGeneralForwardOriginEntry(Balance balance)
balance
- the balance to create a general origin entry forpublic void writeOpenAccountBalanceForwardLedgerSummaryReport(ReportWriterService reportWriterService)
reportWriteService
- the reportWriterService to write topublic void writeClosedAccountBalanceForwardLedgerSummaryReport(ReportWriterService reportWriterService)
reportWriteService
- the reportWriterService to write topublic void setPriorYearAccountService(PriorYearAccountService priorYearAccountService)
priorYearAccountService
- The priorYearAccountService to set.public void setSubFundGroupService(SubFundGroupService subFundGroupService)
subFundGroupService
- The subFundGroupService to set.public void setOriginEntryService(OriginEntryService originEntryService)
originEntryService
- The originEntryService to set.public Integer getClosingFiscalYear()
public void setClosingFiscalYear(Integer fiscalYear)
public Date getTransactionDate()
public void setTransactionDate(Date transactionDate)
public String getBalanceForwardsUnclosedFileName()
public void setBalanceForwardsUnclosedFileName(String balanceForwardsUnclosedFileName)
public String getBalanceForwardsclosedFileName()
public void setBalanceForwardsclosedFileName(String balanceForwardsclosedFileName)
public BalanceForwardRuleHelper.BalanceForwardProcessState getState()
public String getGlOriginationCode()
public String getAnnualClosingDocType()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.