MIFOSX-1196 - corrected the validation for update
This commit is contained in:
+1
-2
@@ -781,9 +781,8 @@ public class DepositProductDataValidator {
|
||||
|
||||
if (this.fromApiJsonHelper.parameterExists(depositAmountParamName, element)) {
|
||||
depositAmount = this.fromApiJsonHelper.extractBigDecimalWithLocaleNamed(depositAmountParamName, element);
|
||||
baseDataValidator.reset().parameter(depositMinAmountParamName).value(depositAmount).notNull().positiveAmount();
|
||||
baseDataValidator.reset().parameter(depositAmountParamName).value(depositAmount).notNull().positiveAmount();
|
||||
}
|
||||
baseDataValidator.reset().parameter(depositAmountParamName).value(depositAmount).notNull().positiveAmount();
|
||||
|
||||
BigDecimal depositMinAmount = null;
|
||||
if (this.fromApiJsonHelper.parameterExists(depositMinAmountParamName, element)) {
|
||||
|
||||
Reference in New Issue
Block a user