From 54483181463dff6110347cc9862fd5ba0278e903 Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Mon, 19 Feb 2018 12:44:52 +0530 Subject: [PATCH] fix total field (#12992) --- .../sales_person_wise_transaction_summary.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py b/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py index 558a9af061..025e740173 100644 --- a/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py +++ b/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py @@ -13,10 +13,8 @@ def execute(filters=None): entries = get_entries(filters) item_details = get_item_details() data = [] - total_contribution_amount = 0 - for d in entries: - total_contribution_amount += flt(d.contribution_amt) + for d in entries: data.append([ d.name, d.customer, d.territory, d.posting_date, d.item_code, item_details.get(d.item_code, {}).get("item_group"), item_details.get(d.item_code, {}).get("brand"), @@ -25,8 +23,6 @@ def execute(filters=None): if data: total_row = [""]*len(data[0]) - total_row[0] = _("Total") - total_row[-1] = total_contribution_amount data.append(total_row) return columns, data