Skip to main content
Répondu

Paramétrage avancé prime ancienneté


Bonjour,

Le client a une prime d’ancienneté spécifique. 

Le dossier était paramétrer en méthode moyenne pour le calcul des absences.

Le paramétrage de la prime était le suivant:

Begin
//FF le 26/09/2023, #1046238 
//FF le 26/10/2023, #1080527


//Calcul = False
//if Bul.Fonction = Fonction.CALCULNORMAL or Bul.Fonction = Fonction.CALCULVIRTUELBRUTFILLON then Calcul = true
//if Calcul = False then Return

BB = Bul.tauxhoraire * Bul.NbhmN
ii = 0
Do
    ii = ii + 1
    If ii > HMnombre() then Exit
    BB = BB + (Bul.tauxhoraire * HMCoeffv(ii) * HMnbh(ii))
Loop
BB = Round (BB , 2)

BB = BB + Bul.Maintien + stockvar("ICMan")

Mois = Emp.anciennete
Taux = 0

Select case bul.ccn
Case "B006" :
    If mois >= 36 then taux = 3
    If mois >= 48 then taux = 4
    If mois >= 60 then taux = 5
    If mois >= 72 then taux = 6
    If mois >= 84 then taux = 7
    If mois >= 96 then taux = 8
Default :
    If mois >= 36 then taux = 3
    If mois >= 48 then taux = 4
    If mois >= 60 then taux = 5
    If mois >= 72 then taux = 6
    If mois >= 84 then taux = 7
    If mois >= 96 then taux = 8
    If mois >= 108 then taux = 9
    If mois >= 120 then taux = 10
    If mois >= 132 then taux = 11
    If mois >= 144 then taux = 12
    If mois >= 156 then taux = 13
    If mois >= 168 then taux = 14
    If mois >= 180 then taux = 15
Endselect

If bul.nbhm = 0 then BB = 0

If taux > 0 and BB <> 0 then
    Methodecalcul = 1
    Bases = BB
    Tauxs = taux
    Exec ("GenereLprime")
Endif
End

 

Depuis le 1er janvier, le client a changé sa méthode de calcul d’absence en passant en méthode réelle.

Mais la prime se calcule toujours en fonction de la méthode moyenne.

Savez vous comment modifier le paramétrage de la prime pour qu’elle se calcule bien en fonction de la méthode moyenne ?

 

Merci d’avance

 

ok


Commenter