fix: shipping rule must match the company

(cherry picked from commit df8f4086f6)
This commit is contained in:
barredterra
2024-09-18 19:39:51 +02:00
committed by Mergify
parent 5f08ef5cd1
commit 085a4c61ac

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