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

chore: [ux] filter warehouse based on company
This commit is contained in:
Deepesh Garg 2020-03-28 21:09:46 +05:30 committed by GitHub
commit f9f39f5a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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",