WEB-664 Fixed Deposit Product Form: Negative Values Allowed in SETTINGS fields (#3089)

This commit is contained in:
Soni Jay
2026-02-15 02:43:20 -06:00
committed by GitHub
parent 1fcc44be32
commit c9fae7ae0e
2 changed files with 25 additions and 10 deletions
@@ -18,7 +18,7 @@
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label> <mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
<input type="number" matInput formControlName="lockinPeriodFrequency" /> <input type="number" min="0" matInput formControlName="lockinPeriodFrequency" />
</mat-form-field> </mat-form-field>
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
@@ -39,7 +39,7 @@
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label> <mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
<input type="number" matInput formControlName="minDepositTerm" required /> <input type="number" min="0" matInput formControlName="minDepositTerm" required />
<mat-error> <mat-error>
{{ 'labels.inputs.Minimum Deposit Term Frequency' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.inputs.Minimum Deposit Term Frequency' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong> <strong>{{ 'labels.commons.required' | translate }}</strong>
@@ -71,7 +71,7 @@
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label> <mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
<input type="number" matInput formControlName="inMultiplesOfDepositTerm" /> <input type="number" min="0" matInput formControlName="inMultiplesOfDepositTerm" />
</mat-form-field> </mat-form-field>
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
@@ -92,7 +92,7 @@
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label> <mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
<input type="number" matInput formControlName="maxDepositTerm" /> <input type="number" min="0" matInput formControlName="maxDepositTerm" />
</mat-form-field> </mat-form-field>
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
@@ -122,7 +122,7 @@
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Penal Interest' | translate }} (%)</mat-label> <mat-label>{{ 'labels.inputs.Penal Interest' | translate }} (%)</mat-label>
<input type="number" matInput formControlName="preClosurePenalInterest" /> <input type="number" min="0" matInput formControlName="preClosurePenalInterest" />
</mat-form-field> </mat-form-field>
<mat-form-field class="flex-48"> <mat-form-field class="flex-48">
@@ -97,22 +97,37 @@ export class FixedDepositProductSettingsStepComponent implements OnInit {
createFixedDepositProductSettingsForm() { createFixedDepositProductSettingsForm() {
this.fixedDepositProductSettingsForm = this.formBuilder.group({ this.fixedDepositProductSettingsForm = this.formBuilder.group({
lockinPeriodFrequency: [''], lockinPeriodFrequency: [
'',
Validators.min(0)
],
lockinPeriodFrequencyType: [''], lockinPeriodFrequencyType: [''],
minDepositTerm: [ minDepositTerm: [
'', '',
Validators.required [
Validators.required,
Validators.min(0)
]
], ],
minDepositTermTypeId: [ minDepositTermTypeId: [
'', '',
Validators.required Validators.required
], ],
inMultiplesOfDepositTerm: [''], inMultiplesOfDepositTerm: [
'',
Validators.min(0)
],
inMultiplesOfDepositTermTypeId: [''], inMultiplesOfDepositTermTypeId: [''],
maxDepositTerm: [''], maxDepositTerm: [
'',
Validators.min(0)
],
maxDepositTermTypeId: [''], maxDepositTermTypeId: [''],
preClosurePenalApplicable: [false], preClosurePenalApplicable: [false],
preClosurePenalInterest: [''], preClosurePenalInterest: [
'',
Validators.min(0)
],
preClosurePenalInterestOnTypeId: [''], preClosurePenalInterestOnTypeId: [''],
withHoldTax: [false] withHoldTax: [false]
}); });