Merge pull request #45732 from frappe/mergify/bp/version-15-hotfix/pr-45590

fix: remove tds account in taxes table on change of Tax Withholding C… (backport #45590)
This commit is contained in:
ruthra kumar
2025-02-05 14:28:07 +05:30
committed by GitHub

View File

@@ -368,6 +368,18 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
}
}
tax_withholding_category(frm) {
var me = this;
let filtered_taxes = (me.frm.doc.taxes || []).filter((row) => !row.is_tax_withholding_account);
me.frm.clear_table("taxes");
filtered_taxes.forEach((row) => {
me.frm.add_child("taxes", row);
});
me.frm.refresh_field("taxes");
}
credit_to() {
var me = this;
if (this.frm.doc.credit_to) {