Analytics report bug fixes and code cleaning

This commit is contained in:
deepeshgarg007
2018-11-29 08:34:47 +05:30
parent 305c8b1fba
commit 1a1c013b2a
6 changed files with 25 additions and 42 deletions

View File

@@ -68,12 +68,6 @@ frappe.query_reports["Purchase Analytics"] = {
}
],
"formatter": function(value, row, column, data) {
if(!value){
value = 0
}
return value;
},
get_datatable_options(options) {
return Object.assign(options, {
checkboxColumn: true,
@@ -110,19 +104,19 @@ frappe.query_reports["Purchase Analytics"] = {
labels: raw_data.labels,
datasets: new_datasets
}
setTimeout(() => {
frappe.query_report.chart.update(new_data)
},200)
},500)
setTimeout(() => {
frappe.query_report.chart.draw(true);
}, 800)
}, 1000)
frappe.query_report.raw_chart_data = new_data;
},
}
})
},
});
}
}