commit | ad662d38c7c9948657702fca72303c8ba87fc52f | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Thu Apr 20 10:18:23 2023 +0530 |
committer | GitHub <noreply@github.com> | Thu Apr 20 10:18:23 2023 +0530 |
tree | 8d4efa5368df34eb3e5a2281f2f1104fced4ae19 | |
parent | dd238aa5b4656e0163fc17b791ec9c4f81e5cc7c [diff] | |
parent | fcfa8842a7d0413a865741be4f7904034b365411 [diff] |
Merge pull request #34937 from rohitwaghchaure/fixed-limit-issue-for-next-stock-reco fix: add limit for get_next_stock_reco
diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index b638f08..c197769 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py
@@ -1453,6 +1453,7 @@ ) .orderby(CombineDatetime(sle.posting_date, sle.posting_time)) .orderby(sle.creation) + .limit(1) ) if kwargs.get("batch_no"):