Merge pull request #34937 from rohitwaghchaure/fixed-limit-issue-for-next-stock-reco

fix: add limit for get_next_stock_reco
This commit is contained in:
rohitwaghchaure 2023-04-20 10:18:23 +05:30 committed by GitHub
commit ad662d38c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1453,6 +1453,7 @@ def get_next_stock_reco(kwargs):
)
.orderby(CombineDatetime(sle.posting_date, sle.posting_time))
.orderby(sle.creation)
.limit(1)
)
if kwargs.get("batch_no"):