Commit 2c88d9ef authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branch 'refs/heads/b23'

# Conflicts:
#	module/Contrat/config/module.config.php
parents a17a3fa0 72a45b55
Loading
Loading
Loading
Loading
+14
Changes for data/ddl/view/V_INDICATEUR_471.sql: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
CREATE OR REPLACE FORCE VIEW V_INDICATEUR_471 AS
SELECT DISTINCT
  c.intervenant_id,
  c.structure_id
FROM
  contrat                c
  JOIN tbl_workflow w ON w.intervenant_id = c.intervenant_id AND (w.structure_id = c.structure_id OR w.structure_id is NULL) AND w.etape_code = 'CONTRAT' AND w.atteignable = 1
  JOIN validation v ON v.id = c.validation_id AND v.histo_destruction IS NULL
  LEFT JOIN contrat_fichier cf ON cf.contrat_id = c.id
  LEFT JOIN fichier f ON f.id = cf.fichier_id AND f.histo_destruction IS NULL
WHERE
  c.histo_destruction IS NULL
  AND f.id IS NULL
  AND c.date_envoi_email IS NULL
 No newline at end of file
+10 −8
Changes for data/ddl/view/V_INTERVENANT_HISTORIQUE.sql: 10 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -485,9 +485,11 @@ UNION ALL
SELECT
   s.intervenant_id                                                                     		intervenant_id,
       '7 - Demande de mise en paiement'                                            			categorie,
       mep.heures || 'h ' || th.libelle_court                                           label,
       mep.histo_modification                                                                histo_date,
       mep.histo_modificateur_id                                                             histo_createur_id,
       CASE WHEN mep.heures < 1
       		THEN  REPLACE(TO_CHAR(mep.heures, 'FM0.00'),'.',',') || 'h ' || th.libelle_court
       		ELSE  mep.heures || 'h ' || th.libelle_court END                                    label,
       mep.histo_creation                                                             			histo_date,
       mep.histo_createur_id                                                             		histo_createur_id,
       u.display_name                                                        					histo_user,
       'glyphicon glyphicon-ok'                                              					icon,
       7                                														ordre
@@ -496,10 +498,10 @@ FROM
  JOIN formule_resultat_service frs ON frs.id = mep.formule_res_service_id
  JOIN service s ON s.id = frs.service_id
  JOIN type_heures th ON th.id = mep.type_heures_id
  JOIN utilisateur u ON u.id = mep.histo_modificateur_id
  JOIN utilisateur u ON u.id = mep.histo_createur_id
  LEFT JOIN periode p ON p.id = mep.periode_paiement_id
  WHERE
  mep.histo_destruction IS NULL AND mep.date_mise_en_paiement IS NULL
  mep.histo_destruction IS NULL


UNION ALL
@@ -507,7 +509,9 @@ UNION ALL
SELECT
   s.intervenant_id                                                                            intervenant_id,
       '8 - Mise en paiement'                                 								   categorie,
       mep.heures || 'h ' || th.libelle_court || CASE WHEN p.id IS NULL THEN '' ELSE ' (paiement en ' || p.libelle_court || ')' END                      label,
        CASE WHEN mep.heures < 1
       		THEN  REPLACE(TO_CHAR(mep.heures, 'FM0.00'),'.',',') || 'h ' || th.libelle_court || ' ' || (p.libelle_long)
       		ELSE  mep.heures || 'h ' || th.libelle_court || ' ' || (p.libelle_long) END          label,
       mep.histo_modification                                                                  histo_date,
       mep.histo_modificateur_id                                                               histo_createur_id,
       u.display_name                                                                          histo_user,
@@ -523,8 +527,6 @@ FROM
  WHERE
  mep.histo_destruction IS NULL AND mep.date_mise_en_paiement IS NOT NULL



)
SELECT rownum id,
       categorie,
+7
Changes for data/indicateurs.php: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -227,6 +227,13 @@ return [
                'route'             => 'intervenant/contrat',
                'irrecevables'      => false,
            ],
            471 => [
                'enabled'           => true,
                'libelle_singulier' => '%s contrat  n\'a pas été <i>envoyé par e-mail</i> à l\'intervenant',
                'libelle_pluriel'   => '%s contrats  n\'ont pas été <i>envoyés par e-mail</i> aux intervenants',
                'route'             => 'intervenant/contrat',
                'irrecevables'      => false,
            ],
            480 => [
                'enabled'           => true,
                'libelle_singulier' => '%s contrat n\'a pas de date de retour',
+5 −5
Changes for module/Application/src/Controller/DroitsController.php: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ class DroitsController extends AbstractController
            if ($form->isValid()) {
                try {
                    $this->getServiceRole()->save($role);
                    $this->doctrineCache->delete(RoleProvider::class . '/affectations');
                    $this->doctrineCache->delete(RoleProvider::class . '_affectations');
                    $form->get('id')->setValue($role->getId()); // transmet le nouvel ID
                } catch (\Exception $e) {
                    $errors[] = $this->translate($e);
@@ -115,7 +115,7 @@ class DroitsController extends AbstractController
        $title = "Suppression du rôle";
        $form  = $this->makeFormSupprimer(function () use ($role) {
            $this->getServiceRole()->delete($role);
            $this->doctrineCache->delete(RoleProvider::class . '/affectations');
            $this->doctrineCache->delete(RoleProvider::class . '_affectations');
            $this->getSessionContainer()->offsetUnset('privileges' . $this->getServiceContext()->getAnnee()->getId());
        });

@@ -164,7 +164,7 @@ class DroitsController extends AbstractController
                if ($role) $this->roleRemovePrivilege($role, $privilege);
            break;
        }
        $this->doctrineCache->delete(RoleProvider::class . '/affectations');
        $this->doctrineCache->delete(RoleProvider::class . '_affectations');

        return compact('role', 'privilege');
    }
@@ -250,7 +250,7 @@ class DroitsController extends AbstractController
                }
            }
        }
        $this->doctrineCache->delete(RoleProvider::class . '/affectations');
        $this->doctrineCache->delete(RoleProvider::class . '_affectations');

        return compact('form', 'title', 'errors');
    }
@@ -266,7 +266,7 @@ class DroitsController extends AbstractController
        $form = $this->makeFormSupprimer(function () use ($affectation) {
            $this->getServiceAffectation()->delete($affectation);
        });
        $this->doctrineCache->delete(RoleProvider::class . '/affectations');
        $this->doctrineCache->delete(RoleProvider::class . '_affectations');

        return compact('affectation', 'title', 'form');
    }
+1 −1
Changes for module/Application/src/Provider/Role/RoleProvider.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface
            r.histoDestruction IS NULL'
        )->setParameter('utilisateur', $utilisateur);
        $query->useResultCache(true);
        $query->setResultCacheId(__CLASS__ . '/affectations');
        $query->setResultCacheId(str_replace('\\', '_', __CLASS__) . '_affectations');


        $result          = $query->getResult();
Loading