[Fix] Total amount not showing proper if rows has blank value

This commit is contained in:
Rohit Waghchaure 2018-08-03 15:59:27 +05:30
parent 288b98ca76
commit 7a77093bed

View file

@ -634,7 +634,7 @@ frappe.views.ReportView = frappe.ui.BaseList.extend({
data.forEach(function(row, ri) {
$.each(row, function(key, value) {
if (key in field_map) {
totals_row[key] = (totals_row[key] || 0) + value;
totals_row[key] = (totals_row[key] || 0) + (value || 0);
}
});
});