Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
63271084
Commit
63271084
authored
Apr 09, 2021
by
Laurent Lécluse
Browse files
Utilisation de tbl_paiement, raccordement au nouveau calcul aa/ac
parent
1205ba7b
Changes
7
Hide whitespace changes
Inline
Side-by-side
data/ddl/package/FORMULE_ARTOIS/body.sql
View file @
63271084
create
or
replace
PACKAGE
BODY
FORMULE_ARTOIS
AS
CREATE
OR
REPLACE
PACKAGE
BODY
FORMULE_ARTOIS
AS
decalageLigne
NUMERIC
DEFAULT
20
;
...
...
data/ddl/package/FORMULE_PARIS/body.sql
View file @
63271084
create
or
replace
PACKAGE
BODY
FORMULE_PARIS
AS
CREATE
OR
REPLACE
PACKAGE
BODY
FORMULE_PARIS
AS
decalageLigne
NUMERIC
DEFAULT
20
;
...
...
data/ddl/package/UNICAEN_TBL/body.sql
View file @
63271084
...
...
@@ -787,7 +787,6 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
/*@INTERVENANT_ID=i.id*/
/*@ANNEE_ID=i.annee_id*/
AND NOT (si.peut_avoir_contrat = 0 AND evh.code =
''
valide
''
)
)
SELECT
annee_id,
...
...
@@ -1182,14 +1181,18 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
COALESCE( ep.structure_id, i.structure_id ) structure_id,
mep.id mise_en_paiement_id,
mep.periode_paiement_id periode_paiement_id,
COALESCE(mep.domaine_fonctionnel_id, e.domaine_fonctionnel_id, to_number(p.valeur)) domaine_fonctionnel_id,
frs.heures_compl_fi + frs.heures_compl_fc + frs.heures_compl_fa + frs.heures_compl_fc_majorees heures_a_payer,
count(*) OVER(PARTITION BY frs.id) heures_a_payer_pond,
NVL(mep.heures,0) heures_demandees,
CASE WHEN mep.periode_paiement_id IS NULL THEN 0 ELSE mep.heures END heures_payees
CASE WHEN mep.periode_paiement_id IS NULL THEN 0 ELSE mep.heures END heures_payees,
4 / 10 pourc_exercice_aa,
6 / 10 pourc_exercice_ac
FROM
formule_resultat_service frs
JOIN type_volume_horaire tvh ON tvh.code =
''
REALISE
''
JOIN etat_volume_horaire evh ON evh.code =
''
valide
''
JOIN parametre p ON p.nom =
''
domaine_fonctionnel_ens_ext
''
JOIN formule_resultat fr ON fr.id = frs.formule_resultat_id
AND fr.type_volume_horaire_id = tvh.id
AND fr.etat_volume_horaire_id = evh.id
...
...
@@ -1197,6 +1200,7 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
JOIN intervenant i ON i.id = fr.intervenant_id /*@INTERVENANT_ID=i.id*/ /*@ANNEE_ID=a.annee_id*/
JOIN service s ON s.id = frs.service_id
LEFT JOIN element_pedagogique ep ON ep.id = s.element_pedagogique_id
LEFT JOIN etape e ON e.id = ep.etape_id
LEFT JOIN mise_en_paiement mep ON mep.formule_res_service_id = frs.id
AND mep.histo_destruction IS NULL
...
...
@@ -1209,13 +1213,16 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
null formule_res_service_id,
frs.id formule_res_service_ref_id,
i.id intervenant_id,
s.structure_id
structure_id,
s
r
.structure_id structure_id,
mep.id mise_en_paiement_id,
mep.periode_paiement_id periode_paiement_id,
COALESCE(mep.domaine_fonctionnel_id, fncr.domaine_fonctionnel_id) domaine_fonctionnel_id,
frs.heures_compl_referentiel heures_a_payer,
count(*) OVER(PARTITION BY frs.id) heures_a_payer_pond,
NVL(mep.heures,0) heures_demandees,
CASE WHEN mep.periode_paiement_id IS NULL THEN 0 ELSE mep.heures END heures_payees
CASE WHEN mep.periode_paiement_id IS NULL THEN 0 ELSE mep.heures END heures_payees,
4 / 10 pourc_exercice_aa,
6 / 10 pourc_exercice_ac
FROM
formule_resultat_service_ref frs
JOIN type_volume_horaire tvh ON tvh.code =
''
REALISE
''
...
...
@@ -1225,7 +1232,8 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
AND fr.etat_volume_horaire_id = evh.id
JOIN intervenant i ON i.id = fr.intervenant_id /*@INTERVENANT_ID=i.id*/ /*@ANNEE_ID=a.annee_id*/
JOIN service_referentiel s ON s.id = frs.service_referentiel_id
JOIN service_referentiel sr ON sr.id = frs.service_referentiel_id
JOIN fonction_referentiel fncr ON fncr.id = sr.fonction_id
LEFT JOIN mise_en_paiement mep ON mep.formule_res_service_ref_id = frs.id
AND mep.histo_destruction IS NULL'
;
...
...
@@ -1248,11 +1256,14 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
AND t.INTERVENANT_ID = v.INTERVENANT_ID
AND t.STRUCTURE_ID = v.STRUCTURE_ID
AND COALESCE(t.MISE_EN_PAIEMENT_ID,0) = COALESCE(v.MISE_EN_PAIEMENT_ID,0)
AND COALESCE(t.DOMAINE_FONCTIONNEL_ID,0) = COALESCE(v.DOMAINE_FONCTIONNEL_ID,0)
AND COALESCE(t.PERIODE_PAIEMENT_ID,0) = COALESCE(v.PERIODE_PAIEMENT_ID,0)
AND t.HEURES_A_PAYER = v.HEURES_A_PAYER
AND t.HEURES_A_PAYER_POND = v.HEURES_A_PAYER_POND
AND t.HEURES_DEMANDEES = v.HEURES_DEMANDEES
AND t.HEURES_PAYEES = v.HEURES_PAYEES
AND t.POURC_EXERCICE_AA = v.POURC_EXERCICE_AA
AND t.POURC_EXERCICE_AC = v.POURC_EXERCICE_AC
THEN -1 ELSE t.ID END ID,
v.ANNEE_ID,
v.SERVICE_ID,
...
...
@@ -1262,11 +1273,14 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
v.INTERVENANT_ID,
v.STRUCTURE_ID,
v.MISE_EN_PAIEMENT_ID,
v.DOMAINE_FONCTIONNEL_ID,
v.PERIODE_PAIEMENT_ID,
v.HEURES_A_PAYER,
v.HEURES_A_PAYER_POND,
v.HEURES_DEMANDEES,
v.HEURES_PAYEES
v.HEURES_PAYEES,
v.POURC_EXERCICE_AA,
v.POURC_EXERCICE_AC
FROM
('
||
QUERY_APPLY_PARAM
(
viewQuery
,
param
,
value
)
||
') v
FULL JOIN TBL_PAIEMENT t ON
...
...
data/ddl/table/TBL_PAIEMENT.php
View file @
63271084
...
...
@@ -21,7 +21,7 @@ return [
'position'
=>
2
,
'commentaire'
=>
NULL
,
],
'DOMAINE_FONCTIONNEL_ID'
=>
[
'DOMAINE_FONCTIONNEL_ID'
=>
[
'name'
=>
'DOMAINE_FONCTIONNEL_ID'
,
'type'
=>
'int'
,
'bdd-type'
=>
'NUMBER'
,
...
...
@@ -30,7 +30,7 @@ return [
'precision'
=>
NULL
,
'nullable'
=>
TRUE
,
'default'
=>
NULL
,
'position'
=>
1
0
,
'position'
=>
1
1
,
'commentaire'
=>
NULL
,
],
'FORMULE_RES_SERVICE_ID'
=>
[
...
...
@@ -66,7 +66,7 @@ return [
'precision'
=>
126
,
'nullable'
=>
FALSE
,
'default'
=>
'0'
,
'position'
=>
1
1
,
'position'
=>
1
2
,
'commentaire'
=>
'HETD à payer'
,
],
'HEURES_A_PAYER_POND'
=>
[
...
...
@@ -78,7 +78,7 @@ return [
'precision'
=>
126
,
'nullable'
=>
FALSE
,
'default'
=>
'0'
,
'position'
=>
1
2
,
'position'
=>
1
3
,
'commentaire'
=>
'HETD à payer (en %)'
,
],
'HEURES_DEMANDEES'
=>
[
...
...
@@ -90,7 +90,7 @@ return [
'precision'
=>
126
,
'nullable'
=>
FALSE
,
'default'
=>
'0'
,
'position'
=>
1
3
,
'position'
=>
1
4
,
'commentaire'
=>
'HETD demandées'
,
],
'HEURES_PAYEES'
=>
[
...
...
@@ -102,7 +102,7 @@ return [
'precision'
=>
126
,
'nullable'
=>
FALSE
,
'default'
=>
'0'
,
'position'
=>
1
4
,
'position'
=>
1
5
,
'commentaire'
=>
'HETD payées'
,
],
'ID'
=>
[
...
...
@@ -153,7 +153,7 @@ return [
'position'
=>
10
,
'commentaire'
=>
NULL
,
],
'POURC_EXERCICE_AA'
=>
[
'POURC_EXERCICE_AA'
=>
[
'name'
=>
'POURC_EXERCICE_AA'
,
'type'
=>
'float'
,
'bdd-type'
=>
'FLOAT'
,
...
...
@@ -162,10 +162,10 @@ return [
'precision'
=>
126
,
'nullable'
=>
FALSE
,
'default'
=>
'4/10'
,
'position'
=>
1
5
,
'position'
=>
1
6
,
'commentaire'
=>
NULL
,
],
'POURC_EXERCICE_AC'
=>
[
'POURC_EXERCICE_AC'
=>
[
'name'
=>
'POURC_EXERCICE_AC'
,
'type'
=>
'float'
,
'bdd-type'
=>
'FLOAT'
,
...
...
@@ -174,7 +174,7 @@ return [
'precision'
=>
126
,
'nullable'
=>
FALSE
,
'default'
=>
'6/10'
,
'position'
=>
1
6
,
'position'
=>
1
7
,
'commentaire'
=>
NULL
,
],
'SERVICE_ID'
=>
[
...
...
data/ddl/view/V_MEP_INTERVENANT_STRUCTURE.sql
deleted
100644 → 0
View file @
1205ba7b
CREATE
OR
REPLACE
FORCE
VIEW
V_MEP_INTERVENANT_STRUCTURE
AS
SELECT
rownum
id
,
t1
.
"MISE_EN_PAIEMENT_ID"
,
t1
.
"INTERVENANT_ID"
,
t1
.
"STRUCTURE_ID"
,
t1
.
periode_paiement_id
,
t1
.
domaine_fonctionnel_id
FROM
(
SELECT
mep
.
id
mise_en_paiement_id
,
fr
.
intervenant_id
intervenant_id
,
sr
.
structure_id
structure_id
,
mep
.
periode_paiement_id
periode_paiement_id
,
COALESCE
(
mep
.
domaine_fonctionnel_id
,
fr
.
domaine_fonctionnel_id
)
domaine_fonctionnel_id
FROM
formule_resultat
fr
JOIN
formule_resultat_service_ref
frsr
ON
frsr
.
formule_resultat_id
=
fr
.
id
JOIN
mise_en_paiement
mep
ON
mep
.
formule_res_service_ref_id
=
frsr
.
id
JOIN
centre_cout
cc
ON
cc
.
id
=
mep
.
centre_cout_id
JOIN
service_referentiel
sr
ON
sr
.
id
=
frsr
.
service_referentiel_id
JOIN
fonction_referentiel
fr
ON
fr
.
id
=
sr
.
fonction_id
UNION
ALL
SELECT
mep
.
id
mise_en_paiement_id
,
fr
.
intervenant_id
intervenant_id
,
COALESCE
(
ep
.
structure_id
,
i
.
structure_id
)
structure_id
,
mep
.
periode_paiement_id
periode_paiement_id
,
COALESCE
(
mep
.
domaine_fonctionnel_id
,
e
.
domaine_fonctionnel_id
,
to_number
((
SELECT
valeur
FROM
parametre
WHERE
nom
=
'domaine_fonctionnel_ens_ext'
))
)
domaine_fonctionnel_id
FROM
formule_resultat
fr
JOIN
intervenant
i
ON
i
.
id
=
fr
.
intervenant_id
JOIN
formule_resultat_service
frs
ON
frs
.
formule_resultat_id
=
fr
.
id
JOIN
mise_en_paiement
mep
ON
mep
.
formule_res_service_id
=
frs
.
id
JOIN
centre_cout
cc
ON
cc
.
id
=
mep
.
centre_cout_id
JOIN
service
s
ON
s
.
id
=
frs
.
service_id
LEFT
JOIN
element_pedagogique
ep
ON
ep
.
id
=
s
.
element_pedagogique_id
LEFT
JOIN
etape
e
ON
e
.
id
=
ep
.
etape_id
)
t1
\ No newline at end of file
data/ddl_columns_pos.php
View file @
63271084
...
...
@@ -1413,10 +1413,13 @@ return [
'STRUCTURE_ID'
,
'MISE_EN_PAIEMENT_ID'
,
'PERIODE_PAIEMENT_ID'
,
'DOMAINE_FONCTIONNEL_ID'
,
'HEURES_A_PAYER'
,
'HEURES_A_PAYER_POND'
,
'HEURES_DEMANDEES'
,
'HEURES_PAYEES'
,
'POURC_EXERCICE_AA'
,
'POURC_EXERCICE_AC'
,
],
'TBL_PIECE_JOINTE'
=>
[
'ID'
,
...
...
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.MiseEnPaiementIntervenantStructure.dcm.xml
View file @
63271084
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping
xmlns=
"http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"
>
<entity
name=
"Application\Entity\Db\MiseEnPaiementIntervenantStructure"
table=
"
V_MEP_INTERVENANT_STRUCTURE
"
read-only=
"true"
>
<entity
name=
"Application\Entity\Db\MiseEnPaiementIntervenantStructure"
table=
"
TBL_PAIEMENT
"
read-only=
"true"
>
<id
name=
"id"
type=
"integer"
column=
"ID"
></id>
<many-to-one
field=
"miseEnPaiement"
target-entity=
"Application\Entity\Db\MiseEnPaiement"
>
<join-columns>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment