fix: somme et somme_monnaie que si le champ n'est pas vide
This commit is contained in:
parent
8385b9b440
commit
fdca27fede
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue