From c54bbc039fbc61831cc5610bb9fced90d03e607c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 19 Apr 2013 16:41:57 +0530 Subject: [PATCH 1/2] [patch] [fix] reload Delivery Note Item before default cost center patch --- patches/patch_list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/patch_list.py b/patches/patch_list.py index f6a599694d..e0493dc6eb 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -242,5 +242,6 @@ patch_list = [ "patches.april_2013.p04_update_role_in_pages", "patches.april_2013.p05_fixes_in_reverse_modules", "execute:webnotes.delete_doc('DocType Mapper', 'Delivery Note-Packing Slip')", + "execute:webnotes.reload_doc('Stock', 'DocType', 'Delivery Note Item')", "patches.april_2013.p06_default_cost_center", ] \ No newline at end of file From faab3c4cf2d1927788cd06df57a2a6d51070cc41 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 22 Apr 2013 12:20:09 +0530 Subject: [PATCH 2/2] [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;