fix: query (#19376)
This commit is contained in:
parent
ed8e3b3786
commit
eaff541349
@ -30,7 +30,7 @@ def get_total_stock(filters):
|
||||
|
||||
if filters.get("group_by") == "Warehouse":
|
||||
if filters.get("company"):
|
||||
conditions += " AND warehouse.company = '%s'" % frappe.db.escape(filters.get("company"), percent=False)
|
||||
conditions += " AND warehouse.company = %s" % frappe.db.escape(filters.get("company"), percent=False)
|
||||
|
||||
conditions += " GROUP BY ledger.warehouse, item.item_code"
|
||||
columns += "'' as company, ledger.warehouse"
|
||||
|
Loading…
x
Reference in New Issue
Block a user