fix: stock ledgre report not working

This commit is contained in:
Rohit Waghchaure 2019-03-11 14:06:00 +05:30
parent 7e67a400cd
commit 267723f57b

View File

@ -113,7 +113,7 @@ def get_item_details(items, sl_entries, include_uom):
cf_join = "left join `tabUOM Conversion Detail` ucd on ucd.parent=item.name and ucd.uom='%s'" \
% frappe.db.escape(include_uom)
item_codes = ', '.join(['"' + frappe.db.escape(i, percent=False) + '"' for i in items])
item_codes = ', '.join([frappe.db.escape(i, percent=False) for i in items])
res = frappe.db.sql("""
select
item.name, item.item_name, item.description, item.item_group, item.brand, item.stock_uom {cf_field}