Skip to content

Commit

Permalink
correction du calcul de la colonne TVA sur l'export CSV
Browse files Browse the repository at this point in the history
Le calcul de la colonne TVA dans l'export CSV n'était pas bon,
on exportait rien dans cette colonne si on avait une TVA à 10% mais
pas de TVA à 20%.

On corrige donc cela.
  • Loading branch information
agallou committed Feb 13, 2024
1 parent ec400fd commit c9fda85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Afup/Comptabilite/Comptabilite.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function obtenirJournal($debitCredit = '',
$requete .= 'compta_categorie.categorie, ';
$requete .= 'compta_compte.nom_compte, ';
$requete .= '(COALESCE(compta.montant_ht_soumis_tva_0,0) + COALESCE(compta.montant_ht_soumis_tva_5_5,0) + COALESCE(compta.montant_ht_soumis_tva_10, 0) + COALESCE(compta.montant_ht_soumis_tva_20, 0)) as montant_ht, ';
$requete .= '((COALESCE(compta.montant_ht_soumis_tva_5_5, 0)*0.055) + (COALESCE(compta.montant_ht_soumis_tva_10, 0)*0.1) + (compta.montant_ht_soumis_tva_20*0.2)) as montant_tva, ';
$requete .= '((COALESCE(compta.montant_ht_soumis_tva_5_5, 0)*0.055) + (COALESCE(compta.montant_ht_soumis_tva_10, 0)*0.1) + (COALESCE(compta.montant_ht_soumis_tva_20, 0)*0.2)) as montant_tva, ';
$requete .= 'compta.montant_ht_soumis_tva_0 as montant_ht_0, ';
$requete .= 'compta.montant_ht_soumis_tva_5_5 as montant_ht_5_5, ';
$requete .= 'compta.montant_ht_soumis_tva_5_5*0.055 as montant_tva_5_5, ';
Expand Down

0 comments on commit c9fda85

Please sign in to comment.