feat: adding warehouse filter for sales order ananlysis report

feat: adding warehouse filter for sales order ananlysis report
This commit is contained in:
Gokulnath 2022-12-17 20:06:01 +05:30 committed by GitHub
parent 67c5cec505
commit 4ecce242a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,12 @@ frappe.query_reports["Sales Order Analysis"] = {
}
}
},
{
"fieldname": "warehouse",
"label": __("Warehouse"),
"fieldtype": "Link",
"options": "Warehouse"
},
{
"fieldname": "status",
"label": __("Status"),

View File

@ -53,6 +53,9 @@ def get_conditions(filters):
if filters.get("status"):
conditions += " and so.status in %(status)s"
if filters.get("warehouse"):
conditions += " and soi.warehouse = %(warehouse)s"
return conditions