Skip to content

Commit

Permalink
fix: shipping rule must match the company
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Sep 18, 2024
1 parent 256d020 commit df8f408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/public/js/utils/sales_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ erpnext.sales_common = {
onload() {
super.onload();
this.setup_queries();
this.frm.set_query("shipping_rule", function () {
this.frm.set_query("shipping_rule", function (doc) {
return {
filters: {
shipping_rule_type: "Selling",
company: doc.company,
},
};
});
Expand Down

0 comments on commit df8f408

Please sign in to comment.