summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorkarl <noreply@maennchen1.de>2023-04-19 09:13:20 +0000
committerkarl <noreply@maennchen1.de>2023-04-19 09:13:20 +0000
commit2758ac53815597cdc0013647b3643ac701f0fabb (patch)
treec55be0174084578a369e52a58fa3e708d7119898 /views/mods
parentdac3af0cc638758a328fa358d1afef8aa957a697 (diff)
- wpsg_debug entfernt
- Produktfeatures Eingabefeld in Produkten hinzugefuegt -> bisher noch nicht mit im Template implementiert git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8274 0d5edaf7-2b12-4e95-93f4-047927463d4b
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);