Skip to content
Snippets Groups Projects
Commit 9f2166cc authored by Victor Picussa's avatar Victor Picussa
Browse files

[dailyChargeAmount]Added period & integral time urls

parent 5753f754
Branches
Tags
1 merge request!139Hotfix v1.4.2
......@@ -124,6 +124,30 @@ dailyChargeAmountApp.get('/average/education_level_mod', (req, res, next) => {
next();
}, response('education_level_mod'));
dailyChargeAmountApp.get('/period', (req, res, next) => {
req.result = [];
for(let i = 1; i <= 3; ++i) {
req.result.push({
id: i,
name: id2str.period(i)
});
};
req.result.push({
id: 99,
name: id2str.period(99)
});
next();
}, response('period'));
dailyChargeAmountApp.get('/integral_time', (req, res, next) => {
req.result = [
{id: null, name: 'Não Disponível'},
{id: 0, name: 'Não'},
{id: 1, name: 'Sim'}
];
next();
}, response('integral_time'));
rqf.addField({
name: 'filter',
field: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment