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