From ff1fa7f5f4c538a9dda03aed45bb9770b554e805 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Dec 2010 23:51:30 +0000 Subject: [PATCH] Fix: Trad missing --- .../modules/livraison/pdf/pdf_sirocco.modules.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/includes/modules/livraison/pdf/pdf_sirocco.modules.php b/htdocs/includes/modules/livraison/pdf/pdf_sirocco.modules.php index fbb66ea3ef4..c6b2eaf2cba 100644 --- a/htdocs/includes/modules/livraison/pdf/pdf_sirocco.modules.php +++ b/htdocs/includes/modules/livraison/pdf/pdf_sirocco.modules.php @@ -333,6 +333,8 @@ class pdf_sirocco extends ModelePDFDeliveryOrder { global $langs,$conf,$mysoc; + $outputlangs->load("companies"); + pdf_pagehead($pdf,$outputlangs,$this->page_hauteur); $pdf->SetTextColor(0,0,60); @@ -430,12 +432,12 @@ class pdf_sirocco extends ModelePDFDeliveryOrder $result=$newobject->fetch($val[$i]); if ($result >= 0) { - $posy+=4; - $pdf->SetXY(102,$posy); - $pdf->SetFont('','',9); - $text=$newobject->ref; - if ($newobject->ref_client) $text.=' ('.$newobject->ref_client.')'; - $pdf->Text(11, 94, $outputlangs->transnoentities("RefOrder")." : ".$outputlangs->transnoentities($text), '', 'R'); + $posy=94; + $pdf->SetXY(11,$posy); + $pdf->SetFont('','',9); + $text=$newobject->ref; + if ($newobject->ref_client) $text.=' ('.$newobject->ref_client.')'; + $pdf->MultiCell(100, 4, $outputlangs->transnoentities("RefOrder")." : ".$outputlangs->transnoentities($text), '', 'R'); } } }