fix: shipping rule must match the company

This commit is contained in:
barredterra
2024-09-18 19:39:51 +02:00
parent 256d0208d7
commit df8f4086f6

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