From ce046e0cbd713e80aee297d7be14dc4032be6554 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Dec 2010 11:53:06 +0000 Subject: [PATCH] Fix: Bad position of VAT --- .../includes/modules/facture/pdf_crabe.modules.php | 2 +- .../modules/propale/pdf_propale_azur.modules.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index 411ae170562..f38c18f80f9 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -934,7 +934,7 @@ class pdf_crabe extends ModelePDFFactures if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) { $pdf->line($this->posxtva-1, $tab_top, $this->posxtva-1, $tab_top + $tab_height); - $pdf->SetXY ($this->posxtva-1, $tab_top+2); + $pdf->SetXY ($this->posxtva-1, $tab_top+1); $pdf->MultiCell($this->posxup-$this->posxtva-1,2, $outputlangs->transnoentities("VAT"),'','C'); } diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 56bbf16ba8a..eb71efd01ab 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -797,28 +797,28 @@ class pdf_propale_azur extends ModelePDFPropales $pdf->SetFont('','',9); - $pdf->SetXY ($this->posxdesc-1, $tab_top+2); + $pdf->SetXY ($this->posxdesc-1, $tab_top+1); $pdf->MultiCell(108,2, $outputlangs->transnoentities("Designation"),'','L'); if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) { $pdf->line($this->posxtva-1, $tab_top, $this->posxtva-1, $tab_top + $tab_height); - $pdf->SetXY ($this->posxtva-1, $tab_top+2); + $pdf->SetXY ($this->posxtva-1, $tab_top+1); $pdf->MultiCell($this->posxup-$this->posxtva-1,2, $outputlangs->transnoentities("VAT"),'','C'); } $pdf->line($this->posxup-1, $tab_top, $this->posxup-1, $tab_top + $tab_height); - $pdf->SetXY ($this->posxup-1, $tab_top+2); + $pdf->SetXY ($this->posxup-1, $tab_top+1); $pdf->MultiCell(20,2, $outputlangs->transnoentities("PriceUHT"),'','C'); $pdf->line($this->posxqty-1, $tab_top, $this->posxqty-1, $tab_top + $tab_height); - $pdf->SetXY ($this->posxqty-1, $tab_top+2); + $pdf->SetXY ($this->posxqty-1, $tab_top+1); $pdf->MultiCell($this->posxdiscount-$this->posxqty-1,2, $outputlangs->transnoentities("Qty"),'','C'); $pdf->line($this->posxdiscount-1, $tab_top, $this->posxdiscount-1, $tab_top + $tab_height); if ($this->atleastonediscount) { - $pdf->SetXY ($this->posxdiscount-1, $tab_top+2); + $pdf->SetXY ($this->posxdiscount-1, $tab_top+1); $pdf->MultiCell(14,2, $outputlangs->transnoentities("ReductionShort"),'','C'); } @@ -826,7 +826,7 @@ class pdf_propale_azur extends ModelePDFPropales { $pdf->line($this->postotalht, $tab_top, $this->postotalht, $tab_top + $tab_height); } - $pdf->SetXY ($this->postotalht-1, $tab_top+2); + $pdf->SetXY ($this->postotalht-1, $tab_top+1); $pdf->MultiCell(28,2, $outputlangs->transnoentities("TotalHT"),'','C'); }