public class AuxiliaryVoucherRecodeAccountingPeriodValidation extends GenericValidation
Constructor and Description |
---|
AuxiliaryVoucherRecodeAccountingPeriodValidation() |
Modifier and Type | Method and Description |
---|---|
AccountingPeriodService |
getAccountingPeriodService()
Gets the accountingPeriodService attribute.
|
AuxiliaryVoucherDocument |
getAuxiliaryVoucherDocumentForValidation()
Gets the auxiliaryVoucherDocumentForValidation attribute.
|
void |
setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
Sets the accountingPeriodService attribute value.
|
void |
setAuxiliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument auxiliaryVoucherDocumentForValidation)
Sets the auxiliaryVoucherDocumentForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Validates the accounting period on an AV doc if the doc is a recode type, with the following rules:
The accounting period does not occur in a previous fiscal year
The accounting period is between 1 and 12 (13 can't be recoded, nor can the non-numeric periods: AB, BB, and CB
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public AuxiliaryVoucherRecodeAccountingPeriodValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
public AccountingPeriodService getAccountingPeriodService()
public void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
accountingPeriodService
- The accountingPeriodService to set.public AuxiliaryVoucherDocument getAuxiliaryVoucherDocumentForValidation()
public void setAuxiliaryVoucherDocumentForValidation(AuxiliaryVoucherDocument auxiliaryVoucherDocumentForValidation)
auxiliaryVoucherDocumentForValidation
- The auxiliaryVoucherDocumentForValidation to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.