Loading data/ddl/view/V_AGREMENT_EXPORT_CSV.sql +1 Changes for data/ddl/view/V_AGREMENT_EXPORT_CSV.sql: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ SELECT a.libelle annee, s2.id intervenant_structure_id, s2.libelle_court intervenant_structure_libelle, s.id structure_id, s.ids structure_ids, s.libelle_court structure_libelle, i.code intervenant_code, Loading data/etats_sortie.php +1 Changes for data/etats_sortie.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -263,6 +263,7 @@ return [ "INTERVENANT_ID" : { "visible": false }, "INTERVENANT_STRUCTURE_ID" : { "visible": false }, "STRUCTURE_ID" : { "visible": false }, "STRUCTURE_IDS" : { "visible": false }, "AGREE" : { "visible": false }, "ANNEE": { "libelle": "Année"}, "INTERVENANT_CODE": { "libelle": "Code intervenant"}, Loading module/Agrement/src/Controller/AgrementController.php +4 −3 Changes for module/Agrement/src/Controller/AgrementController.php: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -215,12 +215,13 @@ class AgrementController extends AbstractController JOIN wie.intervenant i JOIN wie.etape we LEFT JOIN wie.structure s LEFT JOIN i.structure istr WHERE i.annee = :annee AND we.code = :typeAgrement AND wie.atteignable = true AND wie.realisation = 0 " . ($role->getStructure() ? 'AND (wie.structure = :structure OR (wie.structure IS NULL AND i.structure = :structure))' : '') . " " . ($role->getStructure() ? 'AND (s.ids LIKE :structure OR (wie.structure IS NULL AND istr.ids LIKE :structure))' : '') . " ORDER BY s.libelleCourt, i.nomUsuel, i.prenom "; Loading @@ -229,7 +230,7 @@ class AgrementController extends AbstractController $query->setParameter('annee', $this->getServiceContext()->getAnnee()); $query->setParameter('typeAgrement', $typeAgrement->getCode()); if ($role->getStructure()) { $query->setParameter('structure', $role->getStructure()); $query->setParameter('structure', $role->getStructure()->idsFilter()); } $res = $query->getResult(); Loading Loading @@ -291,7 +292,7 @@ class AgrementController extends AbstractController $filters['ANNEE_ID'] = $annee->getId(); if ($structure) { $filters['STRUCTURE_ID'] = $structure->getId(); $filters['STRUCTURE_IDS'] = $structure->idsFilter(); } //On récupére l'état de sortie pour l'export des agréments $etatSortie = $this->getServiceEtatSortie()->getRepo()->findOneBy(['code' => 'export-agrement']); Loading Loading
data/ddl/view/V_AGREMENT_EXPORT_CSV.sql +1 Changes for data/ddl/view/V_AGREMENT_EXPORT_CSV.sql: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ SELECT a.libelle annee, s2.id intervenant_structure_id, s2.libelle_court intervenant_structure_libelle, s.id structure_id, s.ids structure_ids, s.libelle_court structure_libelle, i.code intervenant_code, Loading
data/etats_sortie.php +1 Changes for data/etats_sortie.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -263,6 +263,7 @@ return [ "INTERVENANT_ID" : { "visible": false }, "INTERVENANT_STRUCTURE_ID" : { "visible": false }, "STRUCTURE_ID" : { "visible": false }, "STRUCTURE_IDS" : { "visible": false }, "AGREE" : { "visible": false }, "ANNEE": { "libelle": "Année"}, "INTERVENANT_CODE": { "libelle": "Code intervenant"}, Loading
module/Agrement/src/Controller/AgrementController.php +4 −3 Changes for module/Agrement/src/Controller/AgrementController.php: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -215,12 +215,13 @@ class AgrementController extends AbstractController JOIN wie.intervenant i JOIN wie.etape we LEFT JOIN wie.structure s LEFT JOIN i.structure istr WHERE i.annee = :annee AND we.code = :typeAgrement AND wie.atteignable = true AND wie.realisation = 0 " . ($role->getStructure() ? 'AND (wie.structure = :structure OR (wie.structure IS NULL AND i.structure = :structure))' : '') . " " . ($role->getStructure() ? 'AND (s.ids LIKE :structure OR (wie.structure IS NULL AND istr.ids LIKE :structure))' : '') . " ORDER BY s.libelleCourt, i.nomUsuel, i.prenom "; Loading @@ -229,7 +230,7 @@ class AgrementController extends AbstractController $query->setParameter('annee', $this->getServiceContext()->getAnnee()); $query->setParameter('typeAgrement', $typeAgrement->getCode()); if ($role->getStructure()) { $query->setParameter('structure', $role->getStructure()); $query->setParameter('structure', $role->getStructure()->idsFilter()); } $res = $query->getResult(); Loading Loading @@ -291,7 +292,7 @@ class AgrementController extends AbstractController $filters['ANNEE_ID'] = $annee->getId(); if ($structure) { $filters['STRUCTURE_ID'] = $structure->getId(); $filters['STRUCTURE_IDS'] = $structure->idsFilter(); } //On récupére l'état de sortie pour l'export des agréments $etatSortie = $this->getServiceEtatSortie()->getRepo()->findOneBy(['code' => 'export-agrement']); Loading