Loading data/ddl/view/V_FORMULE_VOLUME_HORAIRE.sql +25 −11 Changes for data/ddl/view/V_FORMULE_VOLUME_HORAIRE.sql: 25 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -47,8 +47,8 @@ SELECT str.code structure_code, CASE WHEN COALESCE(str.id,0) = COALESCE(i.structure_id,0) THEN 1 ELSE 0 END structure_is_affectation, CASE WHEN COALESCE(str.id,0) = COALESCE(to_number(p.valeur),0) THEN 1 ELSE 0 END structure_is_univ, MAX(COALESCE( m.ponderation_service_du, 1)) ponderation_service_du, MAX(COALESCE( m.ponderation_service_compl, 1)) ponderation_service_compl, ep.ponderation_service_du ponderation_service_du, ep.ponderation_service_compl ponderation_service_compl, COALESCE(tf.service_statutaire,1) service_statutaire, vh.heures heures, Loading @@ -66,13 +66,32 @@ FROM JOIN v_volume_horaire_etat vhe ON vhe.volume_horaire_id = vh.id JOIN type_volume_horaire tvh ON tvh.id = vh.type_volume_horaire_id LEFT JOIN element_pedagogique ep ON ep.id = s.element_pedagogique_id LEFT JOIN ( SELECT ep.id, ep.structure_id, ep.etape_id, ep.taux_fi, ep.taux_fa, ep.taux_fc, MAX(COALESCE( m.ponderation_service_du, 1)) ponderation_service_du, MAX(COALESCE( m.ponderation_service_compl, 1)) ponderation_service_compl FROM element_pedagogique ep LEFT JOIN element_modulateur em ON em.element_id = ep.id AND em.histo_destruction IS NULL LEFT JOIN modulateur m ON m.id = em.modulateur_id GROUP BY ep.id, ep.structure_id, ep.etape_id, ep.taux_fi, ep.taux_fa, ep.taux_fc ) ep ON ep.id = s.element_pedagogique_id LEFT JOIN structure str ON str.id = ep.structure_id LEFT JOIN etape e ON e.id = ep.etape_id LEFT JOIN type_formation tf ON tf.id = e.type_formation_id LEFT JOIN element_modulateur em ON em.element_id = s.element_pedagogique_id AND em.histo_destruction IS NULL LEFT JOIN modulateur m ON m.id = em.modulateur_id LEFT JOIN type_intervention_statut tis ON tis.type_intervention_id = ti.id AND tis.statut_id = i.statut_id WHERE vh.histo_destruction IS NULL Loading @@ -80,11 +99,6 @@ WHERE AND vh.heures <> 0 AND vh.motif_non_paiement_id IS NULL AND s.intervenant_id = COALESCE( OSE_FORMULE.GET_INTERVENANT_ID, s.intervenant_id ) GROUP BY vh.id, s.id, s.intervenant_id, ti.id, vh.type_volume_horaire_id, vhe.etat_volume_horaire_id, tvh.code, ep.id, ep.taux_fi, ep.taux_fa, ep.taux_fc, str.id, str.code, tf.service_statutaire, vh.heures, vh.horaire_debut, vh.horaire_fin, tis.taux_hetd_service, tis.taux_hetd_complementaire, ti.code, ti.taux_hetd_service, ti.taux_hetd_complementaire, i.structure_id, p.valeur UNION ALL Loading data/ddl/view/V_VOLUME_HORAIRE_REF_ETAT.sql +4 −8 Changes for data/ddl/view/V_VOLUME_HORAIRE_REF_ETAT.sql: 4 added lines, 8 removed lines. Original line number Diff line number Diff line CREATE OR REPLACE FORCE VIEW V_VOLUME_HORAIRE_REF_ETAT AS SELECT SELECT DISTINCT vhr.id volume_horaire_ref_id, evh.id etat_volume_horaire_id FROM volume_horaire_ref vhr JOIN etat_volume_horaire evh ON evh.code = CASE WHEN vhr.auto_validation = 1 OR EXISTS( SELECT * FROM validation v JOIN validation_vol_horaire_ref vvhr ON vvhr.validation_id = v.id WHERE vvhr.volume_horaire_ref_id = vhr.id AND v.histo_destruction IS NULL ) THEN 'valide' ELSE 'saisi' END No newline at end of file LEFT JOIN validation_vol_horaire_ref vvhr ON vvhr.volume_horaire_ref_id = vhr.id LEFT JOIN validation v ON v.id = vvhr.validation_id AND v.histo_destruction IS NULL JOIN etat_volume_horaire evh ON evh.code = CASE WHEN vhr.auto_validation = 1 OR v.id IS NOT NULL THEN 'valide' ELSE 'saisi' END No newline at end of file module/Application/config/administration.config.php +13 −12 Changes for module/Application/config/administration.config.php: 13 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ return [ 'pages' => [ 'gestion-referentiel-commun' => [ 'label' => 'Gestion dictionnaires de données', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-referentiel-commun', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-referentiel-commun'), 'order' => 82, Loading @@ -108,7 +108,7 @@ return [ 'pages' => [ 'voirie' => [ 'label' => 'Gestion des voiries', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'voirie', 'resource' => PrivilegeController::getResourceId('Application\Controller\Voirie', 'index'), 'order' => 800, Loading @@ -119,7 +119,7 @@ return [ ], 'gestion-nomenclature-rh' => [ 'label' => 'Gestion des nomenclatures RH', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-nomenclature-rh', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-nomenclature-rh'), 'order' => 83, Loading @@ -127,7 +127,7 @@ return [ 'pages' => [ 'grade' => [ 'label' => 'Gestion des grades', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'grades', 'resource' => PrivilegeController::getResourceId('Application\Controller\Grade', 'index'), 'order' => 800, Loading @@ -135,7 +135,7 @@ return [ ], 'Employeurs' => [ 'border-color' => '#9F491F', 'icon' => 'glyphicon glyphicon-list-alt', 'icon' => 'fas fa-table-list', 'label' => "Gestion des employeurs", 'title' => "Gestion des employeurs", 'route' => 'employeur', Loading @@ -146,7 +146,7 @@ return [ ], 'gestion-periode' => [ 'label' => 'Gestion des périodes', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'periodes', 'resource' => PrivilegeController::getResourceId('Application\Controller\Periode', 'index'), 'order' => 84, Loading @@ -154,7 +154,7 @@ return [ ], 'gestion-etablissement' => [ 'label' => 'Gestion des établissements', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'etablissement', 'resource' => PrivilegeController::getResourceId('Application\Controller\Etablissement', 'index'), 'order' => 85, Loading @@ -162,7 +162,7 @@ return [ ], 'gestion-intervenant' => [ 'label' => 'Gestion intervenants (Statuts, PJ, etc...)', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-intervenant', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-intervenant'), 'order' => 80, Loading @@ -170,7 +170,7 @@ return [ 'pages' => [ 'statut' => [ 'label' => 'Edition des statuts des intervenants', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'statut', 'resource' => PrivilegeController::getResourceId('Intervenant\Controller\Statut', 'index'), 'order' => 90, Loading Loading @@ -201,7 +201,7 @@ return [ ], 'administration-financiere' => [ 'label' => 'Données financières', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-financiere', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-financiere'), 'order' => 81, Loading @@ -209,7 +209,7 @@ return [ 'pages' => [ 'centre-cout' => [ 'label' => 'Edition des centres de coûts', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'centre-cout', 'resource' => PrivilegeController::getResourceId('Application\Controller\CentreCout', 'index'), 'order' => 80, Loading @@ -217,7 +217,7 @@ return [ ], 'centre-cout-activite' => [ 'label' => 'Edition des types d\'activités des centres de coûts', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'centre-cout-activite', 'resource' => PrivilegeController::getResourceId('Application\Controller\CentreCout', 'index'), 'order' => 80, Loading Loading @@ -277,6 +277,7 @@ return [ Privileges::ODF_RECONDUCTION_OFFRE, Privileges::STRUCTURES_ADMINISTRATION_VISUALISATION, Privileges::PARAMETRES_PERIODES_VISUALISATION, Privileges::INTERVENANT_STATUT_VISUALISATION, ], 'assertion' => Assertion\GestionAssertion::class, ], Loading module/Application/config/agrement.config.php +1 −1 Changes for module/Application/config/agrement.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -181,7 +181,7 @@ return [ 'agrement' => [ 'label' => "Agréments par lot", 'title' => "Gestion des agréments par lot", 'icon' => 'fa fa-tags', 'icon' => 'fas fa-tags', 'route' => 'gestion/agrement', 'resource' => PrivilegeController::getResourceId('Application\Controller\Agrement', 'index'), 'visible' => Assertion\AgrementAssertion::class, Loading module/Application/config/budget.config.php +1 −1 Changes for module/Application/config/budget.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ return [ 'budget' => [ 'label' => 'Budget', 'title' => 'Budget', 'icon' => 'fa fa-eur', 'icon' => 'fas fa-eur', 'route' => 'budget', 'resource' => PrivilegeController::getResourceId('Application\Controller\Budget', 'index'), 'order' => 30, Loading Loading
data/ddl/view/V_FORMULE_VOLUME_HORAIRE.sql +25 −11 Changes for data/ddl/view/V_FORMULE_VOLUME_HORAIRE.sql: 25 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -47,8 +47,8 @@ SELECT str.code structure_code, CASE WHEN COALESCE(str.id,0) = COALESCE(i.structure_id,0) THEN 1 ELSE 0 END structure_is_affectation, CASE WHEN COALESCE(str.id,0) = COALESCE(to_number(p.valeur),0) THEN 1 ELSE 0 END structure_is_univ, MAX(COALESCE( m.ponderation_service_du, 1)) ponderation_service_du, MAX(COALESCE( m.ponderation_service_compl, 1)) ponderation_service_compl, ep.ponderation_service_du ponderation_service_du, ep.ponderation_service_compl ponderation_service_compl, COALESCE(tf.service_statutaire,1) service_statutaire, vh.heures heures, Loading @@ -66,13 +66,32 @@ FROM JOIN v_volume_horaire_etat vhe ON vhe.volume_horaire_id = vh.id JOIN type_volume_horaire tvh ON tvh.id = vh.type_volume_horaire_id LEFT JOIN element_pedagogique ep ON ep.id = s.element_pedagogique_id LEFT JOIN ( SELECT ep.id, ep.structure_id, ep.etape_id, ep.taux_fi, ep.taux_fa, ep.taux_fc, MAX(COALESCE( m.ponderation_service_du, 1)) ponderation_service_du, MAX(COALESCE( m.ponderation_service_compl, 1)) ponderation_service_compl FROM element_pedagogique ep LEFT JOIN element_modulateur em ON em.element_id = ep.id AND em.histo_destruction IS NULL LEFT JOIN modulateur m ON m.id = em.modulateur_id GROUP BY ep.id, ep.structure_id, ep.etape_id, ep.taux_fi, ep.taux_fa, ep.taux_fc ) ep ON ep.id = s.element_pedagogique_id LEFT JOIN structure str ON str.id = ep.structure_id LEFT JOIN etape e ON e.id = ep.etape_id LEFT JOIN type_formation tf ON tf.id = e.type_formation_id LEFT JOIN element_modulateur em ON em.element_id = s.element_pedagogique_id AND em.histo_destruction IS NULL LEFT JOIN modulateur m ON m.id = em.modulateur_id LEFT JOIN type_intervention_statut tis ON tis.type_intervention_id = ti.id AND tis.statut_id = i.statut_id WHERE vh.histo_destruction IS NULL Loading @@ -80,11 +99,6 @@ WHERE AND vh.heures <> 0 AND vh.motif_non_paiement_id IS NULL AND s.intervenant_id = COALESCE( OSE_FORMULE.GET_INTERVENANT_ID, s.intervenant_id ) GROUP BY vh.id, s.id, s.intervenant_id, ti.id, vh.type_volume_horaire_id, vhe.etat_volume_horaire_id, tvh.code, ep.id, ep.taux_fi, ep.taux_fa, ep.taux_fc, str.id, str.code, tf.service_statutaire, vh.heures, vh.horaire_debut, vh.horaire_fin, tis.taux_hetd_service, tis.taux_hetd_complementaire, ti.code, ti.taux_hetd_service, ti.taux_hetd_complementaire, i.structure_id, p.valeur UNION ALL Loading
data/ddl/view/V_VOLUME_HORAIRE_REF_ETAT.sql +4 −8 Changes for data/ddl/view/V_VOLUME_HORAIRE_REF_ETAT.sql: 4 added lines, 8 removed lines. Original line number Diff line number Diff line CREATE OR REPLACE FORCE VIEW V_VOLUME_HORAIRE_REF_ETAT AS SELECT SELECT DISTINCT vhr.id volume_horaire_ref_id, evh.id etat_volume_horaire_id FROM volume_horaire_ref vhr JOIN etat_volume_horaire evh ON evh.code = CASE WHEN vhr.auto_validation = 1 OR EXISTS( SELECT * FROM validation v JOIN validation_vol_horaire_ref vvhr ON vvhr.validation_id = v.id WHERE vvhr.volume_horaire_ref_id = vhr.id AND v.histo_destruction IS NULL ) THEN 'valide' ELSE 'saisi' END No newline at end of file LEFT JOIN validation_vol_horaire_ref vvhr ON vvhr.volume_horaire_ref_id = vhr.id LEFT JOIN validation v ON v.id = vvhr.validation_id AND v.histo_destruction IS NULL JOIN etat_volume_horaire evh ON evh.code = CASE WHEN vhr.auto_validation = 1 OR v.id IS NOT NULL THEN 'valide' ELSE 'saisi' END No newline at end of file
module/Application/config/administration.config.php +13 −12 Changes for module/Application/config/administration.config.php: 13 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ return [ 'pages' => [ 'gestion-referentiel-commun' => [ 'label' => 'Gestion dictionnaires de données', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-referentiel-commun', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-referentiel-commun'), 'order' => 82, Loading @@ -108,7 +108,7 @@ return [ 'pages' => [ 'voirie' => [ 'label' => 'Gestion des voiries', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'voirie', 'resource' => PrivilegeController::getResourceId('Application\Controller\Voirie', 'index'), 'order' => 800, Loading @@ -119,7 +119,7 @@ return [ ], 'gestion-nomenclature-rh' => [ 'label' => 'Gestion des nomenclatures RH', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-nomenclature-rh', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-nomenclature-rh'), 'order' => 83, Loading @@ -127,7 +127,7 @@ return [ 'pages' => [ 'grade' => [ 'label' => 'Gestion des grades', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'grades', 'resource' => PrivilegeController::getResourceId('Application\Controller\Grade', 'index'), 'order' => 800, Loading @@ -135,7 +135,7 @@ return [ ], 'Employeurs' => [ 'border-color' => '#9F491F', 'icon' => 'glyphicon glyphicon-list-alt', 'icon' => 'fas fa-table-list', 'label' => "Gestion des employeurs", 'title' => "Gestion des employeurs", 'route' => 'employeur', Loading @@ -146,7 +146,7 @@ return [ ], 'gestion-periode' => [ 'label' => 'Gestion des périodes', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'periodes', 'resource' => PrivilegeController::getResourceId('Application\Controller\Periode', 'index'), 'order' => 84, Loading @@ -154,7 +154,7 @@ return [ ], 'gestion-etablissement' => [ 'label' => 'Gestion des établissements', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'etablissement', 'resource' => PrivilegeController::getResourceId('Application\Controller\Etablissement', 'index'), 'order' => 85, Loading @@ -162,7 +162,7 @@ return [ ], 'gestion-intervenant' => [ 'label' => 'Gestion intervenants (Statuts, PJ, etc...)', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-intervenant', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-intervenant'), 'order' => 80, Loading @@ -170,7 +170,7 @@ return [ 'pages' => [ 'statut' => [ 'label' => 'Edition des statuts des intervenants', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'statut', 'resource' => PrivilegeController::getResourceId('Intervenant\Controller\Statut', 'index'), 'order' => 90, Loading Loading @@ -201,7 +201,7 @@ return [ ], 'administration-financiere' => [ 'label' => 'Données financières', 'icon' => 'glyphicon glyphicon - list-alt', 'icon' => 'fas fa-table-list', 'route' => 'administration-financiere', 'resource' => PrivilegeController::getResourceId('Application\Controller\Administration', 'administration-financiere'), 'order' => 81, Loading @@ -209,7 +209,7 @@ return [ 'pages' => [ 'centre-cout' => [ 'label' => 'Edition des centres de coûts', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'centre-cout', 'resource' => PrivilegeController::getResourceId('Application\Controller\CentreCout', 'index'), 'order' => 80, Loading @@ -217,7 +217,7 @@ return [ ], 'centre-cout-activite' => [ 'label' => 'Edition des types d\'activités des centres de coûts', 'icon' => 'fa fa-graduation-cap', 'icon' => 'fas fa-graduation-cap', 'route' => 'centre-cout-activite', 'resource' => PrivilegeController::getResourceId('Application\Controller\CentreCout', 'index'), 'order' => 80, Loading Loading @@ -277,6 +277,7 @@ return [ Privileges::ODF_RECONDUCTION_OFFRE, Privileges::STRUCTURES_ADMINISTRATION_VISUALISATION, Privileges::PARAMETRES_PERIODES_VISUALISATION, Privileges::INTERVENANT_STATUT_VISUALISATION, ], 'assertion' => Assertion\GestionAssertion::class, ], Loading
module/Application/config/agrement.config.php +1 −1 Changes for module/Application/config/agrement.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -181,7 +181,7 @@ return [ 'agrement' => [ 'label' => "Agréments par lot", 'title' => "Gestion des agréments par lot", 'icon' => 'fa fa-tags', 'icon' => 'fas fa-tags', 'route' => 'gestion/agrement', 'resource' => PrivilegeController::getResourceId('Application\Controller\Agrement', 'index'), 'visible' => Assertion\AgrementAssertion::class, Loading
module/Application/config/budget.config.php +1 −1 Changes for module/Application/config/budget.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ return [ 'budget' => [ 'label' => 'Budget', 'title' => 'Budget', 'icon' => 'fa fa-eur', 'icon' => 'fas fa-eur', 'route' => 'budget', 'resource' => PrivilegeController::getResourceId('Application\Controller\Budget', 'index'), 'order' => 30, Loading