org.kuali.kfs.module.purap.document.validation.impl
Class AccountsPayableDocumentPreRulesBase

java.lang.Object
  extended by org.kuali.rice.kns.rules.PromptBeforeValidationBase
      extended by org.kuali.kfs.module.purap.document.validation.impl.PurapDocumentPreRulesBase
          extended by 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 Class Summary
 
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
 
Constructor Summary
AccountsPayableDocumentPreRulesBase()
           
 
Method Summary
protected  boolean confirmInvoiceNoMatchOverride(AccountsPayableDocument accountsPayableDocument)
          Checks whether the invoice from the initial screen and the document invoice are mismatched.
 String createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
          Creates the text for the invoice no match question being asked of the user.
 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.
 String getDocumentName()
          Exists to be overriden by the child class and return the name of the document.
protected  boolean validateInvoiceTotalsAreMismatched(AccountsPayableDocument accountsPayableDocument)
          Determines if the amount entered on the init tab is mismatched with the grand total of the document.
 
Methods inherited from class org.kuali.kfs.module.purap.document.validation.impl.PurapDocumentPreRulesBase
checkCAMSWarningStatus, confirmFixCapitalAssetWarningConditions
 
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
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

AccountsPayableDocumentPreRulesBase

public AccountsPayableDocumentPreRulesBase()
Method Detail

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.