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
5874164d
Commit
5874164d
authored
Mar 17, 2022
by
Laurent Lécluse
Browse files
#37737
(cherry picked from commit
d2bece31
)
parent
749f0737
Changes
1
Hide whitespace changes
Inline
Side-by-side
data/ddl/package/FORMULE_UPEC/body.sql
View file @
5874164d
...
...
@@ -207,11 +207,11 @@ CREATE OR REPLACE PACKAGE BODY "FORMULE_UPEC" AS
RETURN
1
;
ELSE
-- SI(SOMME(K26:K35)<=384;1;((384+((SOMME(K26:K35)-384)*(2/3)))/SOMME(K26:K35)))
IF
cell
(
'sTP'
)
<=
384
THEN
IF
cell
(
'sTP'
)
<=
i
.
heures_service_statutaire
THEN
RETURN
1
;
ELSE
--(384+((SOMME(K26:K35)-384)*(2/3)))/SOMME(K26:K35)
RETURN
(
384
+
((
cell
(
'sTP'
)
-
384
)
*
(
2
/
3
)))
/
cell
(
'sTP'
);
RETURN
(
i
.
heures_service_statutaire
+
((
cell
(
'sTP'
)
-
i
.
heures_service_statutaire
)
*
(
2
/
3
)))
/
cell
(
'sTP'
);
END
IF
;
END
IF
;
END
IF
;
...
...
@@ -239,11 +239,11 @@ CREATE OR REPLACE PACKAGE BODY "FORMULE_UPEC" AS
END
IF
;
ELSE
-- SI(SOMME(K26:K35)<=384;1;((384+((SOMME(K26:K35)-384)*(2/3)))/SOMME(K26:K35)))
IF
cell
(
'sTP'
)
<=
384
THEN
IF
cell
(
'sTP'
)
<=
i
.
heures_service_statutaire
THEN
RETURN
1
;
ELSE
--(384+((SOMME(K26:K35)-384)*(2/3)))/SOMME(K26:K35)
RETURN
(
384
+
((
cell
(
'sTP'
)
-
384
)
*
(
2
/
3
)))
/
cell
(
'sTP'
);
RETURN
(
i
.
heures_service_statutaire
+
((
cell
(
'sTP'
)
-
i
.
heures_service_statutaire
)
*
(
2
/
3
)))
/
cell
(
'sTP'
);
END
IF
;
END
IF
;
END
IF
;
...
...
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