Merge pull request #2518 from JebronLames32/SavingsAccountingFix
Fix: reset accrual-specific form fields on accounting rule change
This commit is contained in:
+5
@@ -206,6 +206,11 @@ export class SavingProductAccountingStepComponent implements OnInit {
|
|||||||
new UntypedFormControl('', Validators.required)
|
new UntypedFormControl('', Validators.required)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (accountingRule === 2) {
|
||||||
|
this.savingProductAccountingForm.removeControl('feesReceivableAccountId');
|
||||||
|
this.savingProductAccountingForm.removeControl('penaltiesReceivableAccountId');
|
||||||
|
this.savingProductAccountingForm.removeControl('interestPayableAccountId');
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isDormancyTrackingActive.value) {
|
if (this.isDormancyTrackingActive.value) {
|
||||||
this.savingProductAccountingForm.addControl(
|
this.savingProductAccountingForm.addControl(
|
||||||
|
|||||||
Reference in New Issue
Block a user