mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
[fix] newsletter progress percentage
This commit is contained in:
@@ -38,7 +38,7 @@ cur_frm.cscript.setup_dashboard = function() {
|
|||||||
var total = frappe.utils.sum($.map(stat, function(v) { return v; }));
|
var total = frappe.utils.sum($.map(stat, function(v) { return v; }));
|
||||||
if(total) {
|
if(total) {
|
||||||
$.each(stat, function(k, v) {
|
$.each(stat, function(k, v) {
|
||||||
stat[k] = flt(v * 100 / total, 2);
|
stat[k] = flt(v * 100 / total, 2) + '%';
|
||||||
});
|
});
|
||||||
|
|
||||||
cur_frm.dashboard.add_progress("Status", [
|
cur_frm.dashboard.add_progress("Status", [
|
||||||
|
|||||||
Reference in New Issue
Block a user