Merge pull request #2518 from JebronLames32/SavingsAccountingFix

Fix: reset accrual-specific form fields on accounting rule change
This commit is contained in:
Felix van Hove
2025-06-18 11:05:59 +02:00
committed by GitHub
@@ -206,6 +206,11 @@ export class SavingProductAccountingStepComponent implements OnInit {
new UntypedFormControl('', Validators.required)
);
}
if (accountingRule === 2) {
this.savingProductAccountingForm.removeControl('feesReceivableAccountId');
this.savingProductAccountingForm.removeControl('penaltiesReceivableAccountId');
this.savingProductAccountingForm.removeControl('interestPayableAccountId');
}
if (this.isDormancyTrackingActive.value) {
this.savingProductAccountingForm.addControl(