diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index 117db42..b5a220e 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -125,7 +125,13 @@ class InvoicePdfHandler extends FPDF { $this->Cell(40, 7, $this->factureData['num'], 1, 0, 'C'); $this->Cell(40, 7, $factureDateEcheance, 1, 1, 'C'); - $this->Ln(8); + $this->Ln(4); + + $devisComment = ($this->factureData['devis_comment'] == "Commentaire" || $this->factureData['devis_comment'] == "" ? "" : $this->factureData['devis_comment']); + if($devisComment != ""){ + $this->SetFont('Arial', 'B', 9); + $this->Cell(0,5,"Bon de commande: ". $devisComment,0,1,'C'); + } } private function DrawArticlesTable(){ @@ -212,13 +218,6 @@ class InvoicePdfHandler extends FPDF { $this->SetY(210); $this->SetFont('Arial', '', 9); - $devisComment = ($this->factureData['devis_comment'] == "Commentaire" || $this->factureData['devis_comment'] == "" ? "" : $this->factureData['devis_comment']); - if($devisComment != ""){ - $this->SetFont('Arial', 'B', 9); - $this->Cell(0,5,"Bon de commande: ". $devisComment,0,1); - $this->Ln(3); - } - $this->SetFont('Arial', '', 9); $this->MultiCell(0,5,utf8_decode(html_entity_decode("Paiement à votre convenance par chèque à l'ordre de ". $this->factureData['configuration']->entreprise))); $this->MultiCell(0,5,utf8_decode(html_entity_decode("en indiquant le numéro de facture, ou par virement :")));