Bonjour,
Il faudra dans ce cas passer par une fonction de calcul.
Voici un exemple:
Begin
Jours = 0
If Bul.SortiCeMois = False Then
if Emp.anciennete >= 60 then Jours = 1
if Emp.anciennete >= 120 then Jours = 2
if stockvar("CPANCIENNETE") <> 0 then Jours = stockvar("CPANCIENNETE")
if stockvar("CPANCIENNETE") = -1 then Jours = 0
if Jours <>0 then
Exec("Lprime_D02")
LigneNeutre = True
methodeCalcul = 99
Bases = Jours
Liblong = "Jours de congés ancienneté acquis"
Exec ("GenereLprime")
LigneNeutre = False
endif
EndIf
End
La fonction doit s’appeler CP-ANCIENNETE , vous pouvez tout simplement modifier les lignes rouges
Merci