Merge pull request #43283 from barredterra/shipping-rule-query

fix: shipping rule must match the company
This commit is contained in:
ruthra kumar
2024-09-23 20:10:26 +05:30
committed by GitHub

View File

@@ -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,
},
};
});