public class DisbursementVoucherAccountingLineTotalsValidation extends AccountingLineGroupTotalsUnchangedValidation
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
DisbursementVoucherAccountingLineTotalsValidation() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getCandidateEditModes()
define the possibly desired edit modes
|
protected Set<String> |
getEditModesFromDocument(AccountingDocument accountingDocument,
org.kuali.rice.kim.api.identity.Person financialSystemUser)
Retrieves the current edit modes from the document
|
protected List<String> |
getForeignDraftAndWireTransferEditModes(DisbursementVoucherDocument dvDocument)
get foreign draft And wire transfer edit mode names, as well as tax if the payee is a non-resident alien
|
protected boolean |
hasRequiredEditMode(Set<String> currentEditModes,
List<String> candidateEditModes)
determine whether the give user has permission to any edit mode defined in the given candidate edit modes
|
protected boolean |
includeTaxAsTotalChangingMode(DisbursementVoucherDocument dvDocument)
Determines whether the tax edit mode should be allowed to change the accounting line totals,
based on whether the payee is a non-resident alient or not
|
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.
|
buildTotalChangeErrorMessage, getAccountingDocumentForValidation, handleNonExistentDocumentWhenApproving, retrievePersistedDocument, setAccountingDocumentForValidation
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
protected static org.apache.log4j.Logger LOG
public DisbursementVoucherAccountingLineTotalsValidation()
public boolean validate(AttributedDocumentEvent event)
AccountingLineGroupTotalsUnchangedValidation
validate
in interface Validation
validate
in class AccountingLineGroupTotalsUnchangedValidation
AccountingLineGroupTotalsUnchangedValidation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected boolean hasRequiredEditMode(Set<String> currentEditModes, List<String> candidateEditModes)
currentEditModes
- the edit modes currently available to the given user on the documentcandidateEditEditModes
- the given candidate edit modesprotected Set<String> getEditModesFromDocument(AccountingDocument accountingDocument, org.kuali.rice.kim.api.identity.Person financialSystemUser)
accountingDocument
- the document to find edit modes offinancialSystemUser
- the user requesting the edit modesprotected List<String> getCandidateEditModes()
protected List<String> getForeignDraftAndWireTransferEditModes(DisbursementVoucherDocument dvDocument)
dvDocument
- the document we're validatingprotected boolean includeTaxAsTotalChangingMode(DisbursementVoucherDocument dvDocument)
dvDocument
- the document to checkCopyright © 2004–2015 The Kuali Foundation. All rights reserved.