mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 06:31:48 +00:00
Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com> Co-authored-by: nareshkannasln <nareshkannashanmugam@gmail.com>
This commit is contained in:
@@ -189,6 +189,7 @@ def get_filtered_todos(ref_doctype, ref_docname, status: str | tuple[str, str]):
|
|||||||
"allocated_to",
|
"allocated_to",
|
||||||
"date",
|
"date",
|
||||||
],
|
],
|
||||||
|
order_by="date asc",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -218,6 +219,7 @@ def get_filtered_events(ref_doctype, ref_docname, open: bool):
|
|||||||
& (event_link.reference_docname == ref_docname)
|
& (event_link.reference_docname == ref_docname)
|
||||||
& (event_status_filter)
|
& (event_status_filter)
|
||||||
)
|
)
|
||||||
|
.orderby(event.starts_on)
|
||||||
)
|
)
|
||||||
data = query.run(as_dict=True)
|
data = query.run(as_dict=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user