Commit b0ba14b3 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

MAJ états de sortie pour multi-structures

parent 2330b69d
Loading
Loading
Loading
Loading
+5
Changes for data/ddl/view/V_ETAT_PAIEMENT.sql: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ SELECT
  type_intervenant_id,
  statut_id,
  structure_id,
  structure_ids,
  periode_id,
  intervenant_id,
  centre_cout_id,
@@ -47,6 +48,7 @@ FROM
    SELECT
      periode_id,
      structure_id,
      structure_ids,
      type_intervenant_id,
      statut_id,
      intervenant_id,
@@ -83,6 +85,7 @@ FROM
      SELECT
        periode_id,
        structure_id,
        structure_ids,
        type_intervenant_id,
        statut_id,
        intervenant_id,
@@ -115,6 +118,7 @@ FROM
          CASE WHEN th.code = 'fc_majorees' THEN 1 ELSE 0 END                 is_fc_majoree,
          p.id                                                                periode_id,
          s.id                                                                structure_id,
          s.ids                                                               structure_ids,
          i.id                                                                intervenant_id,
          si.id                                                               statut_id,
          i.annee_id                                                          annee_id,
@@ -176,6 +180,7 @@ FROM
      GROUP BY
        periode_id,
        structure_id,
        structure_ids,
        type_intervenant_id,
        statut_id,
        intervenant_id,
+2
Changes for data/etats_sortie.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -294,7 +294,9 @@ return [
        'CSV_PARAMS'     => '{
    "ANNEE_ID"                  : { "visible": false },
    "TYPE_INTERVENANT_ID"       : { "visible": false },
    "STATUT_ID"                 : { "visible": false },
    "STRUCTURE_ID"              : { "visible": false },
    "STRUCTURE_IDS"             : { "visible": false },
    "PERIODE_ID"                : { "visible": false },
    "INTERVENANT_ID"            : { "visible": false },
    "CENTRE_COUT_ID"            : { "visible": false },
+1 −1
Changes for module/Application/src/Service/EtatSortieService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ class EtatSortieService extends AbstractEntityService
                        $line[$k] = (float)$v;
                        break;
                    case 'date':
                        $date = \DateTime::createFromFormat('Y-m-d H:i:s', $v);
                        $date = $v ? \DateTime::createFromFormat('Y-m-d H:i:s', $v) : null;
                        if ($date instanceof \DateTime) {
                            $format = isset($params[$k]['format']) ? $params[$k]['format'] : Constants::DATE_FORMAT;
                            $line[$k] = $date->format($format);
+1 −1
Changes for module/Paiement/src/Entity/MiseEnPaiementRecherche.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class MiseEnPaiementRecherche
            $filters['ANNEE_ID'] = $a->getId();
        }
        if ($s = $this->getStructure()) {
            $filters['STRUCTURE_ID'] = $s->getId();
            $filters['STRUCTURE_IDS'] = $s->idsFilter();
        }
        if ($p = $this->getPeriode()) {
            $filters['PERIODE_ID'] = $p->getId();