fix: sort tax withhodling details report by section code and transaction date

This commit is contained in:
ljain112
2025-07-03 13:34:33 +05:30
parent 14a2f98521
commit 7ee2418f60

View File

@@ -121,7 +121,7 @@ def get_result(filters, tds_docs, tds_accounts, tax_category_map, journal_entry_
)
out.append(row)
out.sort(key=lambda x: x["section_code"])
out.sort(key=lambda x: (x["section_code"], x["transaction_date"]))
return out