Skip to main content

Fonction calcul prime d'ancienneté


Bonjour,

 

J’ai une prime d’ancienneté dont la base est salaire de base - absences non rémunérées : comment faire dans la fonction calcul?  J’ai mis cela :

Begin

ForceTauxS = 0

Include("INIT-D01")

BB = Bul.SALAIREDEBASE

Tauxs = 0

If Emp.Anciennete > 36 then     Tauxs = 3
If Emp.Anciennete >= 48 then     Tauxs = 4
If Emp.Anciennete >= 60 then     Tauxs = 5
If Emp.Anciennete >= 72 then     Tauxs = 6
If Emp.Anciennete >= 84 then     Tauxs = 7
If Emp.Anciennete >= 96 then     Tauxs = 8
If Emp.Anciennete >= 108 then     Tauxs = 9
If Emp.Anciennete >= 120 then     Tauxs = 10
If Emp.Anciennete >= 132 then     Tauxs = 11
If Emp.Anciennete >= 144 then     Tauxs = 12
If Emp.Anciennete >= 156 then     Tauxs = 13
If Emp.Anciennete >= 168 then     Tauxs = 14
If Emp.Anciennete >= 180 then     Tauxs = 15
If Emp.Anciennete >= 192 then     Tauxs = 16
If Emp.Anciennete >= 204 then     Tauxs = 17
If Emp.Anciennete >= 216 then     Tauxs = 18
If Emp.Anciennete >= 228 then     Tauxs = 19
If Emp.Anciennete >= 240 then     Tauxs = 20

If ForceTauxS <> 0 Then TauxS = ForceTauxS

If Tauxs > 0 and BB <> 0 Then
    Bases = BB
    X = Bases * Tauxs / 100
    Call Stockevar("MajoAnniv", X)
    Exec("GenereLprime")
Endif

Include("DOMONLY_FIN-D01")
End

 

Merci d’avance de votre aide

0 commentaires

Soyez le premier à répondre!

Commenter


Gestion des cookies

Nous utilisons des cookies pour améliorer et personnaliser votre expérience. Si vous acceptez ou continuez de naviguer, vous acceptez règles relatives aux cookies. En savoir plus sur nos cookies

 
Paramètres de cookies