From faab3c4cf2d1927788cd06df57a2a6d51070cc41 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 22 Apr 2013 12:20:09 +0530 Subject: [PATCH] [listview] [label] show appropriate tooltip for bar graph --- accounts/doctype/sales_invoice/sales_invoice_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accounts/doctype/sales_invoice/sales_invoice_list.js b/accounts/doctype/sales_invoice/sales_invoice_list.js index c1f8061665..14d92f2f38 100644 --- a/accounts/doctype/sales_invoice/sales_invoice_list.js +++ b/accounts/doctype/sales_invoice/sales_invoice_list.js @@ -1,7 +1,8 @@ // render wn.listview_settings['Sales Invoice'] = { add_fields: ["`tabSales Invoice`.grand_total", "`tabSales Invoice`.outstanding_amount"], - add_columns: [{"content":"outstanding_amount", width:"10%", type:"bar-graph"}], + add_columns: [{"content":"outstanding_amount", width:"10%", type:"bar-graph", + label: "Payment Received"}], prepare_data: function(data) { data.outstanding_amount = (flt(data.grand_total) - flt(data.outstanding_amount)) / flt(data.grand_total) * 100;