From 5f149acfdd02eb196576a72ef892c21269aaded8 Mon Sep 17 00:00:00 2001 From: karl Date: Wed, 21 Dec 2022 10:56:11 +0000 Subject: - Bugfix: Rechnung - Gesamtpreis eines Produktes wurde mit Menge hochsummiert git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8178 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_rechnungen/invoice_pdf.phtml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/mods/mod_rechnungen/invoice_pdf.phtml b/views/mods/mod_rechnungen/invoice_pdf.phtml index 9409e87..7479eca 100644 --- a/views/mods/mod_rechnungen/invoice_pdf.phtml +++ b/views/mods/mod_rechnungen/invoice_pdf.phtml @@ -263,7 +263,7 @@ } - if ($this->get_option('wpsg_rechnungen_pdetailname' == '1')) { + if ($this->get_option('wpsg_rechnungen_pdetailname') == '1') { $produkt_text = $this->getProductName($this->getProduktID($p['product_id']), true); @@ -352,19 +352,19 @@ if ( ( wpsg_ShopController::get_option('wpsg_preisangaben') == WPSG_NETTO ) || $bNoTax ) { - $preis = $p['netto']; + $preis_single = $p['netto_calculated_single']; } else { - $preis = $p['brutto']; + $preis_single = $p['brutto_calculated_single']; } $pdf->setXY($prod_left + 127, $prod_top + $offset); - $pdf->Cell(25, 8, wpsg_ff($preis, $this->get_option('wpsg_currency')), 0, 0, 'R'); + $pdf->Cell(25, 8, wpsg_ff($preis_single, $this->get_option('wpsg_currency')), 0, 0, 'R'); $pdf->setXY($prod_left + 152, $prod_top + $offset); - $pdf->Cell(25, 8, wpsg_ff($preis * $p['amount'], $this->get_option('wpsg_currency')), 0, 0, 'R'); + $pdf->Cell(25, 8, wpsg_ff($preis_single * $p['amount'], $this->get_option('wpsg_currency')), 0, 0, 'R'); /** * Produktbeschreibung anzeigen Ja/Nein -- cgit v1.2.3