Loading CHANGELOG.md +0 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ * Reconduction de l'offre de formation pour les éléments de OSE porté par un élément synchroniser * Possibilité de rentrer un taux de charge par statut d'intervenant * Ajout d'un choix par statut pour "contrat de travail et avenants" pour laisser la possibilité à l'intervenant de télécharger sont contrat en pdf * Ajout d'un choix par statut pour "Modifications de service dû" pour laisser la possibilité à l'intervenant de modifier son service dû * Migration technnique vers le framework Bootstrap 5 et modernisation de l'identité visuelle * Réorganisation du menu "Administration" pour plus de lisibilité Loading data/ddl/table/STATUT.php +0 −12 Original line number Diff line number Diff line Loading @@ -693,18 +693,6 @@ return [ 'position' => 63, 'commentaire' => NULL, ], 'MODIF_SERVICE_DU_EDITION' => [ 'name' => 'MODIF_SERVICE_DU_EDITION', 'type' => 'bool', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => 1, 'nullable' => FALSE, 'default' => '0', 'position' => 63, 'commentaire' => NULL, ], 'MOTIF_NON_PAIEMENT' => [ 'name' => 'MOTIF_NON_PAIEMENT', 'type' => 'bool', Loading module/Intervenant/src/Entity/Db/Mapping/Intervenant.Entity.Db.Statut.dcm.xml +0 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,6 @@ <field name="modificationServiceDu" type="boolean" column="MODIF_SERVICE_DU" nullable="false"/> <field name="modificationServiceDuVisualisation" type="boolean" column="MODIF_SERVICE_DU_VISUALISATION" nullable="false"/> <field name="modificationServiceDuEdition" type="boolean" column="MODIF_SERVICE_DU_EDITION" nullable="false"/> <field name="paiementVisualisation" type="boolean" column="PAIEMENT_VISUALISATION" nullable="false"/> <field name="motifNonPaiement" type="boolean" column="MOTIF_NON_PAIEMENT" nullable="false"/> Loading module/Intervenant/src/Entity/Db/Statut.php +0 −19 Original line number Diff line number Diff line Loading @@ -156,8 +156,6 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa private bool $modificationServiceDuVisualisation = true; private bool $modificationServiceDuEdition = false; private bool $paiementVisualisation = true; private bool $motifNonPaiement = true; Loading Loading @@ -1247,22 +1245,6 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa public function getModificationServiceDuEdition(): bool { return $this->modificationServiceDuEdition; } public function setModificationServiceDuEdition(bool $modificationServiceDuEdition): Statut { $this->modificationServiceDuEdition = $modificationServiceDuEdition; return $this; } public function getPaiementVisualisation(): bool { return $this->paiementVisualisation; Loading Loading @@ -1391,7 +1373,6 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa Privileges::INTERVENANT_CALCUL_HETD => $this->formuleVisualisation, Privileges::MODIF_SERVICE_DU_ASSOCIATION => $this->modificationServiceDu, Privileges::MODIF_SERVICE_DU_VISUALISATION => $this->modificationServiceDu && $this->modificationServiceDuVisualisation, Privileges::MODIF_SERVICE_DU_EDITION => $this->modificationServiceDu && $this->modificationServiceDuEdition, Privileges::DOSSIER_VISUALISATION => $this->dossier && $this->dossierVisualisation, Privileges::DOSSIER_EDITION => $this->dossier && $this->dossierEdition, Privileges::DOSSIER_ADRESSE_VISUALISATION => $this->dossier && $this->dossierVisualisation && $this->dossierAdresse, Loading module/Intervenant/src/Form/StatutSaisieForm.php +1 −12 Original line number Diff line number Diff line Loading @@ -76,7 +76,6 @@ class StatutSaisieForm extends AbstractForm 'contratDepot', 'contratGeneration', 'modificationServiceDuVisualisation', 'modificationServiceDuEdition', ]; for ($i = 1; $i <= 5; $i++) { Loading Loading @@ -374,18 +373,14 @@ class StatutSaisieForm extends AbstractForm 'desactive' => 'Désactivé', 'active' => 'Activé mais non visible par l\'intervenant', 'visualisation' => 'Activé et visible par l\'intervenant', 'edition' => 'Activé et modifiable par l\'intervenant', ], ], 'hydrator' => [ 'getter' => function (Statut $statut, string $name) { $access = $statut->getModificationServiceDu(); $visu = $statut->getModificationServiceDuVisualisation(); $edition = $statut->getModificationServiceDuEdition(); if ($edition && $visu && $access) { return 'edition'; } elseif ($visu && $access) { if ($visu && $access) { return 'visualisation'; } elseif ($access) { return 'active'; Loading @@ -396,11 +391,7 @@ class StatutSaisieForm extends AbstractForm 'setter' => function (Statut $statut, $value, string $name) { $access = false; $visu = false; $edition = false; switch ($value) { case 'edition': $edition = true; case 'visualisation': $visu = true; case 'active': Loading @@ -408,8 +399,6 @@ class StatutSaisieForm extends AbstractForm } $statut->setModificationServiceDu($access); $statut->setModificationServiceDuVisualisation($visu); $statut->setModificationServiceDuEdition($edition); }, ], ], Loading Loading
CHANGELOG.md +0 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ * Reconduction de l'offre de formation pour les éléments de OSE porté par un élément synchroniser * Possibilité de rentrer un taux de charge par statut d'intervenant * Ajout d'un choix par statut pour "contrat de travail et avenants" pour laisser la possibilité à l'intervenant de télécharger sont contrat en pdf * Ajout d'un choix par statut pour "Modifications de service dû" pour laisser la possibilité à l'intervenant de modifier son service dû * Migration technnique vers le framework Bootstrap 5 et modernisation de l'identité visuelle * Réorganisation du menu "Administration" pour plus de lisibilité Loading
data/ddl/table/STATUT.php +0 −12 Original line number Diff line number Diff line Loading @@ -693,18 +693,6 @@ return [ 'position' => 63, 'commentaire' => NULL, ], 'MODIF_SERVICE_DU_EDITION' => [ 'name' => 'MODIF_SERVICE_DU_EDITION', 'type' => 'bool', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => 1, 'nullable' => FALSE, 'default' => '0', 'position' => 63, 'commentaire' => NULL, ], 'MOTIF_NON_PAIEMENT' => [ 'name' => 'MOTIF_NON_PAIEMENT', 'type' => 'bool', Loading
module/Intervenant/src/Entity/Db/Mapping/Intervenant.Entity.Db.Statut.dcm.xml +0 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,6 @@ <field name="modificationServiceDu" type="boolean" column="MODIF_SERVICE_DU" nullable="false"/> <field name="modificationServiceDuVisualisation" type="boolean" column="MODIF_SERVICE_DU_VISUALISATION" nullable="false"/> <field name="modificationServiceDuEdition" type="boolean" column="MODIF_SERVICE_DU_EDITION" nullable="false"/> <field name="paiementVisualisation" type="boolean" column="PAIEMENT_VISUALISATION" nullable="false"/> <field name="motifNonPaiement" type="boolean" column="MOTIF_NON_PAIEMENT" nullable="false"/> Loading
module/Intervenant/src/Entity/Db/Statut.php +0 −19 Original line number Diff line number Diff line Loading @@ -156,8 +156,6 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa private bool $modificationServiceDuVisualisation = true; private bool $modificationServiceDuEdition = false; private bool $paiementVisualisation = true; private bool $motifNonPaiement = true; Loading Loading @@ -1247,22 +1245,6 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa public function getModificationServiceDuEdition(): bool { return $this->modificationServiceDuEdition; } public function setModificationServiceDuEdition(bool $modificationServiceDuEdition): Statut { $this->modificationServiceDuEdition = $modificationServiceDuEdition; return $this; } public function getPaiementVisualisation(): bool { return $this->paiementVisualisation; Loading Loading @@ -1391,7 +1373,6 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa Privileges::INTERVENANT_CALCUL_HETD => $this->formuleVisualisation, Privileges::MODIF_SERVICE_DU_ASSOCIATION => $this->modificationServiceDu, Privileges::MODIF_SERVICE_DU_VISUALISATION => $this->modificationServiceDu && $this->modificationServiceDuVisualisation, Privileges::MODIF_SERVICE_DU_EDITION => $this->modificationServiceDu && $this->modificationServiceDuEdition, Privileges::DOSSIER_VISUALISATION => $this->dossier && $this->dossierVisualisation, Privileges::DOSSIER_EDITION => $this->dossier && $this->dossierEdition, Privileges::DOSSIER_ADRESSE_VISUALISATION => $this->dossier && $this->dossierVisualisation && $this->dossierAdresse, Loading
module/Intervenant/src/Form/StatutSaisieForm.php +1 −12 Original line number Diff line number Diff line Loading @@ -76,7 +76,6 @@ class StatutSaisieForm extends AbstractForm 'contratDepot', 'contratGeneration', 'modificationServiceDuVisualisation', 'modificationServiceDuEdition', ]; for ($i = 1; $i <= 5; $i++) { Loading Loading @@ -374,18 +373,14 @@ class StatutSaisieForm extends AbstractForm 'desactive' => 'Désactivé', 'active' => 'Activé mais non visible par l\'intervenant', 'visualisation' => 'Activé et visible par l\'intervenant', 'edition' => 'Activé et modifiable par l\'intervenant', ], ], 'hydrator' => [ 'getter' => function (Statut $statut, string $name) { $access = $statut->getModificationServiceDu(); $visu = $statut->getModificationServiceDuVisualisation(); $edition = $statut->getModificationServiceDuEdition(); if ($edition && $visu && $access) { return 'edition'; } elseif ($visu && $access) { if ($visu && $access) { return 'visualisation'; } elseif ($access) { return 'active'; Loading @@ -396,11 +391,7 @@ class StatutSaisieForm extends AbstractForm 'setter' => function (Statut $statut, $value, string $name) { $access = false; $visu = false; $edition = false; switch ($value) { case 'edition': $edition = true; case 'visualisation': $visu = true; case 'active': Loading @@ -408,8 +399,6 @@ class StatutSaisieForm extends AbstractForm } $statut->setModificationServiceDu($access); $statut->setModificationServiceDuVisualisation($visu); $statut->setModificationServiceDuEdition($edition); }, ], ], Loading