mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-25 17:48:30 +00:00
[hotfix] fixed the mysql syntax error issue on stock ledger report (#10442)
This commit is contained in:
@@ -73,7 +73,9 @@ def get_sle_conditions(filters):
|
||||
conditions.append("""item_code in (select name from tabItem
|
||||
{item_conditions})""".format(item_conditions=item_conditions))
|
||||
if filters.get("warehouse"):
|
||||
conditions.append(get_warehouse_condition(filters.get("warehouse")))
|
||||
warehouse_condition = get_warehouse_condition(filters.get("warehouse"))
|
||||
if warehouse_condition:
|
||||
conditions.append(warehouse_condition)
|
||||
if filters.get("voucher_no"):
|
||||
conditions.append("voucher_no=%(voucher_no)s")
|
||||
if filters.get("batch_no"):
|
||||
|
||||
Reference in New Issue
Block a user