From daf798ff90cab581668bfb5f2562b5a242d9f407 Mon Sep 17 00:00:00 2001 From: JaySoni1 Date: Tue, 13 Jan 2026 00:27:17 +0530 Subject: [PATCH] WEB-534 Missing validation: Decimal Places and Currency Multiples accept negative values in Recurring Deposit Product form --- .../saving-product-currency-step.component.html | 3 +++ .../saving-product-currency-step.component.ts | 13 +++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.html b/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.html index b2c8e2ec3..7949dcf4f 100644 --- a/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.html +++ b/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.html @@ -23,6 +23,7 @@ {{ 'labels.inputs.Decimal Places' | translate }} {{ 'labels.inputs.Currency in multiples of' | translate }} {{ 'labels.inputs.Currency in multiples of' | translate }} {{ 'labels.commons.is' | translate }} diff --git a/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts b/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts index 2ced72d54..20613be60 100644 --- a/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts +++ b/src/app/products/saving-products/saving-product-stepper/saving-product-currency-step/saving-product-currency-step.component.ts @@ -50,9 +50,18 @@ export class SavingProductCurrencyStepComponent implements OnInit { ], digitsAfterDecimal: [ '', - Validators.required + [ + Validators.required, + Validators.min(0) + ] ], - inMultiplesOf: [''] + inMultiplesOf: [ + '', + [ + Validators.required, + Validators.min(1) + ] + ] }); }