mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
Merge pull request #46636 from frappe/fix-arg-usage
fix: unwired order_by argument in get_transaction_list
This commit is contained in:
@@ -69,7 +69,7 @@ def get_transaction_list(
|
|||||||
filters=None,
|
filters=None,
|
||||||
limit_start=0,
|
limit_start=0,
|
||||||
limit_page_length=20,
|
limit_page_length=20,
|
||||||
order_by="creation",
|
order_by="creation desc",
|
||||||
custom=False,
|
custom=False,
|
||||||
):
|
):
|
||||||
user = frappe.session.user
|
user = frappe.session.user
|
||||||
@@ -115,7 +115,7 @@ def get_transaction_list(
|
|||||||
limit_page_length,
|
limit_page_length,
|
||||||
fields="name",
|
fields="name",
|
||||||
ignore_permissions=ignore_permissions,
|
ignore_permissions=ignore_permissions,
|
||||||
order_by="creation desc",
|
order_by=order_by,
|
||||||
)
|
)
|
||||||
|
|
||||||
if custom:
|
if custom:
|
||||||
|
|||||||
Reference in New Issue
Block a user