Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
0a291fad
Commit
0a291fad
authored
May 19, 2022
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Finalisation vue pour préliquidation siham
parent
5d2143d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/ddl/view/V_EXPORT_PAIEMENT_SIHAM.sql
+17
-18
17 additions, 18 deletions
data/ddl/view/V_EXPORT_PAIEMENT_SIHAM.sql
with
17 additions
and
18 deletions
data/ddl/view/V_EXPORT_PAIEMENT_SIHAM.sql
+
17
−
18
View file @
0a291fad
CREATE
CREATE
OR
REPLACE
FORCE
VIEW
V_EXPORT_PAIEMENT_
WINPAIE
AS
OR
REPLACE
FORCE
VIEW
V_EXPORT_PAIEMENT_
SIHAM
AS
SELECT
'P'
type
,
SELECT
'P'
type
,
code_rh
matricule
,
code_rh
matricule
,
CASE
WHEN
type_intervenant_code
=
'P'
THEN
'0204'
ELSE
'2251'
END
retenue
,
CASE
WHEN
type_intervenant_code
=
'P'
THEN
'200204'
ELSE
'202251'
END
retenue
,
annee_id
'du_mois'
,
type_intervenant_id
,
ose_paiement
.
get_format_mois_du
()
du_mois
,
structure_id
,
'20'
||
ose_paiement
.
get_annee_extraction_paie
()
annee_de_paye
,
periode_id
,
ose_paiement
.
get_mois_extraction_paie
()
mois_de_paye
,
intervenant_id
,
'N'
tg_specifique
,
insee
,
'A definir'
dossier_de_paye
,
nom
,
'01/'
||
ose_paiement
.
get_mois_extraction_paie
()
||
'/20'
||
'20'
carte
,
ose_paiement
.
get_annee_extraction_paie
()
date_pecuniaire
,
code_origine
,
nbu
nombre_d_unites
,
'0'
sens
,
montant
montant
,
'B'
mc
,
nbu
,
montant
,
libelle
||
' '
||
lpad
(
to_char
(
floor
(
nbu
)),
2
,
'00'
)
||
' H'
||
libelle
||
' '
||
lpad
(
to_char
(
floor
(
nbu
)),
2
,
'00'
)
||
' H'
||
CASE
to_char
(
round
(
nbu
-
floor
(
nbu
),
2
)
*
100
,
'00'
)
CASE
to_char
(
round
(
nbu
-
floor
(
nbu
),
2
)
*
100
,
'00'
)
WHEN
' 00'
THEN
''
WHEN
' 00'
THEN
''
ELSE
' '
||
lpad
(
round
(
nbu
-
floor
(
nbu
),
2
)
*
100
,
2
,
'00'
)
END
libelle
ELSE
' '
||
lpad
(
round
(
nbu
-
floor
(
nbu
),
2
)
*
100
,
2
,
'00'
)
END
libelle
,
'B'
mode_de_calcul
,
code_origine
code_origine
FROM
(
SELECT
i
.
annee_id
annee_id
,
FROM
(
SELECT
i
.
annee_id
annee_id
,
ti
.
id
type_intervenant_id
,
ti
.
id
type_intervenant_id
,
ti
.
code
type_intervenant_code
,
ti
.
code
type_intervenant_code
,
...
@@ -95,9 +94,9 @@ FROM (SELECT i.annee_id
...
@@ -95,9 +94,9 @@ FROM (SELECT i.annee_id
JOIN
(
SELECT
level
ind
,
99
max_nbu
FROM
dual
CONNECT
BY
1
=
1
AND
LEVEL
<=
11
)
tnbu
JOIN
(
SELECT
level
ind
,
99
max_nbu
FROM
dual
CONNECT
BY
1
=
1
AND
LEVEL
<=
11
)
tnbu
ON
ceil
(
t2
.
nbu
/
max_nbu
)
>=
ind
ON
ceil
(
t2
.
nbu
/
max_nbu
)
>=
ind
JOIN
intervenant
i
ON
i
.
id
=
t2
.
intervenant_id
JOIN
intervenant
i
ON
i
.
id
=
t2
.
intervenant_id
JOIN
annee
a
ON
a
.
id
=
i
.
annee_id
LEFT
JOIN
intervenant_dossier
d
ON
i
.
id
=
d
.
intervenant_id
AND
d
.
histo_destruction
IS
NULL
LEFT
JOIN
intervenant_dossier
d
ON
i
.
id
=
d
.
intervenant_id
AND
d
.
histo_destruction
IS
NULL
JOIN
statut
si
ON
si
.
id
=
i
.
statut_id
JOIN
statut
si
ON
si
.
id
=
i
.
statut_id
JOIN
type_intervenant
ti
ON
ti
.
id
=
si
.
type_intervenant_id
JOIN
type_intervenant
ti
ON
ti
.
id
=
si
.
type_intervenant_id
JOIN
structure
s
ON
s
.
id
=
t2
.
structure_id
)
t3
JOIN
structure
s
ON
s
.
id
=
t2
.
structure_id
)
t3
WHERE
annee_id
=
2021
ORDER
BY
annee_id
,
type_intervenant_id
,
structure_id
,
periode_id
,
nom
,
code_origine
,
nbu
DESC
ORDER
BY
annee_id
,
type_intervenant_id
,
structure_id
,
periode_id
,
nom
,
code_origine
,
nbu
DESC
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment