From e9cd93a5ba05b1f2b1216aba0fba86ac5977beaf Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 16 Sep 2016 14:27:47 +0000 Subject: - Lieferzeitanzeige korigiert - Produktattribute auf Rechnung und Lieferschein git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5765 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_deliverynote/deliverynote_pdf.phtml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'views/mods/mod_deliverynote/deliverynote_pdf.phtml') diff --git a/views/mods/mod_deliverynote/deliverynote_pdf.phtml b/views/mods/mod_deliverynote/deliverynote_pdf.phtml index 4bcf5c2..4905c8a 100644 --- a/views/mods/mod_deliverynote/deliverynote_pdf.phtml +++ b/views/mods/mod_deliverynote/deliverynote_pdf.phtml @@ -279,6 +279,23 @@ $height += $pBeschreibungHeight; + /** + * Produktattribute ? + */ + if ($this->get_option('wpsg_rechnungen_produktattribute') == '1') + { + + $attributeInfo = $this->callMod('wpsg_mod_produktattribute', 'getProductAttributeByProductId', array($this->getProduktId($p['id']))); + + foreach ($attributeInfo as $pa) + { + + $pa_text = $pa['name'].': '.$pa['value']; + $height += $pdf->wpsg_MultiCell($prod_left + 10, $prod_top + $height + $offset - 0.5, 5, $pa_text, 0, 'L', 0, $produkt_text_cell_width); + + } + } + /** * Variante ? */ -- cgit v1.2.3