org.kuali.kfs.module.purap.document.validation.impl
Class PaymentRequestTotalsValidation

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.module.purap.document.validation.impl.PaymentRequestTotalsValidation
All Implemented Interfaces:
Validation

public class PaymentRequestTotalsValidation
extends GenericValidation


Constructor Summary
PaymentRequestTotalsValidation()
           
 
Method Summary
protected  void flagLineItemTotals(List<PurApItem> itemList)
          Flags with an erorr the item totals whos calculated extended price does not equal its extended price.
protected  org.kuali.rice.kns.util.KualiDecimal getTotalExcludingItemTypes(List<PurApItem> itemList, List<String> excludedItemTypes)
          Calculates a total but excludes passed in item types from the totalling.
 boolean validate(AttributedDocumentEvent event)
          This method validates that certain parameters
 
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

PaymentRequestTotalsValidation

public PaymentRequestTotalsValidation()
Method Detail

validate

public boolean validate(AttributedDocumentEvent event)
Description copied from interface: Validation
This method validates that certain parameters

Returns:
true if validation should continue, false otherwise

getTotalExcludingItemTypes

protected org.kuali.rice.kns.util.KualiDecimal getTotalExcludingItemTypes(List<PurApItem> itemList,
                                                                          List<String> excludedItemTypes)
Calculates a total but excludes passed in item types from the totalling.

Parameters:
itemList - - list of purap items
excludedItemTypes - - list of item types to exclude from totalling
Returns:

flagLineItemTotals

protected void flagLineItemTotals(List<PurApItem> itemList)
Flags with an erorr the item totals whos calculated extended price does not equal its extended price.

Parameters:
itemList - - list of purap items


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.