From a810392e30bad0064ae3749d7928281e8078cec5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 23 Aug 2005 22:23:47 +0000 Subject: [PATCH] Meilleur alignement --- .../includes/modules/facture/pdf_crabe.modules.php | 12 ++++++++---- .../modules/propale/pdf_propale_azur.modules.php | 10 +++++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index f481af883c2..9e6b92ad17a 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -813,10 +813,14 @@ class pdf_crabe extends ModelePDFFactures { $ligne.=($ligne?" - ":"").$langs->trans("VATIntraShort").": ".$conf->global->MAIN_INFO_TVAINTRA; } - $footy-=3; - $pdf->SetY(-$footy); - $pdf->MultiCell(200, 2, $ligne , 0, 'C'); - + + if ($ligne) + { + $footy-=3; + $pdf->SetXY(8,-$footy); + $pdf->MultiCell(200, 2, $ligne , 0, 'C', 0); + } + $pdf->SetXY(-20,-$footy); $pdf->MultiCell(10, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0); } diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 49d637d2355..9ea337984a0 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -734,10 +734,14 @@ class pdf_propale_azur extends ModelePDFPropales { $ligne.=($ligne?" - ":"").$langs->trans("VATIntraShort").": ".$conf->global->MAIN_INFO_TVAINTRA; } - $footy-=3; - $pdf->SetY(-$footy); - $pdf->MultiCell(200, 2, $ligne , 0, 'C'); + if ($ligne) + { + $footy-=3; + $pdf->SetxY(8,-$footy); + $pdf->MultiCell(200, 2, $ligne , 0, 'C'); + } + $pdf->SetXY(-20,-$footy); $pdf->MultiCell(10, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0); }