org.kuali.kfs.fp.document.validation.impl
Class BudgetAdjustmentDocumentPreRules
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.fp.document.validation.impl.BudgetAdjustmentDocumentPreRules
- All Implemented Interfaces:
- org.kuali.rice.kns.rule.PromptBeforeValidation
public class BudgetAdjustmentDocumentPreRules
- extends org.kuali.rice.kns.rules.PromptBeforeValidationBase
Checks warnings and prompt conditions for ba document.
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
Field Summary |
protected org.kuali.rice.kns.service.KualiConfigurationService |
kualiConfiguration
|
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
buttonClicked, event, form, LOG, question |
Methods inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
abortRulesCheck, askOrAnalyzeYesNoQuestion, processPrompts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
kualiConfiguration
protected org.kuali.rice.kns.service.KualiConfigurationService kualiConfiguration
BudgetAdjustmentDocumentPreRules
public BudgetAdjustmentDocumentPreRules()
doPrompts
public boolean doPrompts(org.kuali.rice.kns.document.Document document)
- Execute pre-rules for BudgetAdjustmentDocument
- Specified by:
doPrompts
in class org.kuali.rice.kns.rules.PromptBeforeValidationBase
- Returns:
- true if pre-rules fire without problem
- See Also:
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.MaintenanceDocument)
askLaborBenefitsGeneration
protected boolean askLaborBenefitsGeneration(BudgetAdjustmentDocument budgetDocument)
- Calls service to determine if any labor object codes are present on the ba document. If so, asks the user if they want the
system to automatically generate the benefit lines. If Yes, calls service to generate the accounting lines.
- Parameters:
budgetDocument
- submitted budget document
- Returns:
- true if labor benefits generation question is NOT asked
deepCopyAccountingLinesList
protected List deepCopyAccountingLinesList(List originals)
- TODO: remove this method once baseline accounting lines has been removed
canGenerateLaborBenefitsByRouteStatus
protected boolean canGenerateLaborBenefitsByRouteStatus(BudgetAdjustmentDocument budgetAdjustmentDocument)
- Based on the routing status of the document, determines if labor benefits can be generated on the document
- Parameters:
budgetAdjustmentDocument
- the budget adjustment document that labor benefits would be generated on
- Returns:
- true if labor benefits can be generated, false otherwise
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.