public class InvoiceProcessItemValidation extends GenericValidation
Constructor and Description |
---|
InvoiceProcessItemValidation() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParametersToValidation(AccountingLineAmountPositiveValidation validation) |
protected void |
addParametersToValidation(AccountingLineDataDictionaryValidation validation) |
protected void |
addParametersToValidation(AccountingLineValuesAllowedValidationHutch validation) |
protected void |
addParametersToValidation(BusinessObjectDataDictionaryValidation validation) |
boolean |
canApproveAccountingLinesWithZeroAmount()
checks if an accounting line with zero dollar amount can be approved.
|
protected void |
createGauntlet(CompositeValidation validation) |
protected AttributedDocumentEvent |
getEvent()
Gets the event attribute.
|
PurApItem |
getItemForValidation() |
protected PurApAccountingLine |
getPreqAccountingLine()
Gets the invoiceAccountingLine attribute.
|
protected InvoiceDocument |
getPreqDocument()
Gets the invoiceDocument attribute.
|
PurapService |
getPurapService() |
CompositeValidation |
getReviewAccountingLineValidation() |
protected boolean |
reviewAccountingLineValidation(InvoiceDocument document,
PurApAccountingLine accountingLine) |
protected void |
setEvent(AttributedDocumentEvent event)
Sets the event attribute value.
|
void |
setItemForValidation(PurApItem itemForValidation) |
protected void |
setPreqAccountingLine(PurApAccountingLine invoiceAccountingLine)
Sets the invoiceAccountingLine attribute value.
|
protected void |
setPreqDocument(InvoiceDocument invoiceDocument)
Sets the invoiceDocument attribute value.
|
void |
setPurapService(PurapService purapService) |
void |
setReviewAccountingLineValidation(CompositeValidation reviewAccountingLineValidation) |
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
protected boolean |
validateAboveTheLineItems(InvoiceItem item,
String identifierString,
boolean isReceivingDocumentRequiredIndicator)
Validates above the line items.
|
protected boolean |
validateEachItem(InvoiceDocument invoiceDocument,
InvoiceItem item)
Calls another validate item method and passes an identifier string from the item.
|
boolean |
validateItem(InvoiceDocument invoiceDocument,
InvoiceItem item,
String identifierString)
Performs validation if full document entry not completed and peforms varying item validation.
|
boolean |
validateItemAccounts(InvoiceDocument invoiceDocument,
InvoiceItem item,
String identifierString)
Validates the totals for the item by account, that the total by each accounting line for the item, matches
the extended price on the item.
|
boolean |
validateItemWithoutAccounts(InvoiceItem item,
String identifierString)
Validates that the item must contain at least one account
|
protected boolean |
validateProrationType(InvoiceDocument invoiceDocument) |
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
public InvoiceProcessItemValidation()
public boolean validate(AttributedDocumentEvent event)
Validation
protected boolean validateEachItem(InvoiceDocument invoiceDocument, InvoiceItem item)
invoiceDocument
- - payment request document.item
- public boolean validateItem(InvoiceDocument invoiceDocument, InvoiceItem item, String identifierString)
invoiceDocument
- - payment request documentitem
- - payment request itemidentifierString
- - identifier string used to mark in an error mapprotected boolean validateProrationType(InvoiceDocument invoiceDocument)
protected boolean validateAboveTheLineItems(InvoiceItem item, String identifierString, boolean isReceivingDocumentRequiredIndicator)
item
- - payment request itemidentifierString
- - identifier string used to mark in an error mappublic boolean validateItemWithoutAccounts(InvoiceItem item, String identifierString)
item
- - payment request itempublic boolean validateItemAccounts(InvoiceDocument invoiceDocument, InvoiceItem item, String identifierString)
invoiceDocument
- - payment request documentitem
- - payment request item to validateidentifierString
- - identifier string used to mark in an error mappublic CompositeValidation getReviewAccountingLineValidation()
public void setReviewAccountingLineValidation(CompositeValidation reviewAccountingLineValidation)
public PurapService getPurapService()
public void setPurapService(PurapService purapService)
public PurApItem getItemForValidation()
public void setItemForValidation(PurApItem itemForValidation)
protected boolean reviewAccountingLineValidation(InvoiceDocument document, PurApAccountingLine accountingLine)
protected void createGauntlet(CompositeValidation validation)
public boolean canApproveAccountingLinesWithZeroAmount()
protected void addParametersToValidation(BusinessObjectDataDictionaryValidation validation)
protected void addParametersToValidation(AccountingLineAmountPositiveValidation validation)
protected void addParametersToValidation(AccountingLineDataDictionaryValidation validation)
protected void addParametersToValidation(AccountingLineValuesAllowedValidationHutch validation)
protected AttributedDocumentEvent getEvent()
protected void setEvent(AttributedDocumentEvent event)
event
- The event to set.protected InvoiceDocument getPreqDocument()
protected void setPreqDocument(InvoiceDocument invoiceDocument)
invoiceDocument
- The invoiceDocument to set.protected PurApAccountingLine getPreqAccountingLine()
protected void setPreqAccountingLine(PurApAccountingLine invoiceAccountingLine)
invoiceAccountingLine
- The invoiceAccountingLine to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.