commit | ff9cfe0d14849d2103700ce84244c25b22075581 | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Fri Oct 29 16:30:12 2021 +0530 |
committer | Ankush Menat <ankushmenat@gmail.com> | Fri Oct 29 16:56:15 2021 +0530 |
tree | dfea8063f094166b7953dcfb26b05b4847f11601 | |
parent | f4b60a48f5bb8b8b9e8446aa0ab441f84b321e55 [diff] |
fix: sort by creation to break tie
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 38ca25e..e1d5a89 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py
@@ -128,7 +128,7 @@ & (Timestamp(sle.posting_date, sle.posting_time) < Timestamp(args.posting_date, args.posting_time)) & (sle.is_cancelled == 0) ).orderby( - sle.posting_date, sle.posting_time + sle.posting_date, sle.posting_time, sle.creation ).run(as_dict=1) for stock_ledger_entry in stock_ledger_entries: