public class PurchaseOrderAmendmentNewIndividualItemValidation extends PurchaseOrderNewIndividualItemValidation
Constructor and Description |
---|
PurchaseOrderAmendmentNewIndividualItemValidation() |
Modifier and Type | Method and Description |
---|---|
PurchaseOrderService |
getPurchaseOrderService() |
void |
setPurchaseOrderService(PurchaseOrderService purchaseOrderService) |
boolean |
validate(AttributedDocumentEvent event)
Overrides the method in PurchaseOrderNewIndividualItemValidation to add additional validations that are specific to Amendment.
|
protected boolean |
validateCommodityCodes(PurApItem item,
boolean commodityCodeRequired)
Overrides to provide validation for PurchaseOrderAmendmentDocument.
|
protected boolean |
validateThatCommodityCodeIsActive(PurApItem item)
Overrides the method in PurchasingDocumentRuleBase so that we'll return true
if the item has been previously saved to the database and we'll only check for
the commodity code active flag if the item has not been previously saved to
the database.
|
commodityCodeIsRequired, getEmptyItemsWithAccountsValidation, setEmptyItemsWithAccountsValidation
getBelowTheLineItemNoUnitCostValidation, getBusinessObjectService, getCapitalAssetBuilderModuleService, getItemDescriptionValidation, getItemQuantityValidation, getItemUnitPriceValidation, getUnitOfMeasureValidation, setBelowTheLineItemNoUnitCostValidation, setBusinessObjectService, setCapitalAssetBuilderModuleService, setItemDescriptionValidation, setItemQuantityValidation, setItemUnitPriceValidation, setUnitOfMeasureValidation, validateContainsAtLeastOneItem
getBelowTheLineValuesValidation, getDataDictionaryService, getDocumentTypeLabel, getItemForValidation, getParameterService, setBelowTheLineValuesValidation, setDataDictionaryService, setItemForValidation, setParameterService
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public PurchaseOrderAmendmentNewIndividualItemValidation()
public boolean validate(AttributedDocumentEvent event)
validate
in interface Validation
validate
in class PurchaseOrderNewIndividualItemValidation
org.kuali.ole.module.purap.document.validation.impl.PurchaseOrderDocumentRule#newIndividualItemValidation(org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument, java.lang.String, org.kuali.ole.module.purap.businessobject.PurApItem)
protected boolean validateCommodityCodes(PurApItem item, boolean commodityCodeRequired)
validateCommodityCodes
in class PurchasingNewIndividualItemValidation
item
- The PurApItem containing the commodity code to be validated.org.kuali.ole.module.purap.document.validation.impl.PurchasingDocumentRuleBase#validateCommodityCodes(org.kuali.ole.module.purap.businessobject.PurApItem, boolean)
protected boolean validateThatCommodityCodeIsActive(PurApItem item)
validateThatCommodityCodeIsActive
in class PurchasingNewIndividualItemValidation
item
- commodityCodeRequired
- public PurchaseOrderService getPurchaseOrderService()
public void setPurchaseOrderService(PurchaseOrderService purchaseOrderService)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.