From ea6eeace8028ded8d19ae4795887ec9750298d89 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Thu, 20 Apr 2023 12:48:44 +0530 Subject: [PATCH] fix: filtering via batch no(#34950) * fix: filtering via batch no --- erpnext/stock/stock_ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index c197769d0a..0f12987fbb 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -1457,7 +1457,7 @@ def get_next_stock_reco(kwargs): ) if kwargs.get("batch_no"): - query.where(sle.batch_no == kwargs.get("batch_no")) + query = query.where(sle.batch_no == kwargs.get("batch_no")) return query.run(as_dict=True)