@Transactional public class SufficientFundsServiceImpl extends Object implements SufficientFundsService, SufficientFundsServiceConstants
Modifier and Type | Class and Description |
---|---|
protected class |
SufficientFundsServiceImpl.PendingAmounts
An inner class to hold summary totals of pending ledger entry amounts
|
KUALI_TRANSACTION_PROCESSING_SUFFICIENT_FUNDS_SECURITY_GROUPING, SUFFICIENT_FUNDS_OBJECT_CODE_CASH_IN_BANK, SUFFICIENT_FUNDS_OBJECT_CODE_SPECIALS
Constructor and Description |
---|
SufficientFundsServiceImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkEncumbrance(SufficientFundsItem item,
org.kuali.rice.core.api.util.type.KualiDecimal balanceAmount,
org.kuali.rice.core.api.util.type.KualiDecimal availableBalance,
SufficientFundBalances sfBalance) |
boolean |
checkExpense(SufficientFundsItem item,
org.kuali.rice.core.api.util.type.KualiDecimal balanceAmount,
org.kuali.rice.core.api.util.type.KualiDecimal availableBalance,
SufficientFundBalances sfBalance,
org.kuali.rice.core.api.util.type.KualiDecimal freeBalance) |
List<SufficientFundsItem> |
checkSufficientFunds(GeneralLedgerPostingDocument document)
Checks for sufficient funds on a single document
|
List<SufficientFundsItem> |
checkSufficientFunds(List<? extends Transaction> transactions)
Checks for sufficient funds on a list of transactions
|
List<SufficientFundsItem> |
checkSufficientFundsForInvoice(List<? extends Transaction> transactions) |
List<SufficientFundsItem> |
checkSufficientFundsForPREQ(List<? extends Transaction> transactions) |
protected SufficientFundsServiceImpl.PendingAmounts |
getPendingBalanceAmount(SufficientFundsItem item)
Totals the amounts of actual, encumbrance, and budget amounts from related pending entries
|
protected SufficientFundsServiceImpl.PendingAmounts |
getPriorYearSufficientFundsBalanceAmount(SufficientFundsItem item)
Given a sufficient funds item to check, gets the prior year sufficient funds balance to check against
|
String |
getSufficientFundsObjectCode(ObjectCode financialObject,
String accountSufficientFundsCode)
This operation derives the acct_sf_finobj_cd which is used to populate the General Ledger Pending entry table, so that later
we can do Suff Fund checking against that entry
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getSumPaidInvoicesForAccount(String chartCode,
String accountNo,
String objectCode) |
org.kuali.rice.core.api.util.type.KualiDecimal |
getSumPaidInvoicesForObject(String chartCode,
String accountNo,
String objectCode) |
protected boolean |
hasSufficientFundsOnItem(SufficientFundsItem item)
Given a sufficient funds item record, determines if there are sufficient funds available for the transaction
|
protected boolean |
hasSufficientFundsOnPREQItem(SufficientFundsItem item) |
protected boolean |
isYearEndDocument(Class documentClass)
checks to see if a document is a
YearEndDocument |
void |
purgeYearByChart(String chart,
int year)
Purge the sufficient funds balance table by year/chart
|
void |
setAccountService(AccountService accountService) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService) |
void |
setGeneralLedgerPendingEntryService(GeneralLedgerPendingEntryService generalLedgerPendingEntryService) |
void |
setObjectLevelService(ObjectLevelService objectLevelService) |
void |
setOptionsService(OptionsService optionsService) |
void |
setSufficientFundBalancesDao(SufficientFundBalancesDao sufficientFundBalancesDao) |
void |
setSufficientFundsDao(SufficientFundsDao sufficientFundsDao) |
protected List<SufficientFundsItem> |
summarizeTransactions(List<? extends Transaction> transactions)
For each transaction, fetches the appropriate sufficient funds item to check against
|
public SufficientFundsServiceImpl()
public String getSufficientFundsObjectCode(ObjectCode financialObject, String accountSufficientFundsCode)
getSufficientFundsObjectCode
in interface SufficientFundsService
financialObject
- the object code being checked againstaccountSufficientFundsCode
- the kind of sufficient funds checking turned on in this systemSufficientFundsService.getSufficientFundsObjectCode(org.kuali.ole.coa.businessobject.ObjectCode,
java.lang.String)
public List<SufficientFundsItem> checkSufficientFunds(GeneralLedgerPostingDocument document)
checkSufficientFunds
in interface SufficientFundsService
document
- document to checkorg.kuali.ole.gl.service.SufficientFundsService#checkSufficientFunds(org.kuali.rice.krad.document.FinancialDocument)
protected boolean isYearEndDocument(Class documentClass)
YearEndDocument
documentClass
- the class of a Document to checkYearEndDocument
public List<SufficientFundsItem> checkSufficientFunds(List<? extends Transaction> transactions)
checkSufficientFunds
in interface SufficientFundsService
transactions
- list of transactionsSufficientFundsService.checkSufficientFunds(java.util.List)
public List<SufficientFundsItem> checkSufficientFundsForPREQ(List<? extends Transaction> transactions)
checkSufficientFundsForPREQ
in interface SufficientFundsService
public List<SufficientFundsItem> checkSufficientFundsForInvoice(List<? extends Transaction> transactions)
checkSufficientFundsForInvoice
in interface SufficientFundsService
protected List<SufficientFundsItem> summarizeTransactions(List<? extends Transaction> transactions)
transactions
- a list of Transactionsprotected boolean hasSufficientFundsOnItem(SufficientFundsItem item)
item
- the item to checkpublic boolean checkEncumbrance(SufficientFundsItem item, org.kuali.rice.core.api.util.type.KualiDecimal balanceAmount, org.kuali.rice.core.api.util.type.KualiDecimal availableBalance, SufficientFundBalances sfBalance)
protected boolean hasSufficientFundsOnPREQItem(SufficientFundsItem item)
public boolean checkExpense(SufficientFundsItem item, org.kuali.rice.core.api.util.type.KualiDecimal balanceAmount, org.kuali.rice.core.api.util.type.KualiDecimal availableBalance, SufficientFundBalances sfBalance, org.kuali.rice.core.api.util.type.KualiDecimal freeBalance)
public org.kuali.rice.core.api.util.type.KualiDecimal getSumPaidInvoicesForAccount(String chartCode, String accountNo, String objectCode)
public org.kuali.rice.core.api.util.type.KualiDecimal getSumPaidInvoicesForObject(String chartCode, String accountNo, String objectCode)
protected SufficientFundsServiceImpl.PendingAmounts getPriorYearSufficientFundsBalanceAmount(SufficientFundsItem item)
item
- the sufficient funds item to check againstprotected SufficientFundsServiceImpl.PendingAmounts getPendingBalanceAmount(SufficientFundsItem item)
item
- a sufficient funds item to find pending amounts forpublic void purgeYearByChart(String chart, int year)
purgeYearByChart
in interface SufficientFundsService
chart
- the chart of sufficient fund balances to purgeyear
- the fiscal year of sufficient fund balances to purgepublic void setAccountService(AccountService accountService)
public void setGeneralLedgerPendingEntryService(GeneralLedgerPendingEntryService generalLedgerPendingEntryService)
public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
public void setObjectLevelService(ObjectLevelService objectLevelService)
public void setOptionsService(OptionsService optionsService)
public void setSufficientFundBalancesDao(SufficientFundBalancesDao sufficientFundBalancesDao)
public void setSufficientFundsDao(SufficientFundsDao sufficientFundsDao)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.