mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
Merge pull request #21104 from nextchamp-saqib/stock-ledger-warehouse-filter-v12
chore: [ux] filter warehouse based on company
This commit is contained in:
@@ -29,7 +29,13 @@ frappe.query_reports["Stock Ledger"] = {
|
|||||||
"fieldname":"warehouse",
|
"fieldname":"warehouse",
|
||||||
"label": __("Warehouse"),
|
"label": __("Warehouse"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Warehouse"
|
"options": "Warehouse",
|
||||||
|
"get_query": function() {
|
||||||
|
const company = frappe.query_report.get_filter_value('company');
|
||||||
|
return {
|
||||||
|
filters: { 'company': company }
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname":"item_code",
|
"fieldname":"item_code",
|
||||||
|
|||||||
Reference in New Issue
Block a user