Skip to content
Snippets Groups Projects
Commit 98b38542 authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

Merge branch 'development' into 'homologa'

dev -> hom

See merge request !472
parents 26f4ed1f b7bf4dc2
No related branches found
No related tags found
1 merge request!472dev -> hom
...@@ -445,29 +445,12 @@ function matchQueries(queryPartial, queryTotal) { ...@@ -445,29 +445,12 @@ function matchQueries(queryPartial, queryTotal) {
if(objMatch) { if(objMatch) {
newObj.denominator = result.total; newObj.denominator = result.total;
newObj.pop_total = objMatch.total; newObj.pop_total = objMatch.total;
newObj.total = Math.round((objMatch.total / result.total) * 100) newObj.total = Math.round((objMatch.total / result.total) * 10000) / 100;
match.push(newObj); match.push(newObj);
} }
} }
) )
/* console.log("tamanho: " + match.length);
console.log(match[10])
for (let i = 7; i < match.length; i++) {
console.log("i: " , i)
match[6].denominator += match[i].denominator;
match[6].pop_total += match[i].pop_total;
}
console.log("chega aqui")
match[6].total = Math.round((match[6].pop_total / match[6].denominator) * 100)
console.log("match 6: " , match[6].total)
match.splice(7, 4) */
console.log(match) console.log(match)
return match; return match;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment