WEB-346:Withhold Tax Enhancements for Deposit accounts (#2709)

This commit is contained in:
Arturo Alburquerque
2025-10-16 20:23:27 -06:00
committed by GitHub
parent 8fd39c5459
commit 373c3ce6c9
2 changed files with 4 additions and 4 deletions
@@ -41,7 +41,7 @@
<mifosx-gl-account-selector
*ngIf="debitAccountData.length > 0"
[inputFormControl]="taxComponentForm.controls.debitAcountId"
[inputFormControl]="taxComponentForm.controls.debitAccountId"
[glAccountList]="debitAccountData"
[required]="false"
[inputLabel]="'Debit Account'"
@@ -59,7 +59,7 @@
<mifosx-gl-account-selector
*ngIf="creditAccountData.length > 0"
[inputFormControl]="taxComponentForm.controls.creditAcountId"
[inputFormControl]="taxComponentForm.controls.creditAccountId"
[glAccountList]="creditAccountData"
[required]="false"
[inputLabel]="'Credit Account'"
@@ -110,11 +110,11 @@ export class CreateTaxComponentComponent implements OnInit {
setConditionalControls() {
this.taxComponentForm.get('debitAccountType').valueChanges.subscribe((debitAccountTypeId) => {
this.debitAccountData = this.getAccountsData(debitAccountTypeId);
this.taxComponentForm.addControl('debitAcountId', new UntypedFormControl('', Validators.required));
this.taxComponentForm.addControl('debitAccountId', new UntypedFormControl('', Validators.required));
});
this.taxComponentForm.get('creditAccountType').valueChanges.subscribe((creditAccountTypeId) => {
this.creditAccountData = this.getAccountsData(creditAccountTypeId);
this.taxComponentForm.addControl('creditAcountId', new UntypedFormControl('', Validators.required));
this.taxComponentForm.addControl('creditAccountId', new UntypedFormControl('', Validators.required));
});
}