WEB-568 Negative Values Allowed for Arrears Ageing, Overdue Days for NPA, and Principal Threshold Fields in Loan Product Settings (#2983)

This commit is contained in:
Soni Jay
2026-01-11 12:36:01 -06:00
committed by GitHub
parent dc1f75bbb8
commit bb26080c07
2 changed files with 15 additions and 6 deletions
@@ -384,7 +384,7 @@
<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.On arrears ageing' | translate }}</mat-label>
<input type="number" matInput formControlName="graceOnArrearsAgeing" />
<input type="number" min="0" matInput formControlName="graceOnArrearsAgeing" />
</mat-form-field>
<h4 class="flex-48">
@@ -400,7 +400,7 @@
<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Overdue days for NPA' | translate }}</mat-label>
<input type="number" matInput formControlName="overdueDaysForNPA" />
<input type="number" min="0" matInput formControlName="overdueDaysForNPA" />
</mat-form-field>
<mat-checkbox
@@ -413,7 +413,7 @@
<mat-form-field class="flex-48">
<mat-label>{{ 'labels.inputs.Principal Threshold (%) for Last Instalment' | translate }}</mat-label>
<input type="number" matInput formControlName="principalThresholdForLastInstallment" />
<input type="number" min="0" matInput formControlName="principalThresholdForLastInstallment" />
</mat-form-field>
<mat-checkbox
@@ -325,10 +325,19 @@ export class LoanProductSettingsStepComponent implements OnInit {
Validators.required
],
canDefineInstallmentAmount: [false],
graceOnArrearsAgeing: [''],
overdueDaysForNPA: [''],
graceOnArrearsAgeing: [
'',
[Validators.min(0)]
],
overdueDaysForNPA: [
'',
[Validators.min(0)]
],
accountMovesOutOfNPAOnlyOnArrearsCompletion: [false],
principalThresholdForLastInstallment: [''],
principalThresholdForLastInstallment: [
'',
[Validators.min(0)]
],
allowVariableInstallments: [false],
disallowExpectedDisbursements: [false],
canUseForTopup: [false],