org.kuali.kfs.module.purap.document.validation.impl
Class PurchaseOrderAmendmentProcessAccountValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.BranchingValidation
org.kuali.kfs.module.purap.document.validation.impl.PurchaseOrderAmendmentProcessAccountValidation
- All Implemented Interfaces:
- Validation
public class PurchaseOrderAmendmentProcessAccountValidation
- extends BranchingValidation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROCESS_ACCOUNT_VALIDATION
protected final String PROCESS_ACCOUNT_VALIDATION
- See Also:
- Constant Field Values
itemForValidation
protected PurApItem itemForValidation
PurchaseOrderAmendmentProcessAccountValidation
public PurchaseOrderAmendmentProcessAccountValidation()
determineBranch
protected String determineBranch(AttributedDocumentEvent event)
- Overrides the method in PurchasingProcessAccountValidation to provide additional
validation condition. If the accounts on the item are editable in the amendment document then
we should continue doing the processAccountValidation in the superclass, otherwise
we should just return true so that the account won't be validated, because if
the items contain accounts that aren't editable, it doesn't make sense to give
the user account validation errors.
- Specified by:
determineBranch
in class BranchingValidation
- Parameters:
event
- the event which triggered this validation
- Returns:
- the name of the branch to take, or a null or empty string to not take any branch and simply pass validation as true
getItemForValidation
public PurApItem getItemForValidation()
setItemForValidation
public void setItemForValidation(PurApItem itemForValidation)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.