mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
@@ -97,7 +97,7 @@ def get_result(
|
|||||||
|
|
||||||
row.update(
|
row.update(
|
||||||
{
|
{
|
||||||
"section_code": tax_withholding_category,
|
"section_code": tax_withholding_category or "",
|
||||||
"entity_type": party_map.get(party, {}).get(party_type),
|
"entity_type": party_map.get(party, {}).get(party_type),
|
||||||
"rate": rate,
|
"rate": rate,
|
||||||
"total_amount": total_amount,
|
"total_amount": total_amount,
|
||||||
@@ -111,6 +111,8 @@ def get_result(
|
|||||||
)
|
)
|
||||||
out.append(row)
|
out.append(row)
|
||||||
|
|
||||||
|
out.sort(key=lambda x: x["section_code"])
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user