fix: sort by section code
(cherry picked from commit 4471ad581e1c3d220468f42170a09739a46dcc21)
This commit is contained in:
		
							parent
							
								
									aa19055899
								
							
						
					
					
						commit
						06bb1a3208
					
				| @ -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 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user