public class PurchasingAccountsPayablesItemPreCalculateValidations extends GenericValidation
Constructor and Description |
---|
PurchasingAccountsPayablesItemPreCalculateValidations() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkTotalPercentAndTotalAmountsEqual(PurApItem item)
checks for both percent = 100% and item total = account amount total
|
boolean |
checkTotalPercentOrTotalAmountsEqual(PurApItem item)
checks for only either percent = 100% or item total = account amount total
|
void |
setItem(PurApItem item)
Sets the accountingDocumentForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
boolean |
validateTotalAmount(PurApItem item,
boolean writeErrorMessage)
Verifies account amounts = item total.
|
boolean |
validateTotalPercent(PurApItem item,
boolean writeErrorMessage)
Verifies account percent.
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public PurchasingAccountsPayablesItemPreCalculateValidations()
public boolean validate(AttributedDocumentEvent event)
Validation
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
public boolean checkTotalPercentAndTotalAmountsEqual(PurApItem item)
item
- public boolean checkTotalPercentOrTotalAmountsEqual(PurApItem item)
item
- public boolean validateTotalPercent(PurApItem item, boolean writeErrorMessage)
item
- writeErrorMessage
- true if error message to be added to global error variables, else falsepublic boolean validateTotalAmount(PurApItem item, boolean writeErrorMessage)
item
- writeErrorMessage
- true if error message to be added to global error variables, else falseCopyright © 2004–2015 The Kuali Foundation. All rights reserved.