|
||||||||||
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.LaborExpenseTransferAccountingLineTotalsMatchByPayFYAndPayPeriodValidation
public class LaborExpenseTransferAccountingLineTotalsMatchByPayFYAndPayPeriodValidation
check to ensure totals of accounting lines in source and target sections match by pay FY + pay period
Constructor Summary | |
---|---|
LaborExpenseTransferAccountingLineTotalsMatchByPayFYAndPayPeriodValidation()
|
Method Summary | |
---|---|
protected boolean |
compareAccountingLineTotalsByPayFYAndPayPeriod(Map sourceLinesMap,
Map targetLinesMap)
This method checks that the total amount of labor ledger accounting lines in the document's FROM section is equal to the total amount on the labor ledger accounting lines TO section for each unique combination of pay fiscal year and pay period. |
protected String |
createPayFYPeriodKey(Integer payFiscalYear,
String payPeriodCode)
This method returns a String that is a concatenation of pay fiscal year and pay period code. |
org.kuali.rice.kns.document.Document |
getDocumentForValidation()
Gets the documentForValidation attribute. |
boolean |
isAccountingLineTotalsMatchByPayFYAndPayPeriod(List sourceLines,
List targetLines)
This method calls other methods to check if all source and target accounting lines match between each set by pay fiscal year and pay period, returning true if the totals match, false otherwise. |
void |
setDocumentForValidation(org.kuali.rice.kns.document.Document documentForValidation)
Sets the documentForValidation attribute value. |
protected Map |
sumAccountingLineAmountsByPayFYAndPayPeriod(List accountingLines)
This method sums the totals of each accounting line, making an entry in a map for each unique pay fiscal year and pay period. |
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 LaborExpenseTransferAccountingLineTotalsMatchByPayFYAndPayPeriodValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
org.kuali.kfs.validation.Validation#validate(java.lang.Object[])
public boolean isAccountingLineTotalsMatchByPayFYAndPayPeriod(List sourceLines, List targetLines)
sourceLines
- targetLines
-
protected Map sumAccountingLineAmountsByPayFYAndPayPeriod(List accountingLines)
accountingLines
-
protected String createPayFYPeriodKey(Integer payFiscalYear, String payPeriodCode)
payFiscalYear
- payPeriodCode
-
protected boolean compareAccountingLineTotalsByPayFYAndPayPeriod(Map sourceLinesMap, Map targetLinesMap)
sourceLinesMap
- targetLinesMap
-
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 |