mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
fix: shipping rule must match the company
(cherry picked from commit df8f4086f6)
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user