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

[dailyChargeAmount]Fix missing city & school

parent 8a227fb7
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -162,6 +162,37 @@ rqf.addField({ ...@@ -162,6 +162,37 @@ rqf.addField({
foreign: 'estado_id', foreign: 'estado_id',
foreignTable: 'turma' foreignTable: 'turma'
} }
}).addValue({
name: 'school',
table: 'escola',
tableField: ['nome_escola', 'id'],
resultField: ['school_name', 'school_id'],
where: {
relation: '=',
type: 'integer',
field: 'id'
},
join: {
primary: 'id',
foreign: 'escola_id',
foreignTable: 'turma'
}
}).addValue({
name: 'city',
table: 'municipio',
tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: {
relation: '=',
type: 'integer',
field: 'municipio_id',
table: 'turma'
},
join: {
primary: 'id',
foreign: 'municipio_id',
foreignTable: 'turma'
}
}).addValue({ }).addValue({
name: 'min_year', name: 'min_year',
table: 'turma', table: 'turma',
......
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