|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.module.ld.document.validation.impl.LaborExpenseTransferValidTransferAmountValidation
public class LaborExpenseTransferValidTransferAmountValidation
check to ensure totals of accounting lines in source and target sections match by pay FY + pay period
| Constructor Summary | |
|---|---|
LaborExpenseTransferValidTransferAmountValidation()
|
|
| Method Summary | |
|---|---|
protected Map<String,Object> |
buildFieldValueMap(ExpenseTransferAccountingLine accountingLine)
build the field-value maps throught the given accouting line |
protected List<String> |
defaultKeyOfExpenseTransferAccountingLine()
Gets the default key of ExpenseTransferAccountingLine |
protected Map<String,ExpenseTransferAccountingLine> |
getAccountingLineGroupMap(List<ExpenseTransferAccountingLine> accountingLines,
Class clazz)
Groups the accounting lines by the specified key fields |
protected org.kuali.rice.kns.util.KualiDecimal |
getBalanceAmount(Map<String,Object> fieldValues,
String periodCode)
get the amount for a given period from a ledger balance that has the given values for specified fileds |
protected org.kuali.rice.kns.util.KualiDecimal |
getBalanceAmountOfGivenPeriod(Map<String,Object> fieldValues,
String periodCode)
Gets the balance amount of a given period |
org.kuali.rice.kns.document.Document |
getDocumentForValidation()
Gets the documentForValidation attribute. |
protected boolean |
isValidTransferAmount(Map<String,ExpenseTransferAccountingLine> accountingLineGroupMap)
determine whether the amount to be tranferred is only up to the amount in ledger balance for a given pay period |
void |
setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
Sets the accountingDocumentForValidation attribute value. |
boolean |
validate(AttributedDocumentEvent event)
Validates before the document routes |
| Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation |
|---|
setQuitOnFail, shouldQuitOnFail, stageValidation |
| Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation |
|---|
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LaborExpenseTransferValidTransferAmountValidation()
| Method Detail |
|---|
public boolean validate(AttributedDocumentEvent event)
org.kuali.kfs.validation.Validation#validate(java.lang.Object[])protected boolean isValidTransferAmount(Map<String,ExpenseTransferAccountingLine> accountingLineGroupMap)
accountingDocument - the given accounting document
protected Map<String,Object> buildFieldValueMap(ExpenseTransferAccountingLine accountingLine)
accountingLine - the given accounting line
protected Map<String,ExpenseTransferAccountingLine> getAccountingLineGroupMap(List<ExpenseTransferAccountingLine> accountingLines,
Class clazz)
accountingLines - the given accounting lines that are stored in a listclazz - the class type of given accounting lines
protected List<String> defaultKeyOfExpenseTransferAccountingLine()
protected org.kuali.rice.kns.util.KualiDecimal getBalanceAmount(Map<String,Object> fieldValues,
String periodCode)
fieldValues - the given fields and their valuesperiodCode - the given period
protected org.kuali.rice.kns.util.KualiDecimal getBalanceAmountOfGivenPeriod(Map<String,Object> fieldValues,
String periodCode)
fieldValues - periodCode -
public org.kuali.rice.kns.document.Document getDocumentForValidation()
public void setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
documentForValidation - The documentForValidation to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||