public class AuxiliaryVoucherAccountingLineAmountValidation extends GenericValidation
Constructor and Description |
---|
AuxiliaryVoucherAccountingLineAmountValidation() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildMessageMapKeyPathForDebitCreditAmount(boolean isDebit)
This method looks at the current full key path that exists in the MessageMap structure to determine how to build the error map
for the special journal voucher credit and debit fields since they don't conform to the standard pattern of accounting lines.
|
AccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.
|
void |
setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Accounting lines for Auxiliary Vouchers can only be positive non-zero numbers
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public AuxiliaryVoucherAccountingLineAmountValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected String buildMessageMapKeyPathForDebitCreditAmount(boolean isDebit)
isDebit
- boolean to determine whether or not value isDebit or notpublic AccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.