Skip to content
Snippets Groups Projects
Commit 40bbf1f7 authored by es23's avatar es23 :coffee:
Browse files

fix faixa de renda familiar per capta

parent 446d05e0
No related branches found
No related tags found
2 merge requests!476dev -> homologa,!475FIX - superior education conclusion tax
...@@ -157,6 +157,7 @@ superiorEducationConclusionTaxApp.get('/income_range', (req, res, next) => { ...@@ -157,6 +157,7 @@ superiorEducationConclusionTaxApp.get('/income_range', (req, res, next) => {
}); });
} }
req.result.push({id: 10, name: id2str.incomeRange(10)}); req.result.push({id: 10, name: id2str.incomeRange(10)});
next(); next();
}, response('income_range')); }, response('income_range'));
...@@ -580,14 +581,9 @@ function whereCondition(req) { ...@@ -580,14 +581,9 @@ function whereCondition(req) {
if (dims && dims.includes("cap_code_pnad")){ if (dims && dims.includes("cap_code_pnad")){
where += `pnad_novo.cod_cap <> 99`; where += `pnad_novo.cod_cap <> 99`;
} }
if (dims && dims.includes("income_range")){
console.log(where); where += `pnad_novo.faixa_rendimento_aux_tx is not null`;
//dims.forEach((dim) => { }
//if (dim.includes("cod_cap")) {
//filterId = dim.split(":")[1];
//where += `pnad_novo.cod_cap != 99`;
//}
//});
return where; return where;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment