mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-26 18:18:30 +00:00
fix: remove tds account in taxes table on change of Tax Withholding Category
(cherry picked from commit 79b5a3e1dd)
This commit is contained in:
@@ -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() {
|
credit_to() {
|
||||||
var me = this;
|
var me = this;
|
||||||
if (this.frm.doc.credit_to) {
|
if (this.frm.doc.credit_to) {
|
||||||
|
|||||||
Reference in New Issue
Block a user