mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
fix: add limit for get_next_stock_reco (#34937)
fix: limit stock reco issue
(cherry picked from commit fcfa8842a7)
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -1453,6 +1453,7 @@ def get_next_stock_reco(kwargs):
|
|||||||
)
|
)
|
||||||
.orderby(CombineDatetime(sle.posting_date, sle.posting_time))
|
.orderby(CombineDatetime(sle.posting_date, sle.posting_time))
|
||||||
.orderby(sle.creation)
|
.orderby(sle.creation)
|
||||||
|
.limit(1)
|
||||||
)
|
)
|
||||||
|
|
||||||
if kwargs.get("batch_no"):
|
if kwargs.get("batch_no"):
|
||||||
|
|||||||
Reference in New Issue
Block a user