WEB-534 Missing validation: Decimal Places and Currency Multiples accept negative values in Recurring Deposit Product form
This commit is contained in:
+3
@@ -23,6 +23,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"
|
||||||
matInput
|
matInput
|
||||||
matTooltip="{{ 'tooltips.Track and report saving account' | translate }}"
|
matTooltip="{{ 'tooltips.Track and report saving account' | translate }}"
|
||||||
formControlName="digitsAfterDecimal"
|
formControlName="digitsAfterDecimal"
|
||||||
@@ -38,9 +39,11 @@
|
|||||||
<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"
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
<mat-error>
|
<mat-error>
|
||||||
{{ 'labels.inputs.Currency in multiples of' | translate }} {{ 'labels.commons.is' | translate }}
|
{{ 'labels.inputs.Currency in multiples of' | translate }} {{ 'labels.commons.is' | translate }}
|
||||||
|
|||||||
+11
-2
@@ -50,9 +50,18 @@ export class SavingProductCurrencyStepComponent implements OnInit {
|
|||||||
],
|
],
|
||||||
digitsAfterDecimal: [
|
digitsAfterDecimal: [
|
||||||
'',
|
'',
|
||||||
Validators.required
|
[
|
||||||
|
Validators.required,
|
||||||
|
Validators.min(0)
|
||||||
|
]
|
||||||
],
|
],
|
||||||
inMultiplesOf: ['']
|
inMultiplesOf: [
|
||||||
|
'',
|
||||||
|
[
|
||||||
|
Validators.required,
|
||||||
|
Validators.min(1)
|
||||||
|
]
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user