From 5514e24058bddd95e2cc10e4da320d2dfa3ce331 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 21 Jan 2010 21:09:29 +0000 Subject: [PATCH] Fix: Date on PDF was wrong --- .../includes/modules/project/pdf/pdf_baleine.modules.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/modules/project/pdf/pdf_baleine.modules.php b/htdocs/includes/modules/project/pdf/pdf_baleine.modules.php index 5339b382477..19f4792f145 100644 --- a/htdocs/includes/modules/project/pdf/pdf_baleine.modules.php +++ b/htdocs/includes/modules/project/pdf/pdf_baleine.modules.php @@ -230,7 +230,7 @@ class pdf_baleine extends ModelePDFProjects // Quantity $pdf->SetXY ($this->posxqty, $curY); $pdf->MultiCell(30, 3, $object->lignes[$i]->qty_shipped, 0, 'R'); - + $nexY+=2; // Passe espace entre les lignes // Cherche nombre de lignes a venir pour savoir si place suffisante @@ -368,7 +368,10 @@ class pdf_baleine extends ModelePDFProjects $posy+=6; $pdf->SetXY(100,$posy); $pdf->SetTextColor(0,0,60); - $pdf->MultiCell(100, 4, $outputlangs->transnoentities("Date")." : " . dol_print_date($object->dateo,"%d %b %Y",false,$outputlangs,true), '', 'R'); + $pdf->MultiCell(100, 4, $outputlangs->transnoentities("DateStart")." : " . dol_print_date($object->date_start,'day',false,$outputlangs,true), '', 'R'); + $posy+=6; + $pdf->SetXY(100,$posy); + $pdf->MultiCell(100, 4, $outputlangs->transnoentities("DateEnd")." : " . dol_print_date($object->date_end,'day',false,$outputlangs,true), '', 'R'); $pdf->SetTextColor(0,0,60);