Skip to content

Commit

Permalink
fix: filter tax template based on company
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Oct 18, 2023
1 parent 08aec7f commit 1a2f659
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions erpnext/accounts/doctype/subscription/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a2f659

Please sign in to comment.