mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
feat: adding warehouse filter for sales order ananlysis report
feat: adding warehouse filter for sales order ananlysis report
This commit is contained in:
@@ -44,6 +44,12 @@ frappe.query_reports["Sales Order Analysis"] = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "warehouse",
|
||||||
|
"label": __("Warehouse"),
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Warehouse"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"label": __("Status"),
|
"label": __("Status"),
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ def get_conditions(filters):
|
|||||||
if filters.get("status"):
|
if filters.get("status"):
|
||||||
conditions += " and so.status in %(status)s"
|
conditions += " and so.status in %(status)s"
|
||||||
|
|
||||||
|
if filters.get("warehouse"):
|
||||||
|
conditions += " and soi.warehouse = %(warehouse)s"
|
||||||
|
|
||||||
return conditions
|
return conditions
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user