public class BudgetAdjustmentAccountingLineAmountValidation extends GenericValidation
Constructor and Description |
---|
BudgetAdjustmentAccountingLineAmountValidation() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkAmountSign(org.kuali.rice.core.api.util.type.KualiDecimal amount,
String propertyName,
String label)
Helper method to check if an amount is negative and add an error if not.
|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.
|
BudgetAdjustmentAccountingLine |
getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.
|
DebitDeterminerService |
getDebitDeterminerService()
Gets the debitDeterminerService attribute.
|
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
void |
setAccountingLineForValidation(BudgetAdjustmentAccountingLine accountingLineForValidation)
Sets the accountingLineForValidation attribute value.
|
void |
setDebitDeterminerService(DebitDeterminerService debitDeterminerService)
Sets the debitDeterminerService attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Validates the amounts on a budget adjustment accounting line, making sure that either the current adjustment amount or the base adjustment amount are not zero,
and that all given amounts are positive.
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public BudgetAdjustmentAccountingLineAmountValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected boolean checkAmountSign(org.kuali.rice.core.api.util.type.KualiDecimal amount, String propertyName, String label)
amount
- to checkpropertyName
- to add error underlabel
- for errorpublic BudgetAdjustmentAccountingLine getAccountingLineForValidation()
public void setAccountingLineForValidation(BudgetAdjustmentAccountingLine accountingLineForValidation)
accountingLineForValidation
- The accountingLineForValidation to set.public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.public DebitDeterminerService getDebitDeterminerService()
public void setDebitDeterminerService(DebitDeterminerService debitDeterminerService)
debitDeterminerService
- The debitDeterminerService to set.Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.