Commit d3cf5869 authored by Florian Joriot's avatar Florian Joriot
Browse files

Contrat multi composante sans structure : ajout left join

parent 6e1d168e
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for data/ddl/view/V_CONTRAT_MAIN.sql: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -112,12 +112,12 @@ FROM
            tbl_contrat        tc
       JOIN type_contrat      tyc ON tyc.id = tc.type_contrat_id -- à garder ou non ? attention au changement de type de contrat pour les projets...
       JOIN annee               a ON a.id = tc.annee_id
       JOIN structure           s ON s.id = tc.structure_id
       JOIN intervenant         i ON i.id = tc.intervenant_id
       JOIN statut             si ON si.id = i.statut_id
       JOIN taux_remu          tr ON tr.id = tc.taux_remu_id
       JOIN taux_remu         trm ON trm.id = tc.taux_remu_majore_id
       JOIN type_service       ts ON ts.id = tc.type_service_id
  LEFT JOIN structure           s ON s.id = tc.structure_id
  LEFT JOIN intervenant_dossier d ON d.intervenant_id = i.id AND d.histo_destruction IS NULL
  LEFT JOIN civilite          civ ON civ.id = COALESCE(d.civilite_id,i.civilite_id)
  LEFT JOIN pays                p ON p.id = COALESCE(d.pays_nationalite_id, i.pays_nationalite_id)