WEB-346:Withhold Tax Enhancements for Deposit accounts (#2709)
This commit is contained in:
+2
-2
@@ -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'"
|
||||
|
||||
+2
-2
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user