diff --git a/erpnext/selling/search_criteria/gross_profit/gross_profit.js b/erpnext/selling/search_criteria/gross_profit/gross_profit.js index b274243ce87..4ad67358bf1 100644 --- a/erpnext/selling/search_criteria/gross_profit/gross_profit.js +++ b/erpnext/selling/search_criteria/gross_profit/gross_profit.js @@ -15,7 +15,7 @@ // along with this program. If not, see . report.customize_filters = function() { - //this.mytabs.items['Select Columns'].hide(); + this.mytabs.items['Select Columns'].hide(); this.mytabs.tabs['More Filters'].hide(); this.hide_all_filters(); this.filter_fields_dict['Delivery Note'+FILTER_SEP +'ID'].df.filter_hide = 0; diff --git a/erpnext/selling/search_criteria/gross_profit/gross_profit.py b/erpnext/selling/search_criteria/gross_profit/gross_profit.py index 55daa68ad10..7c9b9dafd8c 100644 --- a/erpnext/selling/search_criteria/gross_profit/gross_profit.py +++ b/erpnext/selling/search_criteria/gross_profit/gross_profit.py @@ -67,7 +67,7 @@ for r in res: r.append(purchase_cost) gp = flt(r[col_idx['Amount']]) - flt(purchase_cost) - gp_percent = purchase_cost and gp*100/purchase_cost or 0 + gp_percent = purchase_cost and round((gp*100/purchase_cost), 2) or 0 r.append(fmt_money(gp)) r.append(fmt_money(gp_percent)) out.append(r)