* fix CI

* fix
This commit is contained in:
Frédéric FRANCE 2025-09-20 15:57:39 +02:00 committed by GitHub
parent d3de333f54
commit d1572fc3ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -2691,12 +2691,13 @@ class pdf_octopus extends ModelePDFFactures
* @param Facture $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @param int $heightforqrinvoice Height for QR invoices
* @return int Return height of bottom margin including footer text
*/
protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0, $heightforqrinvoice = 0)
{
$showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0);
return pdf_pagefoot($pdf, $outputlangs, 'INVOICE_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark);
return pdf_pagefoot($pdf, $outputlangs, 'INVOICE_FREE_TEXT', $this->emetteur, $heightforqrinvoice + $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark);
}
/**

View file

@ -165,6 +165,7 @@ if (!defined('NOREQUIRESOC')) {
/*
* Create object $langs (must be before all other code)
*/
$langs = null;
if (!defined('NOREQUIRETRAN')) {
$langs = new Translate('', $conf); // Must be after reading conf
}