Skip to content

Commit

Permalink
Merge pull request #1450 from afup/fix_tva_export
Browse files Browse the repository at this point in the history
correction du calcul de la colonne TVA sur l'export CSV
  • Loading branch information
agallou authored Feb 13, 2024
2 parents 92ee0ac + c9fda85 commit 424fd13
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 424fd13

Please sign in to comment.