mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 03:03:50 +00:00
fix: add company filter for default warehouse for sales return
(cherry picked from commit 0b614007bb)
This commit is contained in:
committed by
Mergify
parent
f00236e669
commit
32d3fbf1e8
@@ -50,6 +50,15 @@ frappe.ui.form.on("Company", {
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
frm.set_query("default_warehouse_for_sales_return", function () {
|
||||
return {
|
||||
filters: {
|
||||
company: frm.doc.name,
|
||||
is_group: 0,
|
||||
},
|
||||
};
|
||||
});
|
||||
},
|
||||
|
||||
company_name: function (frm) {
|
||||
|
||||
Reference in New Issue
Block a user