mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 02:34:41 +00:00
Merge pull request #50460 from frappe/mergify/bp/version-15-hotfix/pr-50446
fix: add company filter for default warehouse for sales return (backport #50446)
This commit is contained in:
@@ -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