Skip to main content
Répondu

Créer une case à cocher dans une fonction calcul


Forum|alt.badge.img

Bonjour,

 

Je n’arrive pas à insérer dans ma fonction calcul, la case à cocher via le questionnaire salarié. Cela me mette une erreur.

Voici ma question :

Et voici ma fonction calcul :

Begin
    
Jours = 0
AfficherCommentaire = True

Include("INIT-CPANCIENNETE")

If Bul.SortiCeMois = False Then
    Mois = Emp.anciennete
    if Mois >= 120 then Jours = 1
    if Mois >= 380 then Jours = 2
    

    if stockvar("CPANCIENNETE") <> 0 then Jours = stockvar("CPANCIENNETE")
    if stockvar("CPANCIENNETE") = -1 then Jours = 0

    If AfficherCommentaire = True Then
        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
EndIf

End

 

 

Merci d’avance pour votre aide,

Laure

Meilleure réponse par Laure BRAUEN

Problème résolu…

Begin

If sal.bool[2] = true then 

    Jours = 0
    AfficherCommentaire = True

Include("INIT-CPANCIENNETE")

If Bul.SortiCeMois = False Then
    Mois = Emp.anciennete
    if Mois >= 120 then Jours = 1
    if Mois >= 380 then Jours = 2
    

    if stockvar("CPANCIENNETE") <> 0 then Jours = stockvar("CPANCIENNETE")
    if stockvar("CPANCIENNETE") = -1 then Jours = 0

    If AfficherCommentaire = True Then
        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
EndIf

Endif

End

Afficher l'original
Ce sujet vous a-t-il aidé à trouver une réponse à votre question?

1 commentaire

Forum|alt.badge.img
  • Auteur
  • Apprenti
  • 9 commentaires
  • Réponse
  • 11 décembre 2024

Problème résolu…

Begin

If sal.bool[2] = true then 

    Jours = 0
    AfficherCommentaire = True

Include("INIT-CPANCIENNETE")

If Bul.SortiCeMois = False Then
    Mois = Emp.anciennete
    if Mois >= 120 then Jours = 1
    if Mois >= 380 then Jours = 2
    

    if stockvar("CPANCIENNETE") <> 0 then Jours = stockvar("CPANCIENNETE")
    if stockvar("CPANCIENNETE") = -1 then Jours = 0

    If AfficherCommentaire = True Then
        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
EndIf

Endif

End


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