From 0baf74a139b6a946dabe07f155ae8bf1dc10f72b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 26 Sep 2012 11:38:48 +0530 Subject: [PATCH] fixes in gross profit report --- erpnext/selling/search_criteria/gross_profit/gross_profit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/search_criteria/gross_profit/gross_profit.py b/erpnext/selling/search_criteria/gross_profit/gross_profit.py index 5b4d3fabac..ba3425eccc 100644 --- a/erpnext/selling/search_criteria/gross_profit/gross_profit.py +++ b/erpnext/selling/search_criteria/gross_profit/gross_profit.py @@ -86,6 +86,6 @@ 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_amount), 2) +l_row[col_idx['Gross Profit (%)']] = tot_amount and \ + round((flt(tot_amount) - flt(tot_pur_cost))*100 / flt(tot_amount), 2) out.append(l_row) \ No newline at end of file