@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)
GeneralLedgerPendingEntryService
getExpenseSummary
in interface GeneralLedgerPendingEntryService
org.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)
GeneralLedgerPendingEntryService
getEncumbranceSummary
in interface GeneralLedgerPendingEntryService
org.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)
GeneralLedgerPendingEntryService
getBudgetSummary
in interface GeneralLedgerPendingEntryService
org.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)
GeneralLedgerPendingEntryService
getCashSummary
in interface GeneralLedgerPendingEntryService
org.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)
GeneralLedgerPendingEntryService
getActualSummary
in interface GeneralLedgerPendingEntryService
org.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 GeneralLedgerPendingEntryService
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#getByPrimaryId(java.lang.Integer, java.lang.String)
public void fillInFiscalPeriodYear(GeneralLedgerPendingEntry glpe)
GeneralLedgerPendingEntryService
fillInFiscalPeriodYear
in interface GeneralLedgerPendingEntryService
public boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySource glpeSource)
generateGeneralLedgerPendingEntries
in interface GeneralLedgerPendingEntryService
document
- - document whose pending entries need generatedpublic void populateExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySource glpeSource, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry)
populateExplicitGeneralLedgerPendingEntry
in interface GeneralLedgerPendingEntryService
accountingDocument
- 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 GeneralLedgerPendingEntryService
document
- 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 GeneralLedgerPendingEntryService
universityFiscalYear
- 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 GeneralLedgerPendingEntryService
bank
- depositAmount
- financialDocument
- universityFiscalYear
- sequenceHelper
- bankOffsetEntry
- errorPropertyName
- public void save(GeneralLedgerPendingEntry generalLedgerPendingEntry)
save
in interface GeneralLedgerPendingEntryService
GeneralLedgerPendingEntryService.save(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntry)
public void delete(String documentHeaderId)
delete
in interface GeneralLedgerPendingEntryService
public void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
GeneralLedgerPendingEntryService
deleteByFinancialDocumentApprovedCode
in interface GeneralLedgerPendingEntryService
public Iterator findApprovedPendingLedgerEntries()
GeneralLedgerPendingEntryService
findApprovedPendingLedgerEntries
in interface GeneralLedgerPendingEntryService
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findApprovedPendingLedgerEntries()
public Iterator findPendingLedgerEntries(Encumbrance encumbrance, boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntries
in interface GeneralLedgerPendingEntryService
encumbrance
- 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)
GeneralLedgerPendingEntryService
hasPendingGeneralLedgerEntry
in interface GeneralLedgerPendingEntryService
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#hasPendingGeneralLedgerEntry(org.kuali.ole.coa.businessobject.Account)
public Iterator findPendingLedgerEntries(Balance balance, boolean isApproved, boolean isConsolidated)
GeneralLedgerPendingEntryService
findPendingLedgerEntries
in interface GeneralLedgerPendingEntryService
balance
- 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)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForEntry
in interface GeneralLedgerPendingEntryService
fieldValues
- 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)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForEncumbrance
in interface GeneralLedgerPendingEntryService
isApproved
- 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)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForCashBalance
in interface GeneralLedgerPendingEntryService
isApproved
- 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)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForBalance
in interface GeneralLedgerPendingEntryService
fieldValues
- 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)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForAccountBalance
in interface GeneralLedgerPendingEntryService
isApproved
- 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)
GeneralLedgerPendingEntryService
findPendingLedgerEntrySummaryForAccountBalance
in interface GeneralLedgerPendingEntryService
isApproved
- 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 GeneralLedgerPendingEntryService
protected final String getEntryValue(String targetValue, String backupValue)
targetValue
- backupValue
- public boolean isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry)
isOffsetToCash
in interface GeneralLedgerPendingEntryService
generalLedgerPendingEntry
- the GeneralLedgerPendingEntry to checkpublic org.kuali.rice.core.api.util.type.KualiDecimal getOffsetToCashAmount(GeneralLedgerPostingDocument glPostingDocument)
getOffsetToCashAmount
in interface GeneralLedgerPendingEntryService
glPostingDocument
- the accounting document total the offset to cash amount forpublic List<String> getEncumbranceBalanceTypes(Map fieldValues, Integer currentFiscalYear)
GeneralLedgerPendingEntryService
getEncumbranceBalanceTypes
in interface GeneralLedgerPendingEntryService
GeneralLedgerPendingEntryService.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.