Skip to content

Commit

Permalink
fix(minor): filter tax template based on company in subscription (#37562
Browse files Browse the repository at this point in the history
)

fix: filter tax template based on company

(cherry picked from commit 1a2f659)

Co-authored-by: Gursheen Anand <gursheen@frappe.io>
  • Loading branch information
mergify[bot] and GursheenK authored Oct 23, 2023
1 parent ec208b8 commit c05e0a4
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 c05e0a4

Please sign in to comment.