WEB-534 Missing validation: Decimal Places and Currency Multiples accept negative values in Recurring Deposit Product form

This commit is contained in:
JaySoni1
2026-01-13 00:27:17 +05:30
parent cb52f59dc3
commit daf798ff90
2 changed files with 14 additions and 2 deletions
@@ -23,6 +23,7 @@
<mat-label>{{ 'labels.inputs.Decimal Places' | translate }}</mat-label>
<input
type="number"
min="0"
matInput
matTooltip="{{ 'tooltips.Track and report saving account' | translate }}"
formControlName="digitsAfterDecimal"
@@ -38,9 +39,11 @@
<mat-label>{{ 'labels.inputs.Currency in multiples of' | translate }}</mat-label>
<input
type="number"
min="1"
matInput
matTooltip="{{ 'tooltips.Amount to be rounded off' | translate }}"
formControlName="inMultiplesOf"
required
/>
<mat-error>
{{ 'labels.inputs.Currency in multiples of' | translate }} {{ 'labels.commons.is' | translate }}
@@ -50,9 +50,18 @@ export class SavingProductCurrencyStepComponent implements OnInit {
],
digitsAfterDecimal: [
'',
Validators.required
[
Validators.required,
Validators.min(0)
]
],
inMultiplesOf: ['']
inMultiplesOf: [
'',
[
Validators.required,
Validators.min(1)
]
]
});
}