fix(minor): filter tax template based on company in subscription (#37562)

fix: filter tax template based on company

(cherry picked from commit 1a2f659de2)

Co-authored-by: Gursheen Anand <gursheen@frappe.io>
This commit is contained in:
mergify[bot]
2023-10-23 11:01:23 +05:30
committed by GitHub
parent ec208b8df5
commit c05e0a4ffc

View File

@@ -18,6 +18,14 @@ frappe.ui.form.on('Subscription', {
} }
}; };
}); });
frm.set_query('sales_tax_template', function () {
return {
filters: {
company: frm.doc.company
}
};
});
}, },
refresh: function(frm) { refresh: function(frm) {