WEB-763 Restrict negative values in Add Slab fields for Fixed Deposit Product (#3194)

This commit is contained in:
Soni Jay
2026-02-20 17:18:11 -06:00
committed by GitHub
parent 8727b71a5c
commit a6fc36e823
@@ -465,28 +465,32 @@ export class FixedDepositProductInterestRateChartStepComponent implements OnInit
value: values ? values.fromPeriod : undefined, value: values ? values.fromPeriod : undefined,
type: 'number', type: 'number',
required: true, required: true,
order: 2 order: 2,
min: 0
}), }),
new InputBase({ new InputBase({
controlName: 'toPeriod', controlName: 'toPeriod',
label: this.translateService.instant('labels.inputs.Period To'), label: this.translateService.instant('labels.inputs.Period To'),
value: values ? values.toPeriod : undefined, value: values ? values.toPeriod : undefined,
type: 'number', type: 'number',
order: 3 order: 3,
min: 0
}), }),
new InputBase({ new InputBase({
controlName: 'amountRangeFrom', controlName: 'amountRangeFrom',
label: this.translateService.instant('labels.inputs.Amount Range From'), label: this.translateService.instant('labels.inputs.Amount Range From'),
value: values ? values.amountRangeFrom : undefined, value: values ? values.amountRangeFrom : undefined,
type: 'number', type: 'number',
order: 4 order: 4,
min: 0
}), }),
new InputBase({ new InputBase({
controlName: 'amountRangeTo', controlName: 'amountRangeTo',
label: this.translateService.instant('labels.inputs.Amount Range To'), label: this.translateService.instant('labels.inputs.Amount Range To'),
value: values ? values.amountRangeTo : undefined, value: values ? values.amountRangeTo : undefined,
type: 'number', type: 'number',
order: 5 order: 5,
min: 0
}), }),
new InputBase({ new InputBase({
controlName: 'annualInterestRate', controlName: 'annualInterestRate',
@@ -494,7 +498,8 @@ export class FixedDepositProductInterestRateChartStepComponent implements OnInit
value: values ? values.annualInterestRate : undefined, value: values ? values.annualInterestRate : undefined,
type: 'number', type: 'number',
required: true, required: true,
order: 6 order: 6,
min: 0
}), }),
new InputBase({ new InputBase({
controlName: 'description', controlName: 'description',