Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
5e2223da
Commit
5e2223da
authored
3 years ago
by
Laurent Lecluse
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git.unicaen.fr/open-source/OSE
parents
f6ca91a3
d8c2a1d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/ddl/view/V_EXPORT_PAIEMENT_WINPAIE.sql
+98
-113
98 additions, 113 deletions
data/ddl/view/V_EXPORT_PAIEMENT_WINPAIE.sql
module/Application/src/Controller/TypeFormationController.php
+2
-2
2 additions, 2 deletions
...le/Application/src/Controller/TypeFormationController.php
with
100 additions
and
115 deletions
data/ddl/view/V_EXPORT_PAIEMENT_WINPAIE.sql
+
98
−
113
View file @
5e2223da
CREATE
OR
REPLACE
FORCE
VIEW
V_EXPORT_PAIEMENT_WINPAIE
AS
SELECT
annee_id
,
CREATE
OR
REPLACE
FORCE
VIEW
V_EXPORT_PAIEMENT_WINPAIE
AS
SELECT
annee_id
,
type_intervenant_id
,
structure_id
,
periode_id
,
intervenant_id
,
insee
,
nom
,
'20'
carte
,
...
...
@@ -15,38 +14,35 @@ SELECT
'B'
mc
,
nbu
,
montant
,
libelle
||
' '
||
LPAD
(
TO_CHAR
(
FLOOR
(
nbu
)),
2
,
'00'
)
||
' H'
||
CASE
to_char
(
ROUND
(
nbu
-
FLOOR
(
nbu
),
2
)
*
100
,
'00'
)
WHEN
' 00'
THEN
''
ELSE
' '
||
LPAD
(
ROUND
(
nbu
-
FLOOR
(
nbu
),
2
)
*
100
,
2
,
'00'
)
END
libelle
FROM
(
SELECT
i
.
annee_id
annee_id
,
libelle
||
' '
||
lpad
(
to_char
(
floor
(
nbu
)),
2
,
'00'
)
||
' H'
||
CASE
to_char
(
round
(
nbu
-
floor
(
nbu
),
2
)
*
100
,
'00'
)
WHEN
' 00'
THEN
''
ELSE
' '
||
lpad
(
round
(
nbu
-
floor
(
nbu
),
2
)
*
100
,
2
,
'00'
)
END
libelle
FROM
(
SELECT
i
.
annee_id
annee_id
,
ti
.
id
type_intervenant_id
,
ti
.
code
type_intervenant_code
,
t2
.
structure_id
structure_id
,
t2
.
periode_paiement_id
periode_id
,
i
.
id
intervenant_id
,
CASE
WHEN
i
.
numero_insee
IS
NULL
THEN
'
''
'
ELSE
CASE
WHEN
i
.
numero_insee
IS
NULL
THEN
'
''
'
||
TRIM
(
d
.
numero_insee
)
ELSE
'
''
'
||
TRIM
(
i
.
numero_insee
)
END
insee
,
i
.
nom_usuel
||
','
||
i
.
prenom
nom
,
t2
.
code_origine
code_origine
,
CASE
WHEN
ind
<>
CEIL
(
t2
.
nbu
/
max_nbu
)
THEN
max_nbu
ELSE
t2
.
nbu
-
max_nbu
*
(
ind
-
1
)
END
nbu
,
CASE
WHEN
ind
<>
ceil
(
t2
.
nbu
/
max_nbu
)
THEN
max_nbu
ELSE
t2
.
nbu
-
max_nbu
*
(
ind
-
1
)
END
nbu
,
t2
.
nbu
tnbu
,
OSE_FORMULE
.
GET_TAUX_HORAIRE_HETD
(
NVL
(
t2
.
date_mise_en_paiement
,
SYSDATE
)
)
montant
,
ose_formule
.
get_taux_horaire_hetd
(
nvl
(
t2
.
date_mise_en_paiement
,
sysdate
))
montant
,
COALESCE
(
t2
.
unite_budgetaire
,
''
)
||
' '
||
to_char
(
i
.
annee_id
)
||
' '
||
to_char
(
i
.
annee_id
+
1
)
libelle
FROM
(
SELECT
structure_id
,
FROM
(
SELECT
structure_id
,
periode_paiement_id
,
intervenant_id
,
code_origine
,
ROUND
(
SUM
(
nbu
),
2
)
nbu
,
round
(
SUM
(
nbu
),
2
)
nbu
,
unite_budgetaire
,
date_mise_en_paiement
FROM
(
WITH
mep
AS
(
SELECT
FROM
(
WITH
mep
AS
(
SELECT
-- pour les filtres
mep
.
id
,
mis
.
structure_id
,
...
...
@@ -57,18 +53,15 @@ FROM (
mep
.
date_mise_en_paiement
,
mis
.
heures_aa
,
mis
.
heures_ac
FROM
tbl
_paiement
mis
JOIN
mise_en_paiement
mep
ON
mep
.
id
=
mis
.
mise_en_paiement_id
AND
mep
.
histo_destruction
IS
NULL
FROM
tbl_paiement
mis
JOIN
mise_en
_paiement
mep
ON
mep
.
id
=
mis
.
mise_en_paiement_id
AND
mep
.
histo_destruction
IS
NULL
JOIN
centre_cout
cc
ON
cc
.
id
=
mep
.
centre_cout_id
JOIN
type_heures
th
ON
th
.
id
=
mep
.
type_heures_id
WHERE
mep
.
date_mise_en_paiement
IS
NOT
NULL
WHERE
mep
.
date_mise_en_paiement
IS
NOT
NULL
AND
mep
.
periode_paiement_id
IS
NOT
NULL
AND
th
.
eligible_extraction_paie
=
1
)
SELECT
mep
.
id
,
AND
th
.
eligible_extraction_paie
=
1
)
SELECT
mep
.
id
,
mep
.
structure_id
,
mep
.
periode_paiement_id
,
mep
.
intervenant_id
,
...
...
@@ -76,15 +69,12 @@ FROM (
mep
.
heures_aa
nbu
,
mep
.
unite_budgetaire
,
mep
.
date_mise_en_paiement
FROM
mep
WHERE
mep
.
heures_aa
>
0
FROM
mep
WHERE
mep
.
heures_aa
>
0
UNION
ALL
SELECT
mep
.
id
,
SELECT
mep
.
id
,
mep
.
structure_id
,
mep
.
periode_paiement_id
,
mep
.
intervenant_id
,
...
...
@@ -92,24 +82,19 @@ FROM (
mep
.
heures_ac
nbu
,
mep
.
unite_budgetaire
,
mep
.
date_mise_en_paiement
FROM
mep
WHERE
mep
.
heures_ac
>
0
)
t1
GROUP
BY
structure_id
,
FROM
mep
WHERE
mep
.
heures_ac
>
0
)
t1
GROUP
BY
structure_id
,
periode_paiement_id
,
intervenant_id
,
code_origine
,
unite_budgetaire
,
date_mise_en_paiement
)
t2
JOIN
(
SELECT
level
ind
,
99
max_nbu
FROM
dual
CONNECT
BY
1
=
1
AND
LEVEL
<=
11
)
tnbu
ON
ceil
(
t2
.
nbu
/
max_nbu
)
>=
ind
date_mise_en_paiement
)
t2
JOIN
(
SELECT
level
ind
,
99
max_nbu
FROM
dual
CONNECT
BY
1
=
1
AND
LEVEL
<=
11
)
tnbu
ON
ceil
(
t2
.
nbu
/
max_nbu
)
>=
ind
JOIN
intervenant
i
ON
i
.
id
=
t2
.
intervenant_id
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
type_intervenant
ti
ON
ti
.
id
=
si
.
type_intervenant_id
JOIN
structure
s
ON
s
.
id
=
t2
.
structure_id
)
t3
ORDER
BY
annee_id
,
type_intervenant_id
,
structure_id
,
periode_id
,
nom
,
code_origine
,
nbu
DESC
\ No newline at end of file
JOIN
structure
s
ON
s
.
id
=
t2
.
structure_id
)
t3
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.
module/Application/src/Controller/TypeFormationController.php
+
2
−
2
View file @
5e2223da
...
...
@@ -114,8 +114,8 @@ class TypeFormationController extends AbstractController
public
function
supprimerGroupeAction
()
{
$typeformation
=
$this
->
getEvent
()
->
getParam
(
'groupeTypeFormation'
);
$this
->
getServiceGroupeTypeFormation
()
->
delete
(
$typeformation
,
tru
e
);
$
groupe
typeformation
=
$this
->
getEvent
()
->
getParam
(
'groupeTypeFormation'
);
$this
->
getServiceGroupeTypeFormation
()
->
delete
(
$
groupe
typeformation
,
fals
e
);
return
new
MessengerViewModel
();
}
...
...
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