mirror of
https://github.com/openMF/web-app.git
synced 2026-02-06 14:11:48 +00:00
WEB-663 Fixed Deposit Product Form: Negative Values Allowed for Deposit Amount Fields
This commit is contained in:
parent
842926628b
commit
2f75ef1678
@ -14,6 +14,7 @@
|
||||
<mat-label>{{ 'labels.inputs.Minimum' | translate }}</mat-label>
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
matInput
|
||||
formControlName="minDepositAmount"
|
||||
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>
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
matInput
|
||||
formControlName="depositAmount"
|
||||
matTooltip="{{ 'tooltips.The default deposit amount expected' | translate }}"
|
||||
@ -40,6 +42,7 @@
|
||||
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
matInput
|
||||
formControlName="maxDepositAmount"
|
||||
matTooltip="{{ 'tooltips.The maximum deposit amount allowed when a fixed deposit' | translate }}"
|
||||
|
||||
@ -68,12 +68,21 @@ export class FixedDepositProductTermsStepComponent implements OnInit {
|
||||
|
||||
createFixedDepositProductTermsForm() {
|
||||
this.fixedDepositProductTermsForm = this.formBuilder.group({
|
||||
minDepositAmount: [''],
|
||||
minDepositAmount: [
|
||||
'',
|
||||
Validators.min(0)
|
||||
],
|
||||
depositAmount: [
|
||||
'',
|
||||
Validators.required
|
||||
[
|
||||
Validators.required,
|
||||
Validators.min(0)
|
||||
]
|
||||
],
|
||||
maxDepositAmount: [
|
||||
'',
|
||||
Validators.min(0)
|
||||
],
|
||||
maxDepositAmount: [''],
|
||||
interestCompoundingPeriodType: [
|
||||
'',
|
||||
Validators.required
|
||||
|
||||
Loading…
Reference in New Issue
Block a user