mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
[listview] [label] show appropriate tooltip for bar graph
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
// render
|
// render
|
||||||
wn.listview_settings['Sales Invoice'] = {
|
wn.listview_settings['Sales Invoice'] = {
|
||||||
add_fields: ["`tabSales Invoice`.grand_total", "`tabSales Invoice`.outstanding_amount"],
|
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) {
|
prepare_data: function(data) {
|
||||||
data.outstanding_amount = (flt(data.grand_total) -
|
data.outstanding_amount = (flt(data.grand_total) -
|
||||||
flt(data.outstanding_amount)) / flt(data.grand_total) * 100;
|
flt(data.outstanding_amount)) / flt(data.grand_total) * 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user