Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sorties] Retrait des sorties non comptabilisées par l'ASP #414

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dbt/models/indexed/contrats_sorties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ left join {{ ref("stg_recrutements" ) }} as rcrt
where
emi.emi_sme_annee >= 2021
and (ctr.contrat_date_sortie_definitive is not null or rcrt.date_sortie_definitive is not null)
and ctr.contrat_motif_sortie_id is not null
4 changes: 3 additions & 1 deletion dbt/models/indexed/motif_sorties_salaries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ left join {{ ref("fluxIAE_RefMotifSort_v2") }} as rms
on emi.emi_motif_sortie_id = rms.rms_id
left join {{ ref("fluxIAE_RefCategorieSort_v2") }} as rcs
on rms.rcs_id = rcs.rcs_id
where rcs.rcs_libelle is not null
where
rcs.rcs_libelle is not null
and rcs.rcs_libelle != 'Retrait des sorties constatées'