public class PaymentRequestDocumentPreRules extends AccountsPayableDocumentPreRulesBase
LOG
Constructor and Description |
---|
PaymentRequestDocumentPreRules()
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(PaymentRequestDocument preq) |
boolean |
confirmEncumberPriorFiscalYear(PaymentRequestDocument preq) |
boolean |
confirmExpiredAccount(PaymentRequestDocument preq) |
boolean |
confirmPayDayNotOverThresholdDaysAway(PaymentRequestDocument preq)
Validates if the pay date threshold has not been passed, if so confirmation is required by the user to
exceed the threshold.
|
boolean |
confirmUnusedTradeIn(PaymentRequestDocument preq) |
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.
|
confirmInvoiceNoMatchOverride
confirmFixCapitalAssetWarningConditions
public PaymentRequestDocumentPreRules()
public boolean doPrompts(org.kuali.rice.krad.document.Document document)
doPrompts
in class AccountsPayableDocumentPreRulesBase
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(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(PaymentRequestDocument preq)
preq
- - payment request documentpublic boolean confirmUnusedTradeIn(PaymentRequestDocument preq)
public boolean confirmExpiredAccount(PaymentRequestDocument preq)
public boolean confirmEncumberNextFiscalYear(PaymentRequestDocument preq)
public boolean confirmEncumberPriorFiscalYear(PaymentRequestDocument preq)
public String getDocumentName()
AccountsPayableDocumentPreRulesBase
getDocumentName
in class AccountsPayableDocumentPreRulesBase
AccountsPayableDocumentPreRulesBase.getDocumentName()
public String createInvoiceNoMatchQuestionText(AccountsPayableDocument accountsPayableDocument)
AccountsPayableDocumentPreRulesBase
createInvoiceNoMatchQuestionText
in class AccountsPayableDocumentPreRulesBase
accountsPayableDocument
- - to be used by overriding method.AccountsPayableDocumentPreRulesBase.createInvoiceNoMatchQuestionText(org.kuali.ole.module.purap.document.AccountsPayableDocument)
protected boolean checkCAMSWarningStatus(PurchasingAccountsPayableDocument purapDocument)
checkCAMSWarningStatus
in class PurapDocumentPreRulesBase
protected boolean validateInvoiceTotalsAreMismatched(AccountsPayableDocument accountsPayableDocument)
validateInvoiceTotalsAreMismatched
in class AccountsPayableDocumentPreRulesBase
accountsPayableDocument
- Copyright © 2004–2016 The Kuali Foundation. All rights reserved.