public class CashManagementDocumentRule extends GeneralLedgerPostingDocumentRuleBase implements CashManagingRule
Constructor and Description |
---|
CashManagementDocumentRule() |
Modifier and Type | Method and Description |
---|---|
protected org.kuali.rice.core.api.util.type.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.krad.document.Document document)
Overrides to validate that all cash receipts are deposited when routing cash management document.
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.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.
|
getDictionaryValidationService
buildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValue
public CashManagementDocumentRule()
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.krad.rules.DocumentRuleBase
document
- submitted cash management documentorg.kuali.rice.krad.rule.DocumentRuleBase#processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document)
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.krad.rules.DocumentRuleBase
document
- submitted cash management documentDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.rice.krad.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 documentprotected boolean validateDeposit(Deposit deposit, boolean documentIsInitiated)
deposit
- individual deposit from cash management documentdocumentIsInitiated
- if document is initiatedprotected 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 routedprotected boolean performDataDictionaryValidation(Deposit deposit)
deposit
- deposit from cash management documentpublic 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 appliedorg.kuali.ole.fp.document.validation.CashManagingRule#processCashieringTransactionApplication(org.kuali.ole.fp.businessobject.CashieringTransaction)
public boolean checkMoneyInNoNegatives(CashieringTransaction trans)
trans
- represents cashiering transaction from documentpublic boolean checkMoneyOutNoNegatives(CashieringTransaction trans)
trans
- represents cashiering transaction from documentpublic boolean checkMoneyInMoneyOutBalance(CashieringTransaction trans)
trans
- represents cashiering transaction from cash management documentpublic boolean checkEnoughCashForMoneyOut(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- represents cash management documenttrans
- represents cash transaction from cash management documentpublic boolean checkNewItemInProcessDoesNotExceedCashDrawer(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- submitted cash management documenttrans
- transaction from cash management documentpublic boolean checkTransactionCheckTotalDoesNotExceedCashDrawer(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- submitted cash management documenttrans
- transaction from cash management documentpublic boolean checkPaidBackItemInProcessDoesNotExceedTotal(CashieringItemInProcess itemInProc, int cashieringItemNumber)
itemInProc
- cashiering item in processcashieringItemNumber
- cashiering item numberpublic boolean checkItemInProcessIsNotPayingOffItemInProcess(CashieringTransaction trans)
cmDoc
- submitted cash management documenttrans
- transaction from cash management documentpublic boolean checkAllPaidBackItemsInProcess(CashieringTransaction trans)
trans
- transaction from cash management documentpublic boolean checkNewItemInProcessInPast(CashieringTransaction trans)
trans
- transaction from cash management documentprotected org.kuali.rice.core.api.util.type.KualiDecimal calculateTotalCashDrawerReserves(CashDrawer cashDrawer, CashieringTransaction trans)
cmDoc
- trans
- protected int convertDateToDayYear(Date d)
d
- dateCopyright © 2004–2015 The Kuali Foundation. All rights reserved.