1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| $this->pdf->Image ('../img/monImage.png', 0, 22, 210, 60, 'PNG');
//descriptif
$this->pdf->SetFont ('Arial', '', 7, "commande");
$this->pdf->SetFillColor (255, 255, 255);
$this->pdf->SetTextColor (0, 0, 0);
$this->pdf->SetXY (66.7, 33 + ($diff * $i));
$this->pdf->Multicell (95, 5, stripslashes(ucfirst($texte)), $bordure, 'L');
//tva
$this->pdf->SetFont ('Arial', '', 8, "commande");
$this->pdf->SetFillColor (255, 255, 255);
$this->pdf->SetTextColor (0, 0, 0);
$this->pdf->SetXY (68.2, 68.2 + ($diff * $i));//68.2
$this->pdf->Cell (21, 5.5, number_format($o->tva, 2, ",", " ")." %", $bordure, 0, 'C');
//ecotaxe
$this->pdf->SetFont ('Arial', '', 8, "commande");
$this->pdf->SetFillColor (255, 255, 255);
$this->pdf->SetTextColor(0, 0, 0);
$this->pdf->SetXY (89.9, 68.2 + ($diff * $i));
$this->pdf->Cell (21.9, 5.5, number_format($o->ecotaxe, (($o->ecotaxe==0)?2:4), ",", " ")." ", $bordure, 0, 'C'); |
Partager