summaryrefslogtreecommitdiff
path: root/views/mods/mod_rechnungen
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2023-05-05 11:06:39 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2023-05-05 11:06:39 +0000
commit8352f0594f5c6da5a1a7ca58b2ea490807768336 (patch)
tree3f53da0566e19a400da222d42479eb2fcfbea70c /views/mods/mod_rechnungen
parent8ee6278ddee7a0bbc8f0652b0626d4f170d78a3e (diff)
- Feature: Produktkombinationen für Varianten
- Feature: Productcodemanagement - Feature: Positionsnummer für Produktgruppen - Feature: Markierung wenn Produktgruppe aktiven Rabatt hat in Produktgruppenübersicht git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8280 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_rechnungen')
-rw-r--r--views/mods/mod_rechnungen/invoice_pdf.phtml6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/mods/mod_rechnungen/invoice_pdf.phtml b/views/mods/mod_rechnungen/invoice_pdf.phtml
index 6434ade..4f49dad 100644
--- a/views/mods/mod_rechnungen/invoice_pdf.phtml
+++ b/views/mods/mod_rechnungen/invoice_pdf.phtml
@@ -216,7 +216,9 @@
$bKopf = false; $pnr = 1; $offset = 0; $count = 0;
foreach ($this->view['basket']['arCalculation']['product'] as $p)
{
+
$product = wpsg_product::getInstance($p['product_id']);
+ if (($p['product_key']??'') !== '') $product->setProductKey($p['product_key']);
if (!$bKopf)
{
@@ -256,8 +258,8 @@
if ($this->get_option('wpsg_mod_rechnungen_anr') == '1') $pdf->Cell(10, 8, $product->getNr(), 0, 0, 'C');
else $pdf->Cell(10, 8, $pnr.".", 0, 0, 'C');
- if ($this->get_option('wpsg_rechnungen_pdetailname') == '1') $produkt_text = $this->getProductName($this->getProduktID($p['product_id']), true);
- else $produkt_text = $this->getProductName($this->getProduktID($p['product_id']), false);
+ if ($this->get_option('wpsg_rechnungen_pdetailname') == '1') $produkt_text = $product->getProductName(true);
+ else $produkt_text = $product->getProductName(false);
$produktBeschreibung = trim(strip_tags($product->getShortDescription()));