Commit 5874164d authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

#37737


(cherry picked from commit d2bece31)
parent 749f0737
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment