From bdd144af7bb53716c16501fbf53c0c1946061a7d Mon Sep 17 00:00:00 2001 From: Tiavina Date: Thu, 2 Jan 2025 20:01:14 +0300 Subject: [PATCH] fix invoice tva amount --- gestion/lib/Service/InvoicePdfHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index 971fd2f..918c78d 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -115,8 +115,8 @@ sera due sur présentation de justificatifs ( articles L.441-3 et L.441-6 du cod $totalHt = 0; $totalTtc = 0; + $tvaValue = $this->factureData["configuration"]->tva_default; foreach($this->factureData["products"] as $product){ - $tvaValue = $product['produit_vat']; $valueHt = $product['produit_price']; $valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt,$tvaValue); $totalHt+=$valueHt;