Merge pull request #43346 from frappe/mergify/bp/version-15-hotfix/pr-43283

fix: shipping rule must match the company (backport #43283)
This commit is contained in:
ruthra kumar
2024-09-24 08:25:18 +05:30
committed by GitHub

View File

@@ -15,10 +15,11 @@ erpnext.sales_common = {
onload() { onload() {
super.onload(); super.onload();
this.setup_queries(); this.setup_queries();
this.frm.set_query("shipping_rule", function () { this.frm.set_query("shipping_rule", function (doc) {
return { return {
filters: { filters: {
shipping_rule_type: "Selling", shipping_rule_type: "Selling",
company: doc.company,
}, },
}; };
}); });