commit | ea6eeace8028ded8d19ae4795887ec9750298d89 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Thu Apr 20 12:48:44 2023 +0530 |
committer | GitHub <noreply@github.com> | Thu Apr 20 12:48:44 2023 +0530 |
tree | 876faa9807dafc381a3ef50e75dc05486bafc4e3 | |
parent | 6f26044163c9405fb0f75b1cf33c7d16615fe26d [diff] |
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)