Corrected validation for borrower cycle
This commit is contained in:
+3
@@ -1007,6 +1007,9 @@ public final class LoanProductDataValidator {
|
|||||||
LoanProductValueConditionType.GRETERTHAN.getValue());
|
LoanProductValueConditionType.GRETERTHAN.getValue());
|
||||||
if (lastConditionType.equals(LoanProductValueConditionType.EQUAL)
|
if (lastConditionType.equals(LoanProductValueConditionType.EQUAL)
|
||||||
&& conditionType.equals(LoanProductValueConditionType.GRETERTHAN)) {
|
&& conditionType.equals(LoanProductValueConditionType.GRETERTHAN)) {
|
||||||
|
if(lastCycleNumber == 0){
|
||||||
|
lastCycleNumber = 1;
|
||||||
|
}
|
||||||
baseDataValidator.reset().parameter(cycleNumbersParamName).value(cycleNumber).notNull()
|
baseDataValidator.reset().parameter(cycleNumbersParamName).value(cycleNumber).notNull()
|
||||||
.integerSameAsNumber(lastCycleNumber);
|
.integerSameAsNumber(lastCycleNumber);
|
||||||
} else if (lastConditionType.equals(LoanProductValueConditionType.EQUAL)) {
|
} else if (lastConditionType.equals(LoanProductValueConditionType.EQUAL)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user