Compare commits

..

No commits in common. "409f0857de24e8265ada308d7b0924f12fdedfdb" and "181c5d2e792a27bdaaaf970d0b45fc957bc8de32" have entirely different histories.

2 changed files with 986 additions and 1299 deletions

File diff suppressed because it is too large Load Diff

View File

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