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

fix age range filter

parent a1a27edd
Branches
No related tags found
5 merge requests!501[hotfix] capital filter working for superior education conclusion tax...,!499[hotfix] capital filter working for superior education conclusion tax...,!489dev -> hom,!487Development,!485Es23 students receiving aid tax
......@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with simcaq-node. If not, see <https://www.gnu.org/licenses/>.
*/
module.exports = function ageRange(id) {
module.exports = function ageRangeAll(id) {
switch (id) {
case 1:
return '0 a 3 anos';
......
......@@ -242,7 +242,7 @@ studentsReceivingAidTaxApp.get('/state', (req, res, next) => {
next();
}, response('state'));
studentsReceivingAidTaxApp.get('/age_range', (req, res, next) => {
studentsReceivingAidTaxApp.get('/age_range_all', (req, res, next) => {
req.result = []
for (let i = 1; i < 12; i++) {
req.result.push({
......@@ -251,7 +251,7 @@ studentsReceivingAidTaxApp.get('/age_range', (req, res, next) => {
}
next();
}, response('age_range'));
}, response('age_range_all'));
studentsReceivingAidTaxApp.get('/location', (req, res, next) => {
req.result = []
......@@ -618,7 +618,6 @@ studentsReceivingAidTaxApp.get('/', rqf.parse(), rqf.build(), (req, res, next) =
.group("ano_ref")
.order("ano_ref");
req.querySet.push(totalEstudantesQueRecebemAuxilio);
req.querySet.push(totalEstudantes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment