Compare commits
No commits in common. "409f0857de24e8265ada308d7b0924f12fdedfdb" and "181c5d2e792a27bdaaaf970d0b45fc957bc8de32" have entirely different histories.
409f0857de
...
181c5d2e79
File diff suppressed because it is too large
Load Diff
@ -35,6 +35,7 @@ use OCA\Gestion\Helpers\PriceHelpers;
|
|||||||
|
|
||||||
class InvoicePdfHandler extends FPDF
|
class InvoicePdfHandler extends FPDF
|
||||||
{
|
{
|
||||||
|
|
||||||
private $multipleFactureData = [];
|
private $multipleFactureData = [];
|
||||||
private $factureData = [];
|
private $factureData = [];
|
||||||
private $logo = null;
|
private $logo = null;
|
||||||
@ -50,7 +51,7 @@ class InvoicePdfHandler extends FPDF
|
|||||||
public $interLigneHeader = 5;
|
public $interLigneHeader = 5;
|
||||||
public $hasTva = true;
|
public $hasTva = true;
|
||||||
|
|
||||||
public function Header()
|
function Header()
|
||||||
{
|
{
|
||||||
if ($this->logo != "nothing") {
|
if ($this->logo != "nothing") {
|
||||||
$this->Image($this->logoPath . "logo.png", 4, 2, 50, 35);
|
$this->Image($this->logoPath . "logo.png", 4, 2, 50, 35);
|
||||||
@ -128,7 +129,7 @@ class InvoicePdfHandler extends FPDF
|
|||||||
$this->factureData = $factureData;
|
$this->factureData = $factureData;
|
||||||
$this->logo = $logo;
|
$this->logo = $logo;
|
||||||
// Déterminer si la TVA est applicable
|
// 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)
|
public function MutlipleInvoicePdfFactory(array $multipleInvoiceData, $logo = null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user