public class ProcurementCardBalanceValidation extends GenericValidation
Constructor and Description |
---|
ProcurementCardBalanceValidation() |
Modifier and Type | Method and Description |
---|---|
ProcurementCardDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.
|
protected boolean |
isTransactionBalanceValid(ProcurementCardTransactionDetail pcTransactionDetail)
This method validates the balance of the transaction given.
|
void |
setAccountingDocumentForValidation(ProcurementCardDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Validates that an accounting line does not have a capital object object code
Expects an accounting line as the first a parameter
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public ProcurementCardBalanceValidation()
public boolean validate(AttributedDocumentEvent event)
org.kuali.ole.sys.document.validation.Validation#validate(java.lang.Object[])
protected boolean isTransactionBalanceValid(ProcurementCardTransactionDetail pcTransactionDetail)
pcTransaction
- The transaction detail used to retrieve the procurement card transaction and target accounting
lines used to check for in balance.public ProcurementCardDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(ProcurementCardDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.