Merge branch 'hotfixes/hotfix-bdc' into releases/release-h2f

This commit is contained in:
Tiavina 2025-03-07 11:27:08 +03:00
commit dcbba5d335

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;