summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_rechnungen/invoice_pdf.phtml11
1 files changed, 6 insertions, 5 deletions
diff --git a/views/mods/mod_rechnungen/invoice_pdf.phtml b/views/mods/mod_rechnungen/invoice_pdf.phtml
index d11e6d6..6434ade 100644
--- a/views/mods/mod_rechnungen/invoice_pdf.phtml
+++ b/views/mods/mod_rechnungen/invoice_pdf.phtml
@@ -199,13 +199,13 @@
if ($bNoTax) {
- $discount_value = $this->view['basket']['arCalculation']['sum']['discount_netto'];
+ $discount_value = abs($this->view['basket']['arCalculation']['sum']['discount_netto']);
$shipping_cost = $this->view['basket']['arCalculation']['sum']['shipping_netto'];
$payment_cost = $this->view['basket']['arCalculation']['sum']['payment_netto'];
} else {
- $discount_value = $this->view['basket']['arCalculation']['sum']['discount_brutto'];
+ $discount_value = abs($this->view['basket']['arCalculation']['sum']['discount_brutto']);
$shipping_cost = $this->view['basket']['arCalculation']['sum']['shipping_brutto'];
$payment_cost = $this->view['basket']['arCalculation']['sum']['payment_brutto'];
@@ -451,7 +451,8 @@
} // produkte
- if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) {
+ if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher']))
+ {
foreach ($this->view['basket']['arCalculation']['voucher'] as $v) {
@@ -491,7 +492,7 @@
}
// Versandkosten
- if ( ($shipping_cost != '') && ($shipping_cost != 0) )
+ if ( ($shipping_cost != '') && ($shipping_cost != 0) )
{
$pdf->SetFont('Arial', '', 9);
@@ -742,7 +743,7 @@
// Rabatt
if ($discount_value > 0)
{
-
+
$offset += 5;
$pdf->Text($prod_left + 80, $prod_top + $offset, __("Rabatt", "wpsg"));
$pdf->setXY($prod_left + 140, $prod_top + $offset - 5);