Fix: Bad position of VAT

This commit is contained in:
Laurent Destailleur 2010-12-22 11:53:06 +00:00
parent 3cf14c5dc6
commit ce046e0cbd
2 changed files with 7 additions and 7 deletions

View File

@ -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');
}

View File

@ -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');
}