Update pdf_cornas.modules.php

This commit is contained in:
Frédéric FRANCE 2025-02-27 14:17:30 +01:00 committed by GitHub
parent 31cd3d7eb2
commit dbcfd2eadb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -559,7 +559,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
if ($pageposafter > $pageposbefore) { // There is a pagebreak
$pdf->rollbackTransaction(true);
$pageposafter = $pageposbefore;
$pdf->setPageOrientation('', 1, $heightforfooter); // The only function to edit the bottom margin of current page to set it.
$pdf->setPageOrientation('', true, $heightforfooter); // The only function to edit the bottom margin of current page to set it.
$this->printColDescContent($pdf, $curY, 'desc', $object, $i, $outputlangs, $hideref, $hidedesc, 1);
$pageposafter = $pdf->getPage();