public class LineItemReceivingDocumentRule extends org.kuali.rice.kns.rules.DocumentRuleBase implements ContinuePurapRule, AddReceivingItemRule
Constructor and Description |
---|
LineItemReceivingDocumentRule() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCreateLineItemReceivingDocument(LineItemReceivingDocument lineItemReceivingDocument)
Determines if it is valid to create a receiving line document.
|
protected boolean |
hasRequiredFieldsForContinue(LineItemReceivingDocument lineItemReceivingDocument)
Make sure the required fields on the init screen are filled in.
|
protected boolean |
isAtLeastOneItemEntered(ReceivingDocument receivingDocument)
TODO: move this up
This method...
|
boolean |
processAddReceivingItemRules(ReceivingDocument document,
LineItemReceivingItem item,
String errorPathPrefix)
Processes validation for a receiving item when added.
|
boolean |
processContinuePurapBusinessRules(org.kuali.rice.krad.document.TransactionalDocument document)
Checks the rules that are applicable to the Continue Event on a Transactional Document
|
protected boolean |
processCustomRouteDocumentBusinessRules(org.kuali.rice.krad.document.Document document) |
protected boolean |
validateAllReceivingLinesHaveSaneQuantities(ReceivingDocument document) |
protected boolean |
validateItemUnitOfMeasure(ReceivingDocument receivingDocument)
Validates that if the item type is quantity based, the unit of measure is required.
|
protected boolean |
validateQuantityDamagedNotMoreThanReceived(ReceivingDocument document,
LineItemReceivingItem item,
String errorPathPrefix,
Integer lineNumber) |
protected boolean |
validateQuantityReturnedNotMoreThanReceived(ReceivingDocument document,
LineItemReceivingItem item,
String errorPathPrefix,
Integer lineNumber) |
getDictionaryValidationService
buildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValue
public LineItemReceivingDocumentRule()
protected boolean processCustomRouteDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.krad.rules.DocumentRuleBase
protected boolean isAtLeastOneItemEntered(ReceivingDocument receivingDocument)
receivingDocument
- public boolean processContinuePurapBusinessRules(org.kuali.rice.krad.document.TransactionalDocument document)
ContinuePurapRule
processContinuePurapBusinessRules
in interface ContinuePurapRule
document
- the document to checkprotected boolean hasRequiredFieldsForContinue(LineItemReceivingDocument lineItemReceivingDocument)
lineItemReceivingDocument
- protected boolean canCreateLineItemReceivingDocument(LineItemReceivingDocument lineItemReceivingDocument)
lineItemReceivingDocument
- protected boolean validateItemUnitOfMeasure(ReceivingDocument receivingDocument)
public boolean processAddReceivingItemRules(ReceivingDocument document, LineItemReceivingItem item, String errorPathPrefix)
AddReceivingItemRule
processAddReceivingItemRules
in interface AddReceivingItemRule
org.kuali.ole.module.purap.document.validation.AddReceivingItemRule#processAddReceivingItemRules(org.kuali.ole.module.purap.document.ReceivingDocument, org.kuali.ole.module.purap.businessobject.ReceivingItem)
protected boolean validateQuantityReturnedNotMoreThanReceived(ReceivingDocument document, LineItemReceivingItem item, String errorPathPrefix, Integer lineNumber)
protected boolean validateQuantityDamagedNotMoreThanReceived(ReceivingDocument document, LineItemReceivingItem item, String errorPathPrefix, Integer lineNumber)
protected boolean validateAllReceivingLinesHaveSaneQuantities(ReceivingDocument document)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.