org.kuali.kfs.module.purap.document.validation.impl
Class PurchasingPaymentInfoValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.module.purap.document.validation.impl.PurchasingPaymentInfoValidation
- All Implemented Interfaces:
- Validation
public class PurchasingPaymentInfoValidation
- extends GenericValidation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurchasingPaymentInfoValidation
public PurchasingPaymentInfoValidation()
validate
public boolean validate(AttributedDocumentEvent event)
- Description copied from interface:
Validation
- This method validates that certain parameters
- Returns:
- true if validation should continue, false otherwise
checkBeginDateBeforeEndDate
protected boolean checkBeginDateBeforeEndDate(PurchasingDocument purDocument)
- Implementation of the rule that if a document has a recurring payment begin date and end date, the begin date should come
before the end date. We needed to play around with this order if the fiscal year is the next fiscal year, since we
were dealing just with month and day, but we don't need to do that here; we're dealing with the whole Date object.
- Parameters:
purDocument
- the purchasing document to be validated
- Returns:
- boolean false if the begin date is not before the end date.
getDateTimeService
public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
setDateTimeService
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
getUniversityDateService
public UniversityDateService getUniversityDateService()
setUniversityDateService
public void setUniversityDateService(UniversityDateService universityDateService)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.