Bonjour,
Je souhaite faire l’acquisition des CP d’ancienneté sur la paie de novembre.
pouvez vous me dire ce que je dois modifier dans ma fonction ?
Begin
// Conges Anciennete
Jours = 0
Mois = Emp.anciennete
Date1 = Date(01,01,2011)
//Date2 = Date(02,01,2012)
// BF08102013 cet avenant n'a jamais été agréé !
Date3 = Date(26,01,2026)
Do
//--------------------------------------------------------------------
If Bul.PeriodeTaux >= date3 And Avenantapplicable (date3) = True Then
DateEffet = Date3
If Bul.SortiCeMois = False then
if Mois >= 36 then Jours = 1
if Mois >= 60 then Jours = 2
if Mois >= 120 then Jours = 3
if Mois >= 180 then Jours = 4
if Mois >= 240 then Jours = 5
if Mois >= 360 then Jours = 6
if Mois >= 480 then Jours = 7
EndIf
Exit
Endif
//--------------------------------------------------------------------
//If Bul.PeriodeTaux >= date2 And Avenantapplicable (date2) = True Then
//DateEffet = Date2
//Jours = 0
//If Bul.SortiCeMois = False Then
//Mois = Emp.anciennete
//if Mois >= 60 then Jours = 1
//if Mois >= 120 then Jours = 3
//if Mois >= 180 then Jours = 4
//if Mois >= 240 then Jours = 5
//EndIf
//Exit
//Endif
//--------------------------------------------------------------------
//If Bul.PeriodeTaux >= date1 And Avenantapplicable (date1) = True Then
//DateEffet = Date1
//Jours = 0
//If Bul.SortiCeMois = False Then
//if Mois >= 60 then Jours = 1
//if Mois >= 120 then Jours = 2
//if Mois >= 180 then Jours = 3
//if Mois >= 240 then Jours = 5
//EndIf
/Exit
//Endif
//--------------------------------------------------------------------
Exit
Loop
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
End


