diff --git a/erpnext/stock/doctype/batch/batch.py b/erpnext/stock/doctype/batch/batch.py index b32033c771b..a6f07f8237b 100644 --- a/erpnext/stock/doctype/batch/batch.py +++ b/erpnext/stock/doctype/batch/batch.py @@ -316,9 +316,9 @@ def make_batch(args): @frappe.whitelist() def get_pos_reserved_batch_qty(filters): - from frappe.query_builder.functions import Sum import json - + from frappe.query_builder.functions import Sum + if isinstance(filters, str): filters = json.loads(filters)