$template = ROOT . '/images/extranet/docs/';\r
\r
\r
- $this->euro = ' ' . chr(128);\r
+ $this->euro = chr(128);\r
\r
$this->pdf = new FPDI();\r
$this->pdf->SetAutoPageBreak(false);\r
$this->pdf->SetXY(170, $y);\r
$ligne['montant'] = trim($ligne['montant']);\r
if (is_numeric($ligne['montant'])) {\r
- $this->pdf->Cell(33, 4, cubePrices::formatAmount($ligne['montant'], $this->client->lang) . $this->euro, 0, 0, 'R');\r
+ $this->pdf->Cell(33, 4, cubePrices::formatAmount($ligne['montant'], $this->client->lang) .' '. $this->euro, 0, 0, 'R');\r
} else {\r
$this->pdf->Cell(33, 4, self::escape($ligne['montant']), 0, 0, 'R');\r
}\r
$this->pdf->SetXY(170, 218);\r
$space = 9.7;\r
}\r
- $this->pdf->Cell(32, $space, cubePrices::formatAmount($this->total_ht, $this->client->lang) . $this->euro, 0, 1, 'R');\r
+ $this->pdf->Cell(32, $space, cubePrices::formatAmount($this->total_ht, $this->client->lang) .' '. $this->euro, 0, 1, 'R');\r
$this->pdf->SetX(170);\r
$this->pdf->setFont('KlavikaLight', '', 10);\r
// Affichage du taux de tva et du montant des taxes\r
$this->pdf->Cell(32, $space, $tva_text, 0, 1, 'R');\r
$this->pdf->SetX(170);\r
if ($tva) {\r
- $this->pdf->Cell(32, $space, $taxes . $this->euro, 0, 1, 'R');\r
+ $this->pdf->Cell(32, $space, $taxes . ' '.$this->euro, 0, 1, 'R');\r
} else {\r
$this->pdf->Cell(32, $space, '-', 0, 1, 'R');\r
}\r
\r
$this->pdf->SetTextColor(255, 255, 255);\r
$this->pdf->setFont('KlavikaLight', 'B', 10);\r
- $this->pdf->Cell(32, $space + 1, $ttcf . $this->euro, 0, 1, 'R');\r
+ $this->pdf->Cell(32, $space + 1, $ttcf .' '. $this->euro, 0, 1, 'R');\r
\r
if (isset($notes)) {\r
$this->pdf->setXY(8, 268);\r
$pdf->SetXY(170, $y);\r
$ligne['montant'] = trim($ligne['montant']);\r
if (is_numeric($ligne['montant'])) {\r
- $pdf->Cell(33, 4, cubePrices::formatAmount($ligne['montant'], $this->client->lang) . $this->euro, 0, 0, 'R');\r
+ $pdf->Cell(33, 4, cubePrices::formatAmount($ligne['montant'], $this->client->lang) .' '. $this->euro, 0, 0, 'R');\r
} else {\r
$pdf->Cell(33, 4, self::escape($ligne['montant']), 0, 0, 'R');\r
}\r
}\r
}\r
\r
- $pages=max(count($cesures),$pages);\r
+ $pages = max(count($cesures), $pages);\r
\r
if (!isset($cesures[$pages - 1])) {\r
$cesures[$pages - 1] = $nb_lines - 1;\r
\r
protected function escape($str) {\r
$str = cubeText::removeOddStuff($str);\r
- return utf8_decode($str);\r
+ $str= utf8_decode($str);\r
+ $str = str_replace(utf8_decode('€'), $this->euro, $str);\r
+ return $str;\r
}\r
\r
abstract protected function documentTitre();\r