fix: sort by section code

This commit is contained in:
Gursheen Anand 2023-10-19 16:54:10 +05:30
parent 7ecc0d5a04
commit 4471ad581e

View File

@ -97,7 +97,7 @@ def get_result(
row.update(
{
"section_code": tax_withholding_category,
"section_code": tax_withholding_category or "",
"entity_type": party_map.get(party, {}).get(party_type),
"rate": rate,
"total_amount": total_amount,
@ -111,6 +111,8 @@ def get_result(
)
out.append(row)
out.sort(key=lambda x: x["section_code"])
return out