Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irpp_mensuel_salarie > 0 pour ouvrière à 427 TND par mois #84

Closed
sandcha opened this issue Feb 2, 2019 · 1 comment
Closed

irpp_mensuel_salarie > 0 pour ouvrière à 427 TND par mois #84

sandcha opened this issue Feb 2, 2019 · 1 comment
Assignees

Comments

@sandcha
Copy link
Contributor

sandcha commented Feb 2, 2019

Afin de tester openjibaya, je tente de construire un test utilisant les variables dont a besoin openjibaya sur les données issues de la fiche de paie ouvrière.

Je m'attends à ce que ce test YAML passe :

- name: OpenJibaya sur cas ouvrière
  reforms: 
    - openfisca_tunisia.reforms.de_net_a_salaire_de_base.de_net_a_salaire_de_base
  period: 2016-02
  absolute_error_margin: 1
  input:
    salaire_net_a_payer: 427.040
    primes: 6.080 + 47.500
    
  output:
    irpp_mensuel_salarie: 0 # déduit de ouvriere_2016_02.yaml
    salaire_imposable: 427.040
    
    cotisations_salarie: -43.164 # cnss
    salaire_de_base: 416.624
    
    assiette_cotisations_sociales: 470.204 # brut

    # salaire_super_brut: 427.040 + 0 + 43.164 + 6.080 + 47.500 + cotisations_employeur

Les variables qui m'intéressent pour openjibaya sont donc les outputs.
Mais le test ne passe pas. J'obtiens différents KO en commençant par :

AssertionError: In test 'OpenJibaya sur cas ouvrière', in file '/Users/sch/Dev/github/tunisie/openfisca-tunisia/tests/reforms/test_salaire.yaml', irpp_mensuel_salarie@2016-02: [-45.468124] differs from 0.0 with an absolute margin [45.468124] > 1

Où est l'erreur ?
Serait-ce aussi lié au regime_securite_sociale de l'ouvrière ? 🤔

@benjello
Copy link
Member

benjello commented Feb 2, 2019

@sandcha : ouvre une PR avec le test et je regarde ASAP ie ce soir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants