fix: item price stock report not working

This commit is contained in:
Rohit Waghchaure 2019-10-30 16:22:30 +05:30
parent 9942fcc8cb
commit 2e01573a40

View File

@ -89,7 +89,7 @@ def get_item_price_qty_data(filters):
{conditions}""" {conditions}"""
.format(conditions=conditions), filters, as_dict=1) .format(conditions=conditions), filters, as_dict=1)
price_list_names = list(set([frappe.db.escape(item.price_list_name) for item in item_results])) price_list_names = list(set([item.price_list_name for item in item_results]))
buying_price_map = get_price_map(price_list_names, buying=1) buying_price_map = get_price_map(price_list_names, buying=1)
selling_price_map = get_price_map(price_list_names, selling=1) selling_price_map = get_price_map(price_list_names, selling=1)