WEB-618 Negative Values Allowed for Decimal Places and Currency Multiples in Share Product Form

This commit is contained in:
JaySoni1
2026-01-22 22:49:27 +05:30
parent f0f338ad60
commit 3758a6ef90
2 changed files with 10 additions and 2 deletions
@@ -31,6 +31,7 @@
<mat-label>{{ 'labels.inputs.Decimal Places' | translate }}</mat-label> <mat-label>{{ 'labels.inputs.Decimal Places' | translate }}</mat-label>
<input <input
type="number" type="number"
min="0"
matTooltip="{{ 'tooltips.Track and report on share accounts' | translate }}" matTooltip="{{ 'tooltips.Track and report on share accounts' | translate }}"
matInput matInput
formControlName="digitsAfterDecimal" formControlName="digitsAfterDecimal"
@@ -46,6 +47,7 @@
<mat-label>{{ 'labels.inputs.Currency in multiples of' | translate }}</mat-label> <mat-label>{{ 'labels.inputs.Currency in multiples of' | translate }}</mat-label>
<input <input
type="number" type="number"
min="1"
matInput matInput
matTooltip="{{ 'tooltips.Amount to be rounded off' | translate }}" matTooltip="{{ 'tooltips.Amount to be rounded off' | translate }}"
formControlName="inMultiplesOf" formControlName="inMultiplesOf"
@@ -63,11 +63,17 @@ export class ShareProductCurrencyStepComponent implements OnInit {
], ],
digitsAfterDecimal: [ digitsAfterDecimal: [
'', '',
Validators.required [
Validators.required,
Validators.min(0)
]
], ],
inMultiplesOf: [ inMultiplesOf: [
'', '',
Validators.required [
Validators.required,
Validators.min(1)
]
] ]
}); });
} }