refactor: usage of modified ordering (#40705)

Audited some important code:
- general_ledger.py
- stock_ledger.py
This commit is contained in:
Ankush Menat
2024-03-27 14:18:01 +05:30
committed by GitHub
parent dfde490c02
commit c2470ccc70
11 changed files with 17 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ class TestFormLoads(FrappeTestCase):
)
for doctype in doctypes:
last_doc = frappe.db.get_value(doctype, {}, "name", order_by="modified desc")
last_doc = frappe.db.get_value(doctype, {}, "name", order_by="creation desc")
if not last_doc:
continue
with self.subTest(msg=f"Loading {doctype} - {last_doc}", doctype=doctype, last_doc=last_doc):