WEB-618 Negative Values Allowed for Decimal Places and Currency Multiples in Share Product Form
This commit is contained in:
+2
@@ -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"
|
||||||
|
|||||||
+8
-2
@@ -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)
|
||||||
|
]
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user