Loading .gitignore +3 −1 Original line number Diff line number Diff line Loading @@ -4,5 +4,7 @@ upload/ config/autoload/*local* composer.lock vendor !public/vendor !/public/vendor /public/css/local.css /public/css/logos.css !public/unicaen/app/vendor No newline at end of file documentation/release/3.2.8.md 0 → 100644 +39 −0 Original line number Diff line number Diff line Version 3.2.8 (XX/XX/2023) ==== Évolution --- - Filtrage des agents ayant un entretien professionnel sur les emploi-types avec un paramètre - Correction de l'envoi des notifications d'avancement des campagnes d'EP ou supérieurs et autorités ayant complétés leur campagne. Modification en BD --- ```postgresql INSERT INTO unicaen_parametre_parametre(CATEGORIE_ID, CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( SELECT 'TEMOIN_EMPLOITYPE','Filtrage sur les codes des emploi-type',null,'String',true, 2000 ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d JOIN unicaen_parametre_categorie cp ON cp.CODE = 'ENTRETIEN_PROFESSIONNEL'; ``` Evolution des librairies --- ```bash ``` Ou réinstalle des libraires ```bash rm -fr vendor rm -fr composer.lock composer install ``` Evolution des macros et templates --- module/Application/src/Application/Entity/Db/Agent.php +1 −4 Original line number Diff line number Diff line Loading @@ -169,7 +169,7 @@ class Agent implements return $affectations; } /** @return AgentAffectation */ //TODO A reecrire car peut être multiple ... //TODO A reecrire car peut être multiple ... public function getAffectationPrincipale(?DateTime $date = null) : ?AgentAffectation { if ($date === null) { Loading Loading @@ -463,9 +463,6 @@ class Agent implements return false; } /** * @return NiveauEnveloppe */ public function getNiveauEnveloppe() : ?NiveauEnveloppe { $inferieure = null; Loading module/Application/src/Application/Service/Agent/AgentService.php +2 −2 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ class AgentService { ->andWhere('agent.deleted_on IS NULL') ->andWhere('affectation.deleted_on IS NULL'); } catch (NotSupported $e) { throw new RuntimeException("Un problème est survenu lors de la création du QueryBuilder de [".Agent."]",0,$e); throw new RuntimeException("Un problème est survenu lors de la création du QueryBuilder de [".Agent::class."]",0,$e); } return $qb; } Loading Loading @@ -163,7 +163,7 @@ class AgentService { try { $result = $qb->getQuery()->getOneOrNullResult(); } catch (NonUniqueResultException $e) { throw new RuntimeException("Plusieurs agents partagent le même identifiant [".$id."]"); throw new RuntimeException("Plusieurs agents partagent le même identifiant [".$id."]",0,$e); } return $result; } Loading module/EntretienProfessionnel/src/EntretienProfessionnel/Assertion/EntretienProfessionnelAssertion.php +9 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,15 @@ class EntretienProfessionnelAssertion extends AbstractAssertion { if (!in_array($role, $listings)) return false; //todo FIN BIZARERIE ... $grades = $entity->getAgent()->getGradesActifs($entity->getDateEntretien()); $inhibition = false; foreach ($grades as $grade) { if ($grade->getCorps()->isSuperieurAsAutorite()) { $inhibition = true; break; } } $grades = $entity->getAgent()->getGradesActifs($entity->getDateEntretien()); $inhibition = false; foreach ($grades as $grade) { Loading Loading
.gitignore +3 −1 Original line number Diff line number Diff line Loading @@ -4,5 +4,7 @@ upload/ config/autoload/*local* composer.lock vendor !public/vendor !/public/vendor /public/css/local.css /public/css/logos.css !public/unicaen/app/vendor No newline at end of file
documentation/release/3.2.8.md 0 → 100644 +39 −0 Original line number Diff line number Diff line Version 3.2.8 (XX/XX/2023) ==== Évolution --- - Filtrage des agents ayant un entretien professionnel sur les emploi-types avec un paramètre - Correction de l'envoi des notifications d'avancement des campagnes d'EP ou supérieurs et autorités ayant complétés leur campagne. Modification en BD --- ```postgresql INSERT INTO unicaen_parametre_parametre(CATEGORIE_ID, CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( SELECT 'TEMOIN_EMPLOITYPE','Filtrage sur les codes des emploi-type',null,'String',true, 2000 ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d JOIN unicaen_parametre_categorie cp ON cp.CODE = 'ENTRETIEN_PROFESSIONNEL'; ``` Evolution des librairies --- ```bash ``` Ou réinstalle des libraires ```bash rm -fr vendor rm -fr composer.lock composer install ``` Evolution des macros et templates ---
module/Application/src/Application/Entity/Db/Agent.php +1 −4 Original line number Diff line number Diff line Loading @@ -169,7 +169,7 @@ class Agent implements return $affectations; } /** @return AgentAffectation */ //TODO A reecrire car peut être multiple ... //TODO A reecrire car peut être multiple ... public function getAffectationPrincipale(?DateTime $date = null) : ?AgentAffectation { if ($date === null) { Loading Loading @@ -463,9 +463,6 @@ class Agent implements return false; } /** * @return NiveauEnveloppe */ public function getNiveauEnveloppe() : ?NiveauEnveloppe { $inferieure = null; Loading
module/Application/src/Application/Service/Agent/AgentService.php +2 −2 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ class AgentService { ->andWhere('agent.deleted_on IS NULL') ->andWhere('affectation.deleted_on IS NULL'); } catch (NotSupported $e) { throw new RuntimeException("Un problème est survenu lors de la création du QueryBuilder de [".Agent."]",0,$e); throw new RuntimeException("Un problème est survenu lors de la création du QueryBuilder de [".Agent::class."]",0,$e); } return $qb; } Loading Loading @@ -163,7 +163,7 @@ class AgentService { try { $result = $qb->getQuery()->getOneOrNullResult(); } catch (NonUniqueResultException $e) { throw new RuntimeException("Plusieurs agents partagent le même identifiant [".$id."]"); throw new RuntimeException("Plusieurs agents partagent le même identifiant [".$id."]",0,$e); } return $result; } Loading
module/EntretienProfessionnel/src/EntretienProfessionnel/Assertion/EntretienProfessionnelAssertion.php +9 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,15 @@ class EntretienProfessionnelAssertion extends AbstractAssertion { if (!in_array($role, $listings)) return false; //todo FIN BIZARERIE ... $grades = $entity->getAgent()->getGradesActifs($entity->getDateEntretien()); $inhibition = false; foreach ($grades as $grade) { if ($grade->getCorps()->isSuperieurAsAutorite()) { $inhibition = true; break; } } $grades = $entity->getAgent()->getGradesActifs($entity->getDateEntretien()); $inhibition = false; foreach ($grades as $grade) { Loading