org.kuali.kfs.module.ar.document.validation.impl
Class InvoiceRecurrencePreRules

java.lang.Object
  extended by org.kuali.rice.kns.rules.PromptBeforeValidationBase
      extended by org.kuali.kfs.module.ar.document.validation.impl.InvoiceRecurrencePreRules
All Implemented Interfaces:
org.kuali.rice.kns.rule.PromptBeforeValidation

public class InvoiceRecurrencePreRules
extends org.kuali.rice.kns.rules.PromptBeforeValidationBase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession
 
Field Summary
 
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
buttonClicked, event, form, question
 
Constructor Summary
InvoiceRecurrencePreRules()
           
 
Method Summary
 boolean doPrompts(org.kuali.rice.kns.document.Document document)
           
protected  boolean setCustomerNumberIfInvoiceIsEntered(org.kuali.rice.kns.document.Document document)
           
protected  boolean setEndDateIfTotalRecurrenceNumberIsEntered(org.kuali.rice.kns.document.Document document)
          This method checks if there is another customer with the same name and generates yes/no question
protected  boolean setTotalRecurrenceNumberIfEndDateIsEntered(org.kuali.rice.kns.document.Document document)
          This method calculates the total number of recurrences when a begin date and end date is entered.
 
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
 

Constructor Detail

InvoiceRecurrencePreRules

public InvoiceRecurrencePreRules()
Method Detail

doPrompts

public boolean doPrompts(org.kuali.rice.kns.document.Document document)
Specified by:
doPrompts in class org.kuali.rice.kns.rules.PromptBeforeValidationBase
See Also:
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.Document)

setCustomerNumberIfInvoiceIsEntered

protected boolean setCustomerNumberIfInvoiceIsEntered(org.kuali.rice.kns.document.Document document)
Parameters:
document - the maintenance document
Returns:

setEndDateIfTotalRecurrenceNumberIsEntered

protected boolean setEndDateIfTotalRecurrenceNumberIsEntered(org.kuali.rice.kns.document.Document document)
This method checks if there is another customer with the same name and generates yes/no question

Parameters:
document - the maintenance document
Returns:

setTotalRecurrenceNumberIfEndDateIsEntered

protected boolean setTotalRecurrenceNumberIfEndDateIsEntered(org.kuali.rice.kns.document.Document document)
This method calculates the total number of recurrences when a begin date and end date is entered.

Parameters:
document - the maintenance document
Returns:


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.