HOTFIX facture pdf group

This commit is contained in:
Tolotsoa 2025-09-05 01:06:52 +03:00
parent 181c5d2e79
commit bdff3b0331
2 changed files with 1301 additions and 985 deletions

File diff suppressed because it is too large Load Diff

View File

@ -35,7 +35,6 @@ use OCA\Gestion\Helpers\PriceHelpers;
class InvoicePdfHandler extends FPDF
{
private $multipleFactureData = [];
private $factureData = [];
private $logo = null;
@ -51,7 +50,7 @@ class InvoicePdfHandler extends FPDF
public $interLigneHeader = 5;
public $hasTva = true;
function Header()
public function Header()
{
if ($this->logo != "nothing") {
$this->Image($this->logoPath . "logo.png", 4, 2, 50, 35);
@ -129,7 +128,7 @@ class InvoicePdfHandler extends FPDF
$this->factureData = $factureData;
$this->logo = $logo;
// Déterminer si la TVA est applicable
$this->hasTva = isset($factureData['tva']) ? $factureData['tva'] : true;
$this->hasTva = isset($factureData['is_tva']) ? $factureData['is_tva'] : true;
}
public function MutlipleInvoicePdfFactory(array $multipleInvoiceData, $logo = null)