mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 06:48:31 +00:00
fix: Further sort sales_order_analysis to get consistent response
Since the data was sorted by `transaction_date`, report sorting order used to be inconsistent everytime if there were lots of records with same transaction date. This used to create problems while exporting report as "Excel" with filters.
(cherry picked from commit 29c7947db0)
This commit is contained in:
committed by
mergify-bot
parent
d2b61bbe8a
commit
352c585ef5
@@ -80,7 +80,7 @@ def get_data(conditions, filters):
|
||||
and so.docstatus = 1
|
||||
{conditions}
|
||||
GROUP BY soi.name
|
||||
ORDER BY so.transaction_date ASC
|
||||
ORDER BY so.transaction_date ASC, soi.item_code ASC
|
||||
""".format(conditions=conditions), filters, as_dict=1)
|
||||
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user