org.kuali.kfs.fp.document.validation.impl
Class CashReceiptFamilyDocumentTotalValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.GenericValidation
          extended by 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.


Constructor Summary
CashReceiptFamilyDocumentTotalValidation()
           
 
Method Summary
 CashReceiptFamilyBase getCashReceiptFamilyDocumentForValidation()
          Gets the cashReceiptFamilyDocumentForValidation attribute.
 void setCashReceiptFamilyDocumentForValidation(CashReceiptFamilyBase cashReceiptFamilyDocumentForValidation)
          Sets the cashReceiptFamilyDocumentForValidation attribute value.
 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.
 
Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation
setQuitOnFail, shouldQuitOnFail, stageValidation
 
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CashReceiptFamilyDocumentTotalValidation

public CashReceiptFamilyDocumentTotalValidation()
Method Detail

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.