feat: adding warehouse filter for sales order ananlysis report
feat: adding warehouse filter for sales order ananlysis report
This commit is contained in:
parent
67c5cec505
commit
4ecce242a8
@ -44,6 +44,12 @@ frappe.query_reports["Sales Order Analysis"] = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fieldname": "warehouse",
|
||||
"label": __("Warehouse"),
|
||||
"fieldtype": "Link",
|
||||
"options": "Warehouse"
|
||||
},
|
||||
{
|
||||
"fieldname": "status",
|
||||
"label": __("Status"),
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user