@Transactional public class GeneralLedgerPendingEntryServiceImpl extends Object implements GeneralLedgerPendingEntryService
| Modifier and Type | Field and Description |
|---|---|
protected BalanceTypeService |
balanceTypeService |
protected ChartService |
chartService |
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService |
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected GeneralLedgerPendingEntryDao |
generalLedgerPendingEntryDao |
protected org.kuali.rice.krad.service.KualiRuleService |
kualiRuleService |
protected OptionsService |
optionsService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected org.kuali.rice.krad.service.PersistenceStructureService |
persistenceStructureService |
protected UniversityDateService |
universityDateService |
| Constructor and Description |
|---|
GeneralLedgerPendingEntryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
GeneralLedgerPendingEntry |
buildGeneralLedgerPendingEntry(GeneralLedgerPostingDocument document,
Account account,
ObjectCode objectCode,
String subAccountNumber,
String subObjectCode,
String organizationReferenceId,
String projectCode,
String referenceNumber,
String referenceTypeCode,
String referenceOriginCode,
String description,
boolean isDebit,
org.kuali.rice.core.api.util.type.KualiDecimal amount,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Convenience method to build a GLPE without a generalLedgerPendingEntrySourceDetail
|
void |
delete(String documentHeaderId) |
void |
deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
Delete all pending entries for a specific document approved code
|
void |
fillInFiscalPeriodYear(GeneralLedgerPendingEntry glpe)
The fiscal year and period is null in quite a few glpe's.
|
Iterator |
findApprovedPendingLedgerEntries()
The method finds all pending ledger entries
|
Collection |
findPendingEntries(Map fieldValues,
boolean isApproved) |
Iterator |
findPendingLedgerEntries(Balance balance,
boolean isApproved,
boolean isConsolidated)
This method retrieves all pending ledger entries for the given encumbrance
|
Iterator |
findPendingLedgerEntries(Encumbrance encumbrance,
boolean isApproved)
This method retrieves all pending ledger entries for the given encumbrance
|
Iterator |
findPendingLedgerEntriesForAccountBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to the given account balance record in the future
|
Iterator |
findPendingLedgerEntriesForBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries matching the given balance criteria
|
Iterator |
findPendingLedgerEntriesForCashBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to cash balance in the future
|
Iterator |
findPendingLedgerEntriesForEncumbrance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to encumbrance table in the future
|
Iterator |
findPendingLedgerEntriesForEntry(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries matching the given entry criteria
|
Iterator |
findPendingLedgerEntrySummaryForAccountBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to the given account balance record in the future
|
protected void |
flexOffsetAccountIfNecessary(OffsetAccount flexibleOffsetAccount,
GeneralLedgerPendingEntry offsetEntry)
Applies the given flexible offset account to the given offset entry.
|
boolean |
generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySource glpeSource)
Invokes generateEntries method on the financial document.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getActualSummary(List universityFiscalYears,
String chartOfAccountsCode,
String accountNumber,
boolean isDebit)
This method...
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getBudgetSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isYearEnd)
This method...
|
GeneralLedgerPendingEntry |
getByPrimaryId(Integer transactionEntrySequenceId,
String documentHeaderId) |
org.kuali.rice.core.api.util.type.KualiDecimal |
getCashSummary(List universityFiscalYears,
String chartOfAccountsCode,
String accountNumber,
boolean isDebit)
This method...
|
List<String> |
getEncumbranceBalanceTypes(Map fieldValues,
Integer currentFiscalYear)
Gets the encumbrance balance type.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getEncumbranceSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isDebit,
boolean isYearEnd)
This method...
|
protected String |
getEntryValue(String targetValue,
String backupValue)
A helper method that checks the intended target value for null and empty strings.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getExpenseSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isDebit,
boolean isYearEnd)
This method...
|
protected String |
getOffsetEntryDebitCreditCode(GeneralLedgerPendingEntry explicitEntry)
Helper method that determines the debit/credit code for the offset entry.
|
protected String |
getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition)
Helper method that determines the offset entry's financial object code.
|
protected String |
getOffsetFinancialObjectTypeCode(OffsetDefinition offsetDefinition)
Helper method that determines the offset entry's financial object type code.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getOffsetToCashAmount(GeneralLedgerPostingDocument glPostingDocument)
Adds up the amounts of all cash to offset GeneralLedgerPendingEntry records on the given AccountingDocument
|
org.kuali.rice.krad.service.PersistenceStructureService |
getPersistenceStructureService()
Gets the persistenceStructureService attribute.
|
boolean |
hasPendingGeneralLedgerEntry(Account account)
Does the given account have any general ledger entries? It is necessary to check this before closing an account.
|
boolean |
isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry)
Determines if the given GeneralLedgerPendingEntry represents offsets to cash
|
boolean |
populateBankOffsetGeneralLedgerPendingEntry(Bank bank,
org.kuali.rice.core.api.util.type.KualiDecimal depositAmount,
GeneralLedgerPostingDocument financialDocument,
Integer universityFiscalYear,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry bankOffsetEntry,
String errorPropertyName)
This populates an empty GeneralLedgerPendingEntry instance with default values for a bank offset.
|
void |
populateExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySource glpeSource,
GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry explicitEntry)
This populates an empty GeneralLedgerPendingEntry explicitEntry object instance with default values.
|
boolean |
populateOffsetGeneralLedgerPendingEntry(Integer universityFiscalYear,
GeneralLedgerPendingEntry explicitEntry,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry offsetEntry)
This populates an GeneralLedgerPendingEntry offsetEntry object instance with values that differ from the values supplied in
the explicit entry that it was cloned from.
|
void |
save(GeneralLedgerPendingEntry generalLedgerPendingEntry) |
void |
setBalanceTypeService(BalanceTypeService balanceTypeService) |
void |
setChartService(ChartService chartService) |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setGeneralLedgerPendingEntryDao(GeneralLedgerPendingEntryDao generalLedgerPendingEntryDao) |
void |
setKualiRuleService(org.kuali.rice.krad.service.KualiRuleService kualiRuleService) |
void |
setOptionsService(OptionsService optionsService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value.
|
void |
setUniversityDateService(UniversityDateService universityDateService)
Sets the universityDateService.
|
protected GeneralLedgerPendingEntryDao generalLedgerPendingEntryDao
protected org.kuali.rice.krad.service.KualiRuleService kualiRuleService
protected ChartService chartService
protected OptionsService optionsService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected BalanceTypeService balanceTypeService
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService
protected UniversityDateService universityDateService
public GeneralLedgerPendingEntryServiceImpl()
public org.kuali.rice.core.api.util.type.KualiDecimal getExpenseSummary(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String sufficientFundsObjectCode, boolean isDebit, boolean isYearEnd)
GeneralLedgerPendingEntryServicegetExpenseSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getExpenseSummary(java.util.List, java.lang.String,
java.lang.String, boolean, boolean)public org.kuali.rice.core.api.util.type.KualiDecimal getEncumbranceSummary(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String sufficientFundsObjectCode, boolean isDebit, boolean isYearEnd)
GeneralLedgerPendingEntryServicegetEncumbranceSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getEncumbranceSummary(java.lang.Integer, java.lang.String,
java.lang.String, java.lang.String, boolean, boolean)public org.kuali.rice.core.api.util.type.KualiDecimal getBudgetSummary(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String sufficientFundsObjectCode, boolean isYearEnd)
GeneralLedgerPendingEntryServicegetBudgetSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getBudgetSummary(java.lang.Integer, java.lang.String,
java.lang.String, java.lang.String, boolean)public org.kuali.rice.core.api.util.type.KualiDecimal getCashSummary(List universityFiscalYears, String chartOfAccountsCode, String accountNumber, boolean isDebit)
GeneralLedgerPendingEntryServicegetCashSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getCashSummary(java.util.Collection, java.lang.String,
java.lang.String, boolean)public org.kuali.rice.core.api.util.type.KualiDecimal getActualSummary(List universityFiscalYears, String chartOfAccountsCode, String accountNumber, boolean isDebit)
GeneralLedgerPendingEntryServicegetActualSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getActualSummary(java.util.List, java.lang.String,
java.lang.String, boolean)public GeneralLedgerPendingEntry getByPrimaryId(Integer transactionEntrySequenceId, String documentHeaderId)
getByPrimaryId in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getByPrimaryId(java.lang.Integer, java.lang.String)public void fillInFiscalPeriodYear(GeneralLedgerPendingEntry glpe)
GeneralLedgerPendingEntryServicefillInFiscalPeriodYear in interface GeneralLedgerPendingEntryServicepublic boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySource glpeSource)
generateGeneralLedgerPendingEntries in interface GeneralLedgerPendingEntryServicedocument - - document whose pending entries need generatedpublic void populateExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySource glpeSource, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry)
populateExplicitGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServiceaccountingDocument - accountingLine - sequenceHelper - explicitEntry - public GeneralLedgerPendingEntry buildGeneralLedgerPendingEntry(GeneralLedgerPostingDocument document, Account account, ObjectCode objectCode, String subAccountNumber, String subObjectCode, String organizationReferenceId, String projectCode, String referenceNumber, String referenceTypeCode, String referenceOriginCode, String description, boolean isDebit, org.kuali.rice.core.api.util.type.KualiDecimal amount, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
buildGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServicedocument - a GeneralLedgerPostingDocumentaccount - the account for use in the GLPEobjectCode - the object code for use in the GLPEsubAccountNumber - the sub account number for use in the GLPEsubObjectCode - the subobject code for use in the GLPEorganizationReferenceId - the organization reference id to use in the GLPEprojectCode - the project code to use in the GLPEreferenceNumber - the reference number to use in the GLPEreferenceTypeCode - the reference type code to use in the GLPEreferenceOriginCode - the reference origin code to use in the GLPEdescription - the description to put in the GLPEisDebit - true if the GLPE represents a debit, false if it represents a creditamount - the amount of the GLPEsequenceHelper - the sequence helper to usepublic boolean populateOffsetGeneralLedgerPendingEntry(Integer universityFiscalYear, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry offsetEntry)
populateOffsetGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServiceuniversityFiscalYear - explicitEntry - sequenceHelper - offsetEntry - Cloned from the explicit entryprotected void flexOffsetAccountIfNecessary(OffsetAccount flexibleOffsetAccount, GeneralLedgerPendingEntry offsetEntry)
flexibleOffsetAccount - may be nulloffsetEntry - may be modifiedprotected String getOffsetFinancialObjectTypeCode(OffsetDefinition offsetDefinition)
offsetDefinition - protected String getOffsetEntryDebitCreditCode(GeneralLedgerPendingEntry explicitEntry)
explicitEntry - protected String getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition)
offsetDefinition - public boolean populateBankOffsetGeneralLedgerPendingEntry(Bank bank, org.kuali.rice.core.api.util.type.KualiDecimal depositAmount, GeneralLedgerPostingDocument financialDocument, Integer universityFiscalYear, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry bankOffsetEntry, String errorPropertyName)
populateBankOffsetGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServicebank - depositAmount - financialDocument - universityFiscalYear - sequenceHelper - bankOffsetEntry - errorPropertyName - public void save(GeneralLedgerPendingEntry generalLedgerPendingEntry)
save in interface GeneralLedgerPendingEntryServiceGeneralLedgerPendingEntryService.save(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntry)public void delete(String documentHeaderId)
delete in interface GeneralLedgerPendingEntryServicepublic void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
GeneralLedgerPendingEntryServicedeleteByFinancialDocumentApprovedCode in interface GeneralLedgerPendingEntryServicepublic Iterator findApprovedPendingLedgerEntries()
GeneralLedgerPendingEntryServicefindApprovedPendingLedgerEntries in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findApprovedPendingLedgerEntries()public Iterator findPendingLedgerEntries(Encumbrance encumbrance, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntries in interface GeneralLedgerPendingEntryServiceencumbrance - the encumbrance entryisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntries(org.kuali.ole.gl.businessobject.Encumbrance,
boolean)public boolean hasPendingGeneralLedgerEntry(Account account)
GeneralLedgerPendingEntryServicehasPendingGeneralLedgerEntry in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#hasPendingGeneralLedgerEntry(org.kuali.ole.coa.businessobject.Account)public Iterator findPendingLedgerEntries(Balance balance, boolean isApproved, boolean isConsolidated)
GeneralLedgerPendingEntryServicefindPendingLedgerEntries in interface GeneralLedgerPendingEntryServicebalance - the balance entryisApproved - the flag that indicates whether the pending entries are approved or don't careisConsolidated - determine whether the search results are consolidatedorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntries(Balance, boolean, boolean)public Iterator findPendingLedgerEntriesForEntry(Map fieldValues, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntriesForEntry in interface GeneralLedgerPendingEntryServicefieldValues - the input fields and valuesisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForEntry(java.util.Map, boolean)public Iterator findPendingLedgerEntriesForEncumbrance(Map fieldValues, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntriesForEncumbrance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForEncumbrance(Map, boolean)public Iterator findPendingLedgerEntriesForCashBalance(Map fieldValues, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntriesForCashBalance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForCashBalance(java.util.Map,
boolean)public Iterator findPendingLedgerEntriesForBalance(Map fieldValues, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntriesForBalance in interface GeneralLedgerPendingEntryServicefieldValues - the input fields and valuesisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForBalance(java.util.Map, boolean)public Iterator findPendingLedgerEntriesForAccountBalance(Map fieldValues, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntriesForAccountBalance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForAccountBalance(java.util.Map,
boolean, boolean)public Iterator findPendingLedgerEntrySummaryForAccountBalance(Map fieldValues, boolean isApproved)
GeneralLedgerPendingEntryServicefindPendingLedgerEntrySummaryForAccountBalance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't careorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntrySummaryForAccountBalance(java.util.Map,
boolean, boolean)public Collection findPendingEntries(Map fieldValues, boolean isApproved)
findPendingEntries in interface GeneralLedgerPendingEntryServiceprotected final String getEntryValue(String targetValue, String backupValue)
targetValue - backupValue - public boolean isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry)
isOffsetToCash in interface GeneralLedgerPendingEntryServicegeneralLedgerPendingEntry - the GeneralLedgerPendingEntry to checkpublic org.kuali.rice.core.api.util.type.KualiDecimal getOffsetToCashAmount(GeneralLedgerPostingDocument glPostingDocument)
getOffsetToCashAmount in interface GeneralLedgerPendingEntryServiceglPostingDocument - the accounting document total the offset to cash amount forpublic List<String> getEncumbranceBalanceTypes(Map fieldValues, Integer currentFiscalYear)
GeneralLedgerPendingEntryServicegetEncumbranceBalanceTypes in interface GeneralLedgerPendingEntryServiceGeneralLedgerPendingEntryService.getEncumbranceBalanceTypes(java.util.Map, java.lang.Integer)public void setBalanceTypeService(BalanceTypeService balanceTypeService)
public void setChartService(ChartService chartService)
public void setGeneralLedgerPendingEntryDao(GeneralLedgerPendingEntryDao generalLedgerPendingEntryDao)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public void setKualiRuleService(org.kuali.rice.krad.service.KualiRuleService kualiRuleService)
public void setOptionsService(OptionsService optionsService)
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService - The dataDictionaryService to set.public org.kuali.rice.krad.service.PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
persistenceStructureService - The persistenceStructureService to set.public void setUniversityDateService(UniversityDateService universityDateService)
universityDateService - Copyright © 2004–2015 The Kuali Foundation. All rights reserved.