# Version 1

#### VERIFIER QUE LES RUBRIQUES DE COTISATION SONT DANS LE GESTIONNAIRE DE REGIME

#### Modification des rubriques de la taxe d'apprentissage pour mettre en place la non exonération de cette cotisation

<section class="markdown-section" data-markdown-raw="&#xA;L’employeur est **exonéré de taxe d’apprentissage pour un mois donné** lorsque, **le mois précédent (M-1)**, les **deux** conditions suivantes sont remplies :" data-section-index="4" id="bkmrk-l%E2%80%99employeur-est%C2%A0exon" style="border-radius: 4px; line-height: 19.5px; margin: 6px 0px; position: relative; scroll-margin-bottom: 40px; scroll-margin-top: 40px; color: rgba(20, 20, 20, 0.92); font-family: 'Segoe WPC', 'Segoe UI', sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #fcfcfc; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">L’employeur est <span class="markdown-bold-text" style="font-weight: 600;">exonéré de taxe d’apprentissage pour un mois donné</span> lorsque, <span class="markdown-bold-text" style="font-weight: 600;">le mois précédent (M-1)</span>, les <span class="markdown-bold-text" style="font-weight: 600;">deux</span> conditions suivantes sont remplies :</section><section class="markdown-section" data-markdown-raw="&#xA;&#xA;1. **Emploi d’au moins un apprenti** (contrat d’apprentissage en cours).&#xA;2. **Masse salariale du mois ≤ 6 × SMIC mensuel**." data-section-index="5" id="bkmrk-emploi-d%E2%80%99au-moins-un" style="border-radius: 4px; line-height: 19.5px; margin: 6px 0px; position: relative; scroll-margin-bottom: 40px; scroll-margin-top: 40px; color: rgba(20, 20, 20, 0.92); font-family: 'Segoe WPC', 'Segoe UI', sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #fcfcfc; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">

1. <span class="markdown-bold-text" style="font-weight: 600;">Emploi d’au moins un apprenti</span> (contrat d’apprentissage en cours).

1. <span class="markdown-bold-text" style="font-weight: 600;">Masse salariale du mois ≤ 6 × SMIC mensuel</span>.

</section><section class="markdown-section" data-markdown-raw="&#xA;&#xA;- L’exonération est **mensuelle** : on regarde mois par mois (pas de calcul annuel pour ce critère).&#xA;- **Référence = mois précédent (M-1)**.  " data-section-index="6" id="bkmrk-l%E2%80%99exon%C3%A9ration-est%C2%A0me" style="border-radius: 4px; line-height: 19.5px; margin: 6px 0px; position: relative; scroll-margin-bottom: 40px; scroll-margin-top: 40px; color: rgba(20, 20, 20, 0.92); font-family: 'Segoe WPC', 'Segoe UI', sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #fcfcfc; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">

- L’exonération est <span class="markdown-bold-text" style="font-weight: 600;">mensuelle</span> : on regarde mois par mois (pas de calcul annuel pour ce critère).

- <span class="markdown-bold-text" style="font-weight: 600;">Référence = mois précédent (M-1)</span>.

</section><section class="markdown-section" data-markdown-raw="&#xA;  Exemple : si en mai vous avez au moins 1 apprenti et une masse salariale ≤ 6 SMIC, vous êtes exonéré de taxe d’apprentissage pour **juin**.&#xA;- **Pas de régularisation rétroactive** : les mois sans apprenti (ou au-dessus du seuil) ne donnent pas droit à un remboursement ou une déduction ultérieure si vous embauchez un apprenti plus tard dans l’année." data-section-index="7" id="bkmrk-exemple-%3A-si-en-mai-" style="border-radius: 4px; line-height: 19.5px; margin: 6px 0px; position: relative; scroll-margin-bottom: 40px; scroll-margin-top: 40px; color: rgba(20, 20, 20, 0.92); font-family: 'Segoe WPC', 'Segoe UI', sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #fcfcfc; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Exemple : si en mai vous avez au moins 1 apprenti et une masse salariale ≤ 6 SMIC, vous êtes exonéré de taxe d’apprentissage pour <span class="markdown-bold-text" style="font-weight: 600;">juin</span>. 

- <span class="markdown-bold-text" style="font-weight: 600;">Pas de régularisation rétroactive</span> : les mois sans apprenti (ou au-dessus du seuil) ne donnent pas droit à un remboursement ou une déduction ultérieure si vous embauchez un apprenti plus tard dans l’année.

</section>Rubrique TAP\_TAXE et TAP\_SOLDE

Les deux font référence à BC\_BRUTURSSAF

Il faut créer une autre base de cotisation afin savoir s'il faut l'appliquer ou pas

<span style="text-decoration: underline;">BC\_TAAXEAPP : Base taxe d'apprentissage</span>

Il nous faut deux paramètres

- Apprenti au mois M-1
- Masse salariale du mois &lt; 6 SMICMENSUEL

Le but est de récupérer ces valeurs à la génération DSN et de les stocker dans deux constantes générales afin de pouvoir les relire le mois suivant facilement

Nom des constantes

- NBAPPRENTI         : Lecture seule
- MASSESALARIALE : Lecture seule
- MASSESALARIALEAPP : Lecture seule
- EXOTAXEAPP : Si oui, déroge à la règle précédente. Doit être à non par défaut

Et dans la rubrique <span style="text-decoration: underline;">BC\_TAXEAPP </span>lire l'historique de ces constantes

Vérifier que les cotisations TAP\_TAXE et TAP\_SOLDE sont dans le gestionnaire de régime

Pour mars si la masse salariale est à zéro pas d'exo

<span style="text-decoration: underline;">BC\_TAAXEAPP : Base taxe d'apprentissage</span>

```
declarer (ASSIETTE)
affecter (ASSIETTE;
         si ((CONSTANTE(GENERAL.NBSALARIE0101)<11) et (CONSTANTE(GENERAL.NBSALARIE0101)<>0))
         alors (
               constantehis(GENERAL.MASSESALARIALE;CONSTANTE(GENERAL.MOIS_PAYE_1);CONSTANTE(GENERAL.ANNEE_PAYE_1))
               -constantehis(GENERAL.MASSESALARIALEAPP;CONSTANTE(GENERAL.MOIS_PAYE_1);CONSTANTE(GENERAL.ANNEE_PAYE_1))
               )
         sinon (
               constantehis(GENERAL.MASSESALARIALE;CONSTANTE(GENERAL.MOIS_PAYE_1);CONSTANTE(GENERAL.ANNEE_PAYE_1))
               )
         )
declarer (EXOTAP)
affecter (EXOTAP;
         si ((constantehis(GENERAL.NBAPPRENTI;CONSTANTE(GENERAL.MOIS_PAYE_1);CONSTANTE(GENERAL.ANNEE_PAYE_1))>0)
            et (:assiette<6*;CONSTANTE(GENERAL.MOIS_PAYE_1);CONSTANTE(GENERAL.ANNEE_PAYE_1)))
         alors (si ((CONSTANTE(CONTRAT.DSNINTITULE)=64) ou (CONSTANTE(CONTRAT.DSNINTITULE)=65))
                alors (0)
                sinon (1)
               )
         sinon (
               si (CONSTANTE(GENERAL.EXOTAXEAPP)=1)
               alors (1)
               sinon (0)
               )
         )
[BC_BRUT_URSAFF.MONTANT]*(1-:EXOTAP)
```

TAP\_TAXE : Taxe d'apprentissage

Base de cotisation BC\_TAXETAP

TAP\_SOLDE

Base de cotisation BC\_TAXETAP