public class InvoiceDocumentPreRules extends AccountsPayableDocumentPreRulesBase
LOG| Constructor and Description | 
|---|
InvoiceDocumentPreRules()
Default Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
askForConfirmation(String questionType,
                                    String messageConstant)
Prompts user to confirm with a Yes or No to a question being asked. 
 | 
protected boolean | 
checkCAMSWarningStatus(PurchasingAccountsPayableDocument purapDocument)  | 
boolean | 
confirmEncumberNextFiscalYear(InvoiceDocument invoice)  | 
boolean | 
confirmEncumberPriorFiscalYear(InvoiceDocument invoice)  | 
boolean | 
confirmExpiredAccount(InvoiceDocument invoice)  | 
boolean | 
confirmPayDayNotOverThresholdDaysAway(InvoiceDocument invoice)
Validates if the pay date threshold has not been passed, if so confirmation is required by the user to
 exceed the threshold. 
 | 
boolean | 
confirmUnusedTradeIn(InvoiceDocument invoice)  | 
String | 
createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
Creates the text for the invoice no match question being asked of the user. 
 | 
boolean | 
doPrompts(org.kuali.rice.krad.document.Document document)
Main hook point to perform rules check. 
 | 
String | 
getDocumentName()
Exists to be overriden by the child class and return the name of the document. 
 | 
protected String | 
prepareQuestionText(String questionType,
                                      String questionText)
Creates the actual text of the question, replacing place holders like pay date threshold with an actual constant value. 
 | 
protected boolean | 
validateInvoiceTotalsAreMismatched(AccountsPayableDocument accountsPayableDocument)
Determines if the amount entered on the init tab is mismatched with the grand total of the document. 
 | 
confirmInvoiceNoMatchOverrideconfirmFixCapitalAssetWarningConditionspublic InvoiceDocumentPreRules()
public boolean doPrompts(org.kuali.rice.krad.document.Document document)
doPrompts in class AccountsPayableDocumentPreRulesBasePromptBeforeValidationBase.doPrompts(org.kuali.rice.krad.document.Document)protected boolean askForConfirmation(String questionType, String messageConstant)
questionType - - type of questionmessageConstant - - key to retrieve messageprotected String prepareQuestionText(String questionType, String questionText)
questionType - - type of questionquestionText - - actual text of question pulled from resource filepublic boolean confirmPayDayNotOverThresholdDaysAway(InvoiceDocument invoice)
invoice - - invoice documentpublic boolean confirmUnusedTradeIn(InvoiceDocument invoice)
public boolean confirmExpiredAccount(InvoiceDocument invoice)
public boolean confirmEncumberNextFiscalYear(InvoiceDocument invoice)
public boolean confirmEncumberPriorFiscalYear(InvoiceDocument invoice)
public String getDocumentName()
AccountsPayableDocumentPreRulesBasegetDocumentName in class AccountsPayableDocumentPreRulesBaseAccountsPayableDocumentPreRulesBase.getDocumentName()public String createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
AccountsPayableDocumentPreRulesBasecreateInvoiceNoMatchQuestionText in class AccountsPayableDocumentPreRulesBaseaccountsPayableDocument - - to be used by overriding method.AccountsPayableDocumentPreRulesBase.createInvoiceNoMatchQuestionText(org.kuali.ole.module.purap.document.AccountsPayableDocument)protected boolean checkCAMSWarningStatus(PurchasingAccountsPayableDocument purapDocument)
checkCAMSWarningStatus in class PurapDocumentPreRulesBaseprotected boolean validateInvoiceTotalsAreMismatched(AccountsPayableDocument accountsPayableDocument)
validateInvoiceTotalsAreMismatched in class AccountsPayableDocumentPreRulesBaseaccountsPayableDocument - Copyright © 2004–2015 The Kuali Foundation. All rights reserved.