separated tooltip text in plot
diff --git a/erpnext/stock/page/stock_ledger/stock_ledger.js b/erpnext/stock/page/stock_ledger/stock_ledger.js
index a774f5d..d4778ce 100644
--- a/erpnext/stock/page/stock_ledger/stock_ledger.js
+++ b/erpnext/stock/page/stock_ledger/stock_ledger.js
@@ -176,5 +176,11 @@
max: dateutil.str_to_obj(this.to_date).getTime() }
}
},
+ get_tooltip_text: function(label, x, y) {
+ var d = new Date(x);
+ var date = dateutil.obj_to_user(d + " " + d.getHours() + ":" + d.getMinutes());
+ var value = fmt_money(y);
+ return value + " on " + date;
+ },
});
}
\ No newline at end of file