mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-08 15:51:19 +00:00
refactor: usage of modified ordering (#40705)
Audited some important code: - general_ledger.py - stock_ledger.py
This commit is contained in:
@@ -277,7 +277,7 @@ class EmailDigest(Document):
|
||||
issue_list = frappe.db.sql(
|
||||
"""select *
|
||||
from `tabIssue` where status in ("Replied","Open")
|
||||
order by modified asc limit 10""",
|
||||
order by creation asc limit 10""",
|
||||
as_dict=True,
|
||||
)
|
||||
|
||||
@@ -301,7 +301,7 @@ class EmailDigest(Document):
|
||||
project_list = frappe.db.sql(
|
||||
"""select *
|
||||
from `tabProject` where status='Open' and project_type='External'
|
||||
order by modified asc limit 10""",
|
||||
order by creation asc limit 10""",
|
||||
as_dict=True,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user