org.kuali.kfs.module.purap.document.validation.impl
Class AccountsPayableDocumentPreRulesBase
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.module.purap.document.validation.impl.PurapDocumentPreRulesBase
org.kuali.kfs.module.purap.document.validation.impl.AccountsPayableDocumentPreRulesBase
- All Implemented Interfaces:
- org.kuali.rice.kns.rule.PromptBeforeValidation
- Direct Known Subclasses:
- CreditMemoDocumentPreRules, PaymentRequestDocumentPreRules
public abstract class AccountsPayableDocumentPreRulesBase
- extends PurapDocumentPreRulesBase
Performs prompts and other pre business rule checks for the Accounts Payable Document (and its children).
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
Field Summary |
protected static org.apache.log4j.Logger |
LOG
|
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
buttonClicked, event, form, 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 |
LOG
protected static org.apache.log4j.Logger LOG
AccountsPayableDocumentPreRulesBase
public AccountsPayableDocumentPreRulesBase()
doPrompts
public boolean doPrompts(org.kuali.rice.kns.document.Document document)
- Asks for an override if the document hasn't reached full entry and the entered amount does not
match the total amount of all items.
- Overrides:
doPrompts
in class PurapDocumentPreRulesBase
- See Also:
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.Document)
confirmInvoiceNoMatchOverride
protected boolean confirmInvoiceNoMatchOverride(AccountsPayableDocument accountsPayableDocument)
- Checks whether the invoice from the initial screen and the document invoice are mismatched. If so, it prompts the
user for confirmation to proceed.
- Parameters:
accountsPayableDocument
- - document to have its invoice/totals checked
- Returns:
createInvoiceNoMatchQuestionText
public String createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
- Creates the text for the invoice no match question being asked of the user.
- Parameters:
accountsPayableDocument
- - to be used by overriding method.
- Returns:
validateInvoiceTotalsAreMismatched
protected boolean validateInvoiceTotalsAreMismatched(AccountsPayableDocument accountsPayableDocument)
- Determines if the amount entered on the init tab is mismatched with the grand total of the document.
- Parameters:
accountsPayableDocument
-
- Returns:
getDocumentName
public String getDocumentName()
- Exists to be overriden by the child class and return the name of the document.
- Returns:
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.