From a7099eaa8d2edb7cab9f3606be5fc06fbca4bf35 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 12 Oct 2015 16:22:10 +0530 Subject: [PATCH] [minor] [fix] Use customer_name in Sales Analytics --- erpnext/selling/page/sales_analytics/sales_analytics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/page/sales_analytics/sales_analytics.js b/erpnext/selling/page/sales_analytics/sales_analytics.js index e1fa2c8338..e37610d61f 100644 --- a/erpnext/selling/page/sales_analytics/sales_analytics.js +++ b/erpnext/selling/page/sales_analytics/sales_analytics.js @@ -34,14 +34,14 @@ erpnext.SalesAnalytics = frappe.views.TreeGridReport.extend({ show: true, item_key: "customer", parent_field: "parent_customer_group", - formatter: function(item) { return item.name; } + formatter: function(item) { return item.customer_name || item.name; } }, "Customer": { label: __("Customer"), show: false, item_key: "customer", formatter: function(item) { - return item.name; + return item.customer_name || item.name; } }, "Item Group": {