FINERACT-1724: Loan product delinquency bucket should not be mandatory
This commit is contained in:
committed by
Adam Saghy
parent
6526e101a1
commit
4e877451c3
+2
-2
@@ -343,8 +343,8 @@ public final class LoanProductDataValidator {
|
||||
if (this.fromApiJsonHelper.parameterExists(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME, element)) {
|
||||
final Long delinquencyBucketId = this.fromApiJsonHelper.extractLongNamed(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME,
|
||||
element);
|
||||
baseDataValidator.reset().parameter(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME).value(delinquencyBucketId).notNull()
|
||||
.integerGreaterThanZero();
|
||||
baseDataValidator.reset().parameter(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME).value(delinquencyBucketId)
|
||||
.ignoreIfNull().integerGreaterThanZero();
|
||||
}
|
||||
|
||||
// grace validation
|
||||
|
||||
Reference in New Issue
Block a user