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
05a8109f
Commit
05a8109f
authored
5 months ago
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Corrections mineures vues sql
parent
a366c740
No related branches found
No related tags found
No related merge requests found
Pipeline
#35563
passed
5 months ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/ddl/view/V_EXPORT_PAIEMENT_INDEMNITES_SIHAM.sql
+5
-2
5 additions, 2 deletions
data/ddl/view/V_EXPORT_PAIEMENT_INDEMNITES_SIHAM.sql
data/ddl/view/V_EXPORT_SERVICE.sql
+2
-1
2 additions, 1 deletion
data/ddl/view/V_EXPORT_SERVICE.sql
with
7 additions
and
3 deletions
data/ddl/view/V_EXPORT_PAIEMENT_INDEMNITES_SIHAM.sql
+
5
−
2
View file @
05a8109f
...
@@ -36,7 +36,8 @@ SELECT
...
@@ -36,7 +36,8 @@ SELECT
'1'
code_origine
,
'1'
code_origine
,
i
.
id
intervenant_id
,
i
.
id
intervenant_id
,
i
.
nom_usuel
||
','
||
i
.
prenom
nom
,
i
.
nom_usuel
||
','
||
i
.
prenom
nom
,
t
.
prime_id
prime_id
t
.
prime_id
prime_id
,
t
.
date_declaration
date_declaration
FROM
FROM
(
(
SELECT
SELECT
...
@@ -50,7 +51,8 @@ FROM
...
@@ -50,7 +51,8 @@ FROM
SUM
(
hpm
.
total_paie
)
paie_mission
,
SUM
(
hpm
.
total_paie
)
paie_mission
,
SUM
(
hpm
.
total_heures_a_payer
)
total_heures_a_payer
,
SUM
(
hpm
.
total_heures_a_payer
)
total_heures_a_payer
,
SUM
(
hpm
.
total_heures_payees
)
total_heures_payees
,
SUM
(
hpm
.
total_heures_payees
)
total_heures_payees
,
SUM
(
round
(
hpm
.
total_paie
*
0
.
1
,
2
))
montant_prime
SUM
(
round
(
hpm
.
total_paie
*
0
.
1
,
2
))
montant_prime
,
MAX
(
f
.
histo_creation
)
date_declaration
FROM
FROM
mission_prime
mp
mission_prime
mp
JOIN
mission
m
ON
JOIN
mission
m
ON
...
@@ -68,6 +70,7 @@ FROM
...
@@ -68,6 +70,7 @@ FROM
JOIN
periode
p
ON
JOIN
periode
p
ON
p
.
ecart_mois
=
ROUND
(
MONTHS_BETWEEN
(
m
.
date_fin
,
a
.
date_debut
)
+
0
.
5
)
p
.
ecart_mois
=
ROUND
(
MONTHS_BETWEEN
(
m
.
date_fin
,
a
.
date_debut
)
+
0
.
5
)
AND
p
.
enseignement
=
0
AND
p
.
enseignement
=
0
JOIN
fichier
f
ON
f
.
id
=
mp
.
declaration_id
and
f
.
histo_destruction
IS
NULL
WHERE
WHERE
--Il faut impérativement une prime validée
--Il faut impérativement une prime validée
mp
.
declaration_id
IS
NOT
NULL
mp
.
declaration_id
IS
NOT
NULL
...
...
This diff is collapsed.
Click to expand it.
data/ddl/view/V_EXPORT_SERVICE.sql
+
2
−
1
View file @
05a8109f
...
@@ -115,7 +115,8 @@ SELECT
...
@@ -115,7 +115,8 @@ SELECT
0
heures
,
0
heures
,
vhr
.
heures
heures_ref
,
vhr
.
heures
heures_ref
,
0
heures_non_payees
,
CASE
WHEN
mnp
.
id
IS
NOT
NULL
THEN
1
ELSE
0
END
heures_non_payees
,
mnp
.
libelle_court
motif_non_paiement
,
mnp
.
libelle_court
motif_non_paiement
,
t
.
libelle_court
tag
,
t
.
libelle_court
tag
,
0
service_fi
,
0
service_fi
,
...
...
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