From 59ba082a958f859fb0ef2aa0361943337169dc0e Mon Sep 17 00:00:00 2001 From: Tiavina Date: Fri, 7 Mar 2025 11:26:50 +0300 Subject: [PATCH] hotfix bdc FOURNISSEUR pagination --- gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;