Merge pull request #21104 from nextchamp-saqib/stock-ledger-warehouse-filter-v12

chore: [ux] filter warehouse based on company
This commit is contained in:
Deepesh Garg
2020-03-28 21:10:01 +05:30
committed by GitHub

View File

@@ -29,7 +29,13 @@ frappe.query_reports["Stock Ledger"] = {
"fieldname":"warehouse",
"label": __("Warehouse"),
"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",