Fix $db not defined
This commit is contained in:
parent
b6c19e0f35
commit
997d6cca0a
@ -856,7 +856,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$invoice->fetch($obj->fk_facture_source);
|
$invoice->fetch($obj->fk_facture_source);
|
||||||
|
|
||||||
$pdf->SetXY($tab3_posx, $tab3_top+$y);
|
$pdf->SetXY($tab3_posx, $tab3_top+$y);
|
||||||
$pdf->MultiCell(20, 3, dol_print_date($db->jdate($obj->datef), 'day', false, $outputlangs, true), 0, 'L', 0);
|
$pdf->MultiCell(20, 3, dol_print_date($this->db->jdate($obj->datef), 'day', false, $outputlangs, true), 0, 'L', 0);
|
||||||
$pdf->SetXY($tab3_posx+21, $tab3_top+$y);
|
$pdf->SetXY($tab3_posx+21, $tab3_top+$y);
|
||||||
$pdf->MultiCell(20, 3, price(($conf->multicurrency->enabled && $object->multicurrency_tx != 1) ? $obj->multicurrency_amount_ttc : $obj->amount_ttc, 0, $outputlangs), 0, 'L', 0);
|
$pdf->MultiCell(20, 3, price(($conf->multicurrency->enabled && $object->multicurrency_tx != 1) ? $obj->multicurrency_amount_ttc : $obj->amount_ttc, 0, $outputlangs), 0, 'L', 0);
|
||||||
$pdf->SetXY($tab3_posx+40, $tab3_top+$y);
|
$pdf->SetXY($tab3_posx+40, $tab3_top+$y);
|
||||||
|
|||||||
@ -84,32 +84,32 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
* @var int page_largeur
|
* @var int page_largeur
|
||||||
*/
|
*/
|
||||||
public $page_largeur;
|
public $page_largeur;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int page_hauteur
|
* @var int page_hauteur
|
||||||
*/
|
*/
|
||||||
public $page_hauteur;
|
public $page_hauteur;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array format
|
* @var array format
|
||||||
*/
|
*/
|
||||||
public $format;
|
public $format;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int marge_gauche
|
* @var int marge_gauche
|
||||||
*/
|
*/
|
||||||
public $marge_gauche;
|
public $marge_gauche;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int marge_droite
|
* @var int marge_droite
|
||||||
*/
|
*/
|
||||||
public $marge_droite;
|
public $marge_droite;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int marge_haute
|
* @var int marge_haute
|
||||||
*/
|
*/
|
||||||
public $marge_haute;
|
public $marge_haute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int marge_basse
|
* @var int marge_basse
|
||||||
*/
|
*/
|
||||||
@ -959,7 +959,7 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
$invoice->fetch($obj->fk_facture_source);
|
$invoice->fetch($obj->fk_facture_source);
|
||||||
|
|
||||||
$pdf->SetXY($tab3_posx, $tab3_top+$y);
|
$pdf->SetXY($tab3_posx, $tab3_top+$y);
|
||||||
$pdf->MultiCell(20, 3, dol_print_date($db->jdate($obj->datef), 'day', false, $outputlangs, true), 0, 'L', 0);
|
$pdf->MultiCell(20, 3, dol_print_date($this->db->jdate($obj->datef), 'day', false, $outputlangs, true), 0, 'L', 0);
|
||||||
$pdf->SetXY($tab3_posx+21, $tab3_top+$y);
|
$pdf->SetXY($tab3_posx+21, $tab3_top+$y);
|
||||||
$pdf->MultiCell(20, 3, price(($conf->multicurrency->enabled && $object->multicurrency_tx != 1) ? $obj->multicurrency_amount_ttc : $obj->amount_ttc, 0, $outputlangs), 0, 'L', 0);
|
$pdf->MultiCell(20, 3, price(($conf->multicurrency->enabled && $object->multicurrency_tx != 1) ? $obj->multicurrency_amount_ttc : $obj->amount_ttc, 0, $outputlangs), 0, 'L', 0);
|
||||||
$pdf->SetXY($tab3_posx+40, $tab3_top+$y);
|
$pdf->SetXY($tab3_posx+40, $tab3_top+$y);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user