WEB-567 Negative Values Allowed in Loan Product Currency Step Fields (#2982)

This commit is contained in:
Soni Jay
2026-01-11 09:33:25 -06:00
committed by GitHub
parent a07a89a5d7
commit 9a92c4ae40
2 changed files with 20 additions and 6 deletions
@@ -260,12 +260,12 @@
<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Grace on principal payment' | translate }}</mat-label>
<input type="number" matInput formControlName="graceOnPrincipalPayment" />
<input type="number" min="0" matInput formControlName="graceOnPrincipalPayment" />
</mat-form-field>
<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Grace on interest payment' | translate }}</mat-label>
<input type="number" matInput formControlName="graceOnInterestPayment" />
<input type="number" min="0" matInput formControlName="graceOnInterestPayment" />
</mat-form-field>
<mat-divider class="flex-98"></mat-divider>
@@ -298,6 +298,7 @@
<mat-label>{{ 'labels.inputs.Interest free period' | translate }}</mat-label>
<input
type="number"
min="0"
matInput
matTooltip="{{ 'tooltips.If the Interest Free Period' | translate }}"
formControlName="graceOnInterestCharged"
@@ -308,6 +309,7 @@
<mat-label>{{ 'labels.inputs.Arrears tolerance' | translate }}</mat-label>
<input
type="number"
min="0"
matInput
matTooltip="{{ 'tooltips.With Arrears tolerance' | translate }}"
formControlName="inArrearsTolerance"
@@ -300,10 +300,22 @@ export class LoanProductSettingsStepComponent implements OnInit {
'',
Validators.required
],
graceOnPrincipalPayment: [''],
graceOnInterestPayment: [''],
graceOnInterestCharged: [''],
inArrearsTolerance: [''],
graceOnPrincipalPayment: [
'',
[Validators.min(0)]
],
graceOnInterestPayment: [
'',
[Validators.min(0)]
],
graceOnInterestCharged: [
'',
[Validators.min(0)]
],
inArrearsTolerance: [
'',
[Validators.min(0)]
],
daysInYearType: [
'',
Validators.required