fix: filtering via batch no(#34950)

* fix: filtering via batch no
This commit is contained in:
Deepesh Garg 2023-04-20 12:48:44 +05:30 committed by GitHub
parent 6f26044163
commit ea6eeace80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)