Compare commits

...

2 Commits

Author SHA1 Message Date
409f0857de HOTFIX facture shown groupDetail 2025-09-05 01:10:11 +03:00
bdff3b0331 HOTFIX facture pdf group 2025-09-05 01:06:52 +03:00
2 changed files with 1299 additions and 986 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)