Merge pull request #2991 from JaySoni1/WEB-534-missing-validation-decimal-places-and-currency-multiples-accept-negative-values-in-recurring-deposit-product-form
WEB-534 Missing validation decimal places and currency multiples accept negative values in recurring deposit product form
This commit is contained in:
+3
@@ -31,6 +31,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"
|
||||
@@ -46,9 +47,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 }}
|
||||
|
||||
+11
-2
@@ -58,9 +58,18 @@ export class SavingProductCurrencyStepComponent implements OnInit {
|
||||
],
|
||||
digitsAfterDecimal: [
|
||||
'',
|
||||
Validators.required
|
||||
[
|
||||
Validators.required,
|
||||
Validators.min(0)
|
||||
]
|
||||
],
|
||||
inMultiplesOf: ['']
|
||||
inMultiplesOf: [
|
||||
'',
|
||||
[
|
||||
Validators.required,
|
||||
Validators.min(1)
|
||||
]
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user