diff --git a/yuthon_salary/static/src/views/list/list_renderer.js b/yuthon_salary/static/src/views/list/list_renderer.js index b70e3a67b..535efaf46 100644 --- a/yuthon_salary/static/src/views/list/list_renderer.js +++ b/yuthon_salary/static/src/views/list/list_renderer.js @@ -127,7 +127,7 @@ patch(ListRenderer.prototype, { } if (["float", "int", "monetary"].includes(fieldInfo.type)) { const fieldValues = values.map((v) => v[fieldInfo.name] || 0); - const aggregateValue = fieldValues.reduce((acc, val) => acc + val); + const aggregateValue = fieldValues.reduce((acc, val) => acc + val, 0); if (!aggregateValue) { console.log(column) return false;