Skip to content

Commit

Permalink
Fix $db not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 5, 2019
1 parent b6c19e0 commit 997d6cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/modules/facture/doc/pdf_crabe.modules.php
Expand Up @@ -856,7 +856,7 @@ private function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heigh
$invoice->fetch($obj->fk_facture_source);

$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->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);
Expand Down
14 changes: 7 additions & 7 deletions htdocs/core/modules/facture/doc/pdf_sponge.modules.php
Expand Up @@ -84,32 +84,32 @@ class pdf_sponge extends ModelePDFFactures
* @var int page_largeur
*/
public $page_largeur;

/**
* @var int page_hauteur
*/
public $page_hauteur;

/**
* @var array format
*/
public $format;

/**
* @var int marge_gauche
*/
public $marge_gauche;

/**
* @var int marge_droite
*/
public $marge_droite;

/**
* @var int marge_haute
*/
public $marge_haute;

/**
* @var int marge_basse
*/
Expand Down Expand Up @@ -959,7 +959,7 @@ public function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs)
$invoice->fetch($obj->fk_facture_source);

$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->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);
Expand Down

0 comments on commit 997d6cc

Please sign in to comment.