diff --git a/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php b/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php index df4ed95..ab6d982 100644 --- a/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php +++ b/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php @@ -193,7 +193,7 @@ class OrderPdfHandler extends FPDF { $totalTva += $tvaAmount; } $this->currentIndexPosition = $currentIndexPosition; - $this->initialIndexPosition += $this->currentIndexPosition; + $this->initialIndexPosition = $this->currentIndexPosition; $chargedOrderCount = $this->currentIndexPosition + 1; $articlesLeftToGet = sizeof($this->orderProducts) - $chargedOrderCount; $this->articlesCountToGet = ($articlesLeftToGet <= self::MAX_ARTICLES_PER_PAGE) ? $articlesLeftToGet + 1 : self::MAX_ARTICLES_PER_PAGE;