Skip to content

Commit

Permalink
fix: sort by section code
Browse files Browse the repository at this point in the history
(cherry picked from commit 4471ad5)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 1, 2023
1 parent aa19055 commit 06bb1a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -111,6 +111,8 @@ def get_result(
)
out.append(row)

out.sort(key=lambda x: x["section_code"])

return out


Expand Down

0 comments on commit 06bb1a3

Please sign in to comment.