From 1901ca5a45472316fe0b7069f8ac36b7f4dc79da Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 31 Aug 2015 12:02:43 +0530 Subject: [PATCH] [fix] Fixed gross profit report due to removal of designation field from Sales Team table --- erpnext/accounts/report/gross_profit/gross_profit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/accounts/report/gross_profit/gross_profit.py b/erpnext/accounts/report/gross_profit/gross_profit.py index 36d1676047..ef9bbac4d4 100644 --- a/erpnext/accounts/report/gross_profit/gross_profit.py +++ b/erpnext/accounts/report/gross_profit/gross_profit.py @@ -221,8 +221,7 @@ class GrossProfitGenerator(object): item.item_code, item.item_name, item.description, item.warehouse, item.item_group, item.brand, item.dn_detail, item.delivery_note, item.qty, item.base_net_rate, item.base_net_amount, item.name as "item_row", - sales.sales_person, sales.sales_designation, sales.allocated_amount, - sales.incentives + sales.sales_person, sales.allocated_amount, sales.incentives from `tabSales Invoice` si inner join `tabSales Invoice Item` item on item.parent = si.name left join `tabSales Team` sales on sales.parent = si.name