public class AccountingLineGroupTotalsUnchangedValidation extends GenericValidation
Constructor and Description |
---|
AccountingLineGroupTotalsUnchangedValidation() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildTotalChangeErrorMessage(String propertyName,
org.kuali.rice.core.api.util.type.KualiDecimal persistedSourceLineTotal,
org.kuali.rice.core.api.util.type.KualiDecimal currentSourceLineTotal)
This method builds out the error message for when totals have changed.
|
AccountingDocument |
getAccountingDocumentForValidation()
Gets the accountingDocumentForValidation attribute.
|
protected void |
handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)
Handles the case when a non existent document is attempted to be retrieve and that if it's in an initiated state, it's ok.
|
protected AccountingDocument |
retrievePersistedDocument(AccountingDocument accountingDocument)
attempt to retrieve the document from the DB for comparison
|
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Checks that the source and total amounts on the current version of the accounting document
are equal to the persisted source and total totals.
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public AccountingLineGroupTotalsUnchangedValidation()
public boolean validate(AttributedDocumentEvent event)
org.kuali.ole.sys.document.validation.GenericValidation#validate(java.lang.Object[])
protected AccountingDocument retrievePersistedDocument(AccountingDocument accountingDocument)
accountingDocument
- protected void buildTotalChangeErrorMessage(String propertyName, org.kuali.rice.core.api.util.type.KualiDecimal persistedSourceLineTotal, org.kuali.rice.core.api.util.type.KualiDecimal currentSourceLineTotal)
propertyName
- persistedSourceLineTotal
- currentSourceLineTotal
- protected final void handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)
accountingDocument
- public AccountingDocument getAccountingDocumentForValidation()
public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
accountingDocumentForValidation
- The accountingDocumentForValidation to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.