diff --git a/src/components/gamuTable.vue b/src/components/gamuTable.vue index 99649ec..8bcc023 100644 --- a/src/components/gamuTable.vue +++ b/src/components/gamuTable.vue @@ -473,7 +473,7 @@ function footerSomme(champ, data) { let r = 0; data.map((d) => d.search).forEach((d) => { Object.entries(d).forEach(([c, v]) => { - if (c === champ) { + if (c === champ && v) { r += v; } }) @@ -485,7 +485,7 @@ function footerSommeMonnaie(champ, data) { let r = 0; data.map((d) => d.search).forEach((d) => { Object.entries(d).forEach(([c, v]) => { - if (c === champ) { + if (c === champ && v) { r += v; } })