diff --git a/sources/Afup/Comptabilite/Facture.php b/sources/Afup/Comptabilite/Facture.php index 8c4e09103..451f11297 100644 --- a/sources/Afup/Comptabilite/Facture.php +++ b/sources/Afup/Comptabilite/Facture.php @@ -438,7 +438,7 @@ function genererDevis($reference, $chemin = null) $x += 20; $pdf->SetXY($x, $y); $pdf->MultiCell(20, 5, utf8_decode($detail['tva'] . '%'), 'T', 'C', "C"); - $vatAmounts[$detail['tva']] = ($detail['tva'] / 100) * $montantTtc; + $vatAmounts[$detail['tva']] += ($detail['tva'] / 100) * $montantTtc; $montantTtc = $montantTtc * (1 + ($detail['tva'] / 100)); $x += 20; @@ -636,7 +636,7 @@ function genererFacture($reference, $chemin = null) $x += 20; $pdf->SetXY($x, $y); $pdf->MultiCell(20, 5, utf8_decode($detail['tva'] . '%'), 'T', 'C', "C"); - $vatAmounts[$detail['tva']] = ($detail['tva'] / 100) * $montantTtc; + $vatAmounts[$detail['tva']] += ($detail['tva'] / 100) * $montantTtc; $montantTtc = $montantTtc * (1 + ($detail['tva'] / 100)); }