FINERACT-431 - Loan term greater than expected
This commit is contained in:
+10
@@ -148,6 +148,16 @@ public final class CalculateLoanScheduleQueryFromApiJsonHelper {
|
||||
"The parameter loanTermFrequency is less than the suggest loan term as indicated by numberOfRepayments and repaymentEvery.",
|
||||
"loanTermFrequency", loanTermFrequency, numberOfRepayments, repaymentEvery);
|
||||
dataValidationErrors.add(error);
|
||||
} else {
|
||||
if (loanTermFrequency.intValue() > suggestsedLoanTerm) {
|
||||
final ApiParameterError error = ApiParameterError
|
||||
.parameterError(
|
||||
"validation.msg.loan.loanTermFrequency.greater.than.repayment.structure.suggests",
|
||||
"The parameter loanTermFrequency is greater than the suggested loan term as indicated by numberOfRepayments and repaymentEvery.",
|
||||
"loanTermFrequency", loanTermFrequency, numberOfRepayments, repaymentEvery);
|
||||
dataValidationErrors.add(error);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user