org.kuali.kfs.fp.document.validation.impl
Class CashReceiptFamilyDocumentTotalValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.fp.document.validation.impl.CashReceiptFamilyDocumentTotalValidation
- All Implemented Interfaces:
- Validation
public class CashReceiptFamilyDocumentTotalValidation
- extends GenericValidation
Validation for the Cash Receipt family of documents that checks the total amount of the document.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CashReceiptFamilyDocumentTotalValidation
public CashReceiptFamilyDocumentTotalValidation()
validate
public boolean validate(AttributedDocumentEvent event)
- For Cash Receipt documents, the document is balanced if the sum total of checks and cash and coin equals the sum total of the
accounting lines. In addition, the sum total of checks and cash and coin must be greater than zero.
- Returns:
- true if validation should continue, false otherwise
- See Also:
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
getCashReceiptFamilyDocumentForValidation
public CashReceiptFamilyBase getCashReceiptFamilyDocumentForValidation()
- Gets the cashReceiptFamilyDocumentForValidation attribute.
- Returns:
- Returns the cashReceiptFamilyDocumentForValidation.
setCashReceiptFamilyDocumentForValidation
public void setCashReceiptFamilyDocumentForValidation(CashReceiptFamilyBase cashReceiptFamilyDocumentForValidation)
- Sets the cashReceiptFamilyDocumentForValidation attribute value.
- Parameters:
cashReceiptFamilyDocumentForValidation
- The cashReceiptFamilyDocumentForValidation to set.
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.