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>
|
||||
<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"
|
||||
|
||||
+8
-2
@@ -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)
|
||||
]
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user