Skip to content

Commit

Permalink
Merge pull request #42563 from ruthra-kumar/set_query_filter_on_pe_ta…
Browse files Browse the repository at this point in the history
…x_templates

fix: set query filters for sales / purchase tax template on PE
  • Loading branch information
ruthra-kumar authored Jul 31, 2024
2 parents d811fdf + 9fe47ac commit fb2aa7d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,25 @@ frappe.ui.form.on("Payment Entry", {
filters: filters,
};
});
},

frm.set_query("sales_taxes_and_charges_template", function () {
return {
filters: {
company: frm.doc.company,
disabled: false,
},
};
});

frm.set_query("purchase_taxes_and_charges_template", function () {
return {
filters: {
company: frm.doc.company,
disabled: false,
},
};
});
},
refresh: function (frm) {
erpnext.hide_company(frm);
frm.events.hide_unhide_fields(frm);
Expand Down

0 comments on commit fb2aa7d

Please sign in to comment.