aboutsummaryrefslogtreecommitdiff
path: root/classes/offer.class.php
diff options
context:
space:
mode:
authorCamil Staps2015-02-15 10:20:29 +0100
committerCamil Staps2015-02-15 10:20:29 +0100
commit0f0614e3cb34c7eff198b9ee4913457a05ed30eb (patch)
treef52d747ca426fa404c828decabe3498de1594fb9 /classes/offer.class.php
parentSmall change for last commit (diff)
Workaround for the Euro sign
Diffstat (limited to 'classes/offer.class.php')
-rw-r--r--classes/offer.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/classes/offer.class.php b/classes/offer.class.php
index 6dedd09..d8e2692 100644
--- a/classes/offer.class.php
+++ b/classes/offer.class.php
@@ -530,9 +530,9 @@ class offer {
$pdf->MultiCell($width[0],6,$row[0],0,'L');
$newy = $pdf->getY();
$pdf->SetXY($x + $width[0], $y);
- $pdf->Cell($width[1],6,constants::invoice_valuta.number_format($row[1],2),'',0,'R');
+ $pdf->Cell($width[1],6,correspondence::valuta().number_format($row[1],2),'',0,'R');
$pdf->Cell($width[2],6,round($row[2],0) . '%','',0,'R');
- $pdf->Cell($width[3],6,constants::invoice_valuta.number_format($row[3],2),'',0,'R');
+ $pdf->Cell($width[3],6,correspondence::valuta().number_format($row[3],2),'',0,'R');
$pdf->Ln();
$pdf->SetY($newy);
$subtotal += $row[1];
@@ -553,13 +553,13 @@ class offer {
$pdf->SetFont('','B');
$pdf->Cell($width[1] + $width[2],7,$pdf->_('amount'));
$pdf->SetFont('','');
- $pdf->Cell($width[3],7,constants::invoice_valuta . $this->calculate(self::SUBTOTAL),'',0,'R');
+ $pdf->Cell($width[3],7,correspondence::valuta() . $this->calculate(self::SUBTOTAL),'',0,'R');
$pdf->Ln();
foreach ($btw as $p => $m) {
$pdf->Cell($width[0],7);
$pdf->Cell($width[1] + $width[2],7,$pdf->_('vat') . ' '.round($p,0).'%');
- $pdf->Cell($width[3],7,constants::invoice_valuta . number_format($m,2),'',0,'R');
+ $pdf->Cell($width[3],7,correspondence::valuta() . number_format($m,2),'',0,'R');
$pdf->Ln();
}
@@ -570,7 +570,7 @@ class offer {
$pdf->SetFont('','B');
$pdf->Cell($width[1] + $width[2],7,$pdf->_('total'));
$pdf->SetFont('','');
- $pdf->Cell($width[3],7,constants::invoice_valuta . $this->calculate(self::TOTAL),'T',0,'R');
+ $pdf->Cell($width[3],7,correspondence::valuta() . $this->calculate(self::TOTAL),'T',0,'R');
$pdf->Ln();
// Footer
@@ -607,7 +607,7 @@ class offer {
$pdf->Cell(17.5,5);
$pdf->Cell(40,5,$invoice_nr);
$pdf->Cell(17.5,5);
- $pdf->Cell(40,5,constants::invoice_valuta . $this->calculate(self::TOTAL));
+ $pdf->Cell(40,5,correspondence::valuta() . $this->calculate(self::TOTAL));
$pdf->SetY($oldY + 14);