fix: filtering via batch no(#34950)

* fix: filtering via batch no
diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py
index c197769..0f12987 100644
--- a/erpnext/stock/stock_ledger.py
+++ b/erpnext/stock/stock_ledger.py
@@ -1457,7 +1457,7 @@
 	)
 
 	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)