|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.rules.DocumentRuleBase
org.kuali.kfs.sys.document.validation.impl.LedgerPostingDocumentRuleBase
org.kuali.kfs.sys.document.validation.impl.GeneralLedgerPostingDocumentRuleBase
org.kuali.kfs.fp.document.validation.impl.CashManagementDocumentRule
public class CashManagementDocumentRule
Business rule(s) applicable to Cash Management Document.
Constructor Summary | |
---|---|
CashManagementDocumentRule()
|
Method Summary | |
---|---|
protected org.kuali.rice.kns.util.KualiDecimal |
calculateTotalCashDrawerReserves(CashDrawer cashDrawer,
CashieringTransaction trans)
This method calculates the total cash drawer reserves amount |
boolean |
checkAllPaidBackItemsInProcess(CashieringTransaction trans)
This method returns true if all open items in process amounts do not exceed the total for each specific item's amount total |
boolean |
checkEnoughCashForMoneyOut(CashDrawer cashDrawer,
CashieringTransaction trans)
This method returns true if none of the coin (1 cent, 5 cents, etc) and cash increments (1 dollar, 2 dollars, 5 dollars etc. |
boolean |
checkItemInProcessIsNotPayingOffItemInProcess(CashieringTransaction trans)
This method returns true if a new item in process is populated and none of the open item in process' amounts are greater than zero. |
boolean |
checkMoneyInMoneyOutBalance(CashieringTransaction trans)
Returns true if money-in and money-out are in balance with each other |
boolean |
checkMoneyInNoNegatives(CashieringTransaction trans)
Returns true if none of the entered money-in amounts (cash and coin) are not negative in a cashiering transaction |
boolean |
checkMoneyOutNoNegatives(CashieringTransaction trans)
Returns true if none of the entered money-out amounts (cash and coin) are not negative in a cashiering transaction |
boolean |
checkNewItemInProcessDoesNotExceedCashDrawer(CashDrawer cashDrawer,
CashieringTransaction trans)
This method returns true if the new item in process does not exceed the current amount in the cash drawer reserves |
boolean |
checkNewItemInProcessInPast(CashieringTransaction trans)
This method returns true if the current date is after all new items in process' open dates |
boolean |
checkPaidBackItemInProcessDoesNotExceedTotal(CashieringItemInProcess itemInProc,
int cashieringItemNumber)
This method returns true if the current payment amount for the cashiering item in process does not exceed the actual item amount for the item in process |
boolean |
checkTransactionCheckTotalDoesNotExceedCashDrawer(CashDrawer cashDrawer,
CashieringTransaction trans)
This method returns true if check total from transaction does not exceed the current amount in the cash drawer reserves |
protected int |
convertDateToDayYear(Date d)
This method returns the current day of year as an int for a specific date. |
protected boolean |
performDataDictionaryValidation(Deposit deposit)
Performs complete, recursive dataDictionary-driven validation of the given Deposit. |
boolean |
processCashieringTransactionApplication(CashDrawer cashDrawer,
CashieringTransaction cashieringTransaction)
Processes the checks to validate that the application of the given cashiering transaction will be valid |
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
Overrides to validate that all cash receipts are deposited when routing cash management document. |
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
Overrides to validate that the person saving the document is the initiator, validates that the cash drawer is open for initial creation, validates that the cash drawer for the specific verification unit is closed for subsequent saves, and validates that the associate cash receipts are still verified. |
protected boolean |
validateDeposit(Deposit deposit,
boolean documentIsInitiated)
If documentIsInitiated, performs complete dataDictionary-driven validation of the given Deposit. |
protected boolean |
validateDeposits(CashManagementDocument cmd)
Validates all Deposits associated with the given CashManagementDocument |
protected boolean |
verifyAllVerifiedCashReceiptsDeposited(CashManagementDocument cmDoc)
Verifies that all verified cash receipts have been deposited |
protected void |
verifyCashDrawerForVerificationUnitIsOpenForPostInitiationSaves(CashManagementDocument cmd)
This method checks to make sure that the cash drawer is closed for the associated verification unit, for post initiation saves for CashManagementDocuments which don't have Final |
protected void |
verifyCashReceipts(Deposit deposit,
boolean documentIsInitiated)
Verifies that all CashReceipts associated with the given document are of an appropriate status for the given CashManagementDocument state |
protected void |
verifyUserIsDocumentInitiator(CashManagementDocument cmd)
This method checks to make sure that the current system user is the person that initiated this document in the first place. |
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase |
---|
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CashManagementDocumentRule()
Method Detail |
---|
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.kns.rules.DocumentRuleBase
document
- submitted cash management document
org.kuali.rice.kns.rule.DocumentRuleBase#processCustomSaveDocumentBusinessRules(org.kuali.rice.kns.document.Document)
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.kns.rules.DocumentRuleBase
document
- submitted cash management document
DocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.kns.document.Document)
protected void verifyUserIsDocumentInitiator(CashManagementDocument cmd)
cmd
- submitted cash management documentprotected void verifyCashDrawerForVerificationUnitIsOpenForPostInitiationSaves(CashManagementDocument cmd)
cmd
- submitted cash management documentprotected boolean validateDeposits(CashManagementDocument cmd)
cmd
- submitted cash management document
protected boolean validateDeposit(Deposit deposit, boolean documentIsInitiated)
deposit
- individual deposit from cash management documentdocumentIsInitiated
- if document is initiated
protected void verifyCashReceipts(Deposit deposit, boolean documentIsInitiated)
deposit
- deposit from cash management documentdocumentIsInitiated
- if document is initiatedprotected boolean verifyAllVerifiedCashReceiptsDeposited(CashManagementDocument cmDoc)
cmDoc
- the cash management document that is about to be routed
protected boolean performDataDictionaryValidation(Deposit deposit)
deposit
- deposit from cash management document
public boolean processCashieringTransactionApplication(CashDrawer cashDrawer, CashieringTransaction cashieringTransaction)
processCashieringTransactionApplication
in interface CashManagingRule
cashDrawer
- the cash drawer the transaction will be applied tocashieringTransaction
- the cashering transaction which may be applied
org.kuali.kfs.fp.document.validation.CashManagingRule#processCashieringTransactionApplication(org.kuali.kfs.fp.businessobject.CashieringTransaction)
public boolean checkMoneyInNoNegatives(CashieringTransaction trans)
trans
- represents cashiering transaction from document
public boolean checkMoneyOutNoNegatives(CashieringTransaction trans)
trans
- represents cashiering transaction from document
public boolean checkMoneyInMoneyOutBalance(CashieringTransaction trans)
trans
- represents cashiering transaction from cash management document
public boolean checkEnoughCashForMoneyOut(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- represents cash management documenttrans
- represents cash transaction from cash management document
public boolean checkNewItemInProcessDoesNotExceedCashDrawer(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- submitted cash management documenttrans
- transaction from cash management document
public boolean checkTransactionCheckTotalDoesNotExceedCashDrawer(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- submitted cash management documenttrans
- transaction from cash management document
public boolean checkPaidBackItemInProcessDoesNotExceedTotal(CashieringItemInProcess itemInProc, int cashieringItemNumber)
itemInProc
- cashiering item in processcashieringItemNumber
- cashiering item number
public boolean checkItemInProcessIsNotPayingOffItemInProcess(CashieringTransaction trans)
cmDoc
- submitted cash management documenttrans
- transaction from cash management document
public boolean checkAllPaidBackItemsInProcess(CashieringTransaction trans)
trans
- transaction from cash management document
public boolean checkNewItemInProcessInPast(CashieringTransaction trans)
trans
- transaction from cash management document
protected org.kuali.rice.kns.util.KualiDecimal calculateTotalCashDrawerReserves(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- trans
-
protected int convertDateToDayYear(Date d)
d
- date
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |