WEB-663 Fixed Deposit Product Form: Negative Values Allowed for Deposit Amount Fields
This commit is contained in:
+3
@@ -14,6 +14,7 @@
|
|||||||
<mat-label>{{ 'labels.inputs.Minimum' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Minimum' | translate }}</mat-label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
|
min="0"
|
||||||
matInput
|
matInput
|
||||||
formControlName="minDepositAmount"
|
formControlName="minDepositAmount"
|
||||||
matTooltip="{{ 'tooltips.The minimum deposit amount required to open a fixed deposit' | translate }}"
|
matTooltip="{{ 'tooltips.The minimum deposit amount required to open a fixed deposit' | translate }}"
|
||||||
@@ -24,6 +25,7 @@
|
|||||||
<mat-label>{{ 'labels.inputs.Default' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Default' | translate }}</mat-label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
|
min="0"
|
||||||
matInput
|
matInput
|
||||||
formControlName="depositAmount"
|
formControlName="depositAmount"
|
||||||
matTooltip="{{ 'tooltips.The default deposit amount expected' | translate }}"
|
matTooltip="{{ 'tooltips.The default deposit amount expected' | translate }}"
|
||||||
@@ -40,6 +42,7 @@
|
|||||||
|
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
|
min="0"
|
||||||
matInput
|
matInput
|
||||||
formControlName="maxDepositAmount"
|
formControlName="maxDepositAmount"
|
||||||
matTooltip="{{ 'tooltips.The maximum deposit amount allowed when a fixed deposit' | translate }}"
|
matTooltip="{{ 'tooltips.The maximum deposit amount allowed when a fixed deposit' | translate }}"
|
||||||
|
|||||||
+12
-3
@@ -68,12 +68,21 @@ export class FixedDepositProductTermsStepComponent implements OnInit {
|
|||||||
|
|
||||||
createFixedDepositProductTermsForm() {
|
createFixedDepositProductTermsForm() {
|
||||||
this.fixedDepositProductTermsForm = this.formBuilder.group({
|
this.fixedDepositProductTermsForm = this.formBuilder.group({
|
||||||
minDepositAmount: [''],
|
minDepositAmount: [
|
||||||
|
'',
|
||||||
|
Validators.min(0)
|
||||||
|
],
|
||||||
depositAmount: [
|
depositAmount: [
|
||||||
'',
|
'',
|
||||||
Validators.required
|
[
|
||||||
|
Validators.required,
|
||||||
|
Validators.min(0)
|
||||||
|
]
|
||||||
|
],
|
||||||
|
maxDepositAmount: [
|
||||||
|
'',
|
||||||
|
Validators.min(0)
|
||||||
],
|
],
|
||||||
maxDepositAmount: [''],
|
|
||||||
interestCompoundingPeriodType: [
|
interestCompoundingPeriodType: [
|
||||||
'',
|
'',
|
||||||
Validators.required
|
Validators.required
|
||||||
|
|||||||
Reference in New Issue
Block a user