hotfix bdc FOURNISSEUR pagination

This commit is contained in:
Tiavina 2025-03-07 11:26:50 +03:00
parent b7a44abe2e
commit 59ba082a95

View File

@ -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;