diff --git a/erpnext/selling/search_criteria/gross_profit/gross_profit.py b/erpnext/selling/search_criteria/gross_profit/gross_profit.py index 7c9b9dafd8..5955222895 100644 --- a/erpnext/selling/search_criteria/gross_profit/gross_profit.py +++ b/erpnext/selling/search_criteria/gross_profit/gross_profit.py @@ -77,8 +77,10 @@ for r in res: # Add Total Row l_row = ['' for i in range(len(colnames))] -l_row[col_idx['Quantity']] = 'TOTALS' +l_row[col_idx['Project Name']] = 'TOTALS' l_row[col_idx['Amount']] = fmt_money(tot_amount) l_row[col_idx['Purchase Cost']] = fmt_money(tot_pur_cost) l_row[col_idx['Gross Profit']] = fmt_money(flt(tot_amount) - flt(tot_pur_cost)) +l_row[col_idx['Gross Profit (%)']] = round((flt(tot_amount) - flt(tot_pur_cost))*100/ \ +flt(tot_pur_cost), 2) out.append(l_row) \ No newline at end of file