[Fix] Total amount not showing proper if rows has blank value
This commit is contained in:
parent
288b98ca76
commit
7a77093bed
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue