@@ -63,13 +63,13 @@ def group_by_party_and_category(data, filters):
6363 },
6464 )
6565
66- party_category_wise_map .get ((row .get ("party" ), row .get ("tax_withholding_category" )))["total_amount" ] += row . get (
67- "total_amount" , 0.0
68- )
66+ party_category_wise_map .get ((row .get ("party" ), row .get ("tax_withholding_category" )))[
67+ "total_amount"
68+ ] += row . get ( "total_amount" , 0.0 )
6969
70- party_category_wise_map .get ((row .get ("party" ), row .get ("tax_withholding_category" )))["tax_amount" ] += row . get (
71- "tax_amount" , 0.0
72- )
70+ party_category_wise_map .get ((row .get ("party" ), row .get ("tax_withholding_category" )))[
71+ "tax_amount"
72+ ] += row . get ( "tax_amount" , 0.0 )
7373
7474 final_result = get_final_result (party_category_wise_map )
7575
@@ -110,13 +110,18 @@ def get_columns(filters):
110110 columns .extend (
111111 [
112112 {
113- "label" : _ ("Section Code " ),
113+ "label" : _ ("Tax Withholding Category " ),
114114 "options" : "Tax Withholding Category" ,
115115 "fieldname" : "tax_withholding_category" ,
116116 "fieldtype" : "Link" ,
117117 "width" : 180 ,
118118 },
119- {"label" : _ ("Entity Type" ), "fieldname" : "party_entity_type" , "fieldtype" : "Data" , "width" : 180 },
119+ {
120+ "label" : _ (f"{ filters .get ('party_type' , 'Party' )} Type" ),
121+ "fieldname" : "party_entity_type" ,
122+ "fieldtype" : "Data" ,
123+ "width" : 180 ,
124+ },
120125 {
121126 "label" : _ ("TDS Rate %" ) if filters .get ("party_type" ) == "Supplier" else _ ("TCS Rate %" ),
122127 "fieldname" : "rate" ,
0 commit comments