Skip to content
Snippets Groups Projects
Commit 3afdec2d authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add agreement convert

parent 5314af54
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
module.exports = function agreement(id) {
switch (id) {
case 1:
return 'Estadual';
case 2:
return 'Municipal';
case 3:
return 'Estadual e Municipal';
default:
return 'Não declarada';
}
};
...@@ -5,6 +5,7 @@ const schoolYear = require(`${libs}/convert/schoolYear`); ...@@ -5,6 +5,7 @@ const schoolYear = require(`${libs}/convert/schoolYear`);
const admDependency = require(`${libs}/convert/admDependency`); const admDependency = require(`${libs}/convert/admDependency`);
const location = require(`${libs}/convert/location`); const location = require(`${libs}/convert/location`);
const ethnicGroup = require(`${libs}/convert/ethnicGroup`); const ethnicGroup = require(`${libs}/convert/ethnicGroup`);
const agreement = require(`${libs}/convert/agreement`);
const booleanVariable = require(`${libs}/convert/booleanVariable`); const booleanVariable = require(`${libs}/convert/booleanVariable`);
const educationLevel = require(`${libs}/convert/educationLevel`); const educationLevel = require(`${libs}/convert/educationLevel`);
const educationLevelMod = require(`${libs}/convert/educationLevelMod`); const educationLevelMod = require(`${libs}/convert/educationLevelMod`);
...@@ -19,6 +20,7 @@ const ids = { ...@@ -19,6 +20,7 @@ const ids = {
adm_dependency_detailed_id: admDependency, adm_dependency_detailed_id: admDependency,
location_id: location, location_id: location,
ethnic_group_id: ethnicGroup, ethnic_group_id: ethnicGroup,
agreement_id: agreement,
integral_time_id: booleanVariable integral_time_id: booleanVariable
}; };
...@@ -46,6 +48,7 @@ module.exports = { ...@@ -46,6 +48,7 @@ module.exports = {
admDependency, admDependency,
location, location,
ethnicGroup, ethnicGroup,
agreement,
booleanVariable, booleanVariable,
educationLevel, educationLevel,
educationLevelMod educationLevelMod
......
...@@ -668,7 +668,7 @@ rqfCount.addField({ ...@@ -668,7 +668,7 @@ rqfCount.addField({
name: 'agreement', name: 'agreement',
table: 'escola', table: 'escola',
tableField: 'tipo_convenio_pp', tableField: 'tipo_convenio_pp',
resultField: 'agreement_name', resultField: 'agreement_id',
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment