Fix: reset accrual-specific form fields on accounting rule change

This commit is contained in:
Abhinav Cillanki
2025-06-16 14:27:23 +05:30
parent a5ca4ffcb9
commit 354bb579b2
@@ -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(