Merge pull request #3039 from JaySoni1/WEB-618-negative-values-allowed-for-decimal-places-and-currency-multiples-in-share-product-form

WEB-618 Negative values allowed for decimal places and currency multiples in share product form
This commit is contained in:
Jose Alberto Hernandez
2026-01-22 13:08:02 -05:00
committed by GitHub
2 changed files with 10 additions and 2 deletions
@@ -31,6 +31,7 @@
<mat-label>{{ 'labels.inputs.Decimal Places' | translate }}</mat-label>
<input
type="number"
min="0"
matTooltip="{{ 'tooltips.Track and report on share accounts' | translate }}"
matInput
formControlName="digitsAfterDecimal"
@@ -46,6 +47,7 @@
<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"
@@ -63,11 +63,17 @@ export class ShareProductCurrencyStepComponent implements OnInit {
],
digitsAfterDecimal: [
'',
Validators.required
[
Validators.required,
Validators.min(0)
]
],
inMultiplesOf: [
'',
Validators.required
[
Validators.required,
Validators.min(1)
]
]
});
}