public class SalaryExpenseTransferPendingLegerEntryValidation extends GenericValidation
Constructor and Description |
---|
SalaryExpenseTransferPendingLegerEntryValidation() |
Modifier and Type | Method and Description |
---|---|
org.kuali.rice.krad.document.Document |
getDocumentForValidation()
Gets the documentForValidation attribute.
|
protected boolean |
hasPendingLedgerEntry(AccountingDocument accountingDocument)
Checks whether amounts by object codes are unchanged
|
void |
setDocumentForValidation(org.kuali.rice.krad.document.Document documentForValidation)
Sets the accountingDocumentForValidation attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Validates that the accounting lines in the accounting document does not have
any pending labor ledger entries with the same emplID, periodCode, accountNumber, objectCode
Expects an accounting document as the first a parameter
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public SalaryExpenseTransferPendingLegerEntryValidation()
public boolean validate(AttributedDocumentEvent event)
org.kuali.kfs.validation.Validation#validate(java.lang.Object[])
protected boolean hasPendingLedgerEntry(AccountingDocument accountingDocument)
accountingDocumentForValidation
- The accounting document from which the amounts by objects codes are checkedpublic org.kuali.rice.krad.document.Document getDocumentForValidation()
public void setDocumentForValidation(org.kuali.rice.krad.document.Document documentForValidation)
documentForValidation
- The documentForValidation to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.