public class JournalVoucherAccountingLineAmountValidation extends GenericValidation
Constructor and Description |
---|
JournalVoucherAccountingLineAmountValidation() |
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.
|
JournalVoucherDocument |
getJournalVoucherForValidation()
Gets the journalVoucherForValidation attribute.
|
void |
setAccountingLineForValidation(AccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.
|
void |
setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
Sets the journalVoucherForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Accounting lines for Journal Vouchers can be positive or negative, just not "$0.00".
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public JournalVoucherAccountingLineAmountValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected String buildMessageMapKeyPathForDebitCreditAmount(boolean isDebit)
isDebit
- Identifies whether or not the line we are returning an error path for is a debit accounting line or not.public AccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.public JournalVoucherDocument getJournalVoucherForValidation()
public void setJournalVoucherForValidation(JournalVoucherDocument journalVoucherForValidation)
journalVoucherForValidation
- The journalVoucherForValidation to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.