org.kuali.kfs.module.purap.document.validation.impl
Class PurchasingAccountsPayableBelowTheLineValuesValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.module.purap.document.validation.impl.PurchasingAccountsPayableBelowTheLineValuesValidation
- All Implemented Interfaces:
- Validation
public class PurchasingAccountsPayableBelowTheLineValuesValidation
- extends GenericValidation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurchasingAccountsPayableBelowTheLineValuesValidation
public PurchasingAccountsPayableBelowTheLineValuesValidation()
validate
public boolean validate(AttributedDocumentEvent event)
- Performs validations for below the line items. If the unit price is zero, and the system parameter indicates that the item
should not allow zero, then the validation fails. If the unit price is positive and the system parameter indicates that the
item should not allow positive values, then the validation fails. If the unit price is negative and the system parameter
indicates that the item should not allow negative values, then the validation fails. If the unit price is entered and is not
zero and the item description is empty and the system parameter indicates that the item requires user to enter description,
then the validation fails.
- Returns:
- true if validation should continue, false otherwise
getDataDictionaryService
public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
setDataDictionaryService
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
getParameterService
public org.kuali.rice.kns.service.ParameterService getParameterService()
setParameterService
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
getItemForValidation
public PurApItem getItemForValidation()
setItemForValidation
public void setItemForValidation(PurApItem itemForValidation)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.