From 97c674d8215b56250a702fd7ee8d36016db00c5e Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 15 Aug 2022 12:19:37 +0000 Subject: - Rechnungen Sammel git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8072 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_rechnungen/multi_invoice_pdf.phtml | 34 ++++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) (limited to 'views') diff --git a/views/mods/mod_rechnungen/multi_invoice_pdf.phtml b/views/mods/mod_rechnungen/multi_invoice_pdf.phtml index a5b3958..5fc0d76 100644 --- a/views/mods/mod_rechnungen/multi_invoice_pdf.phtml +++ b/views/mods/mod_rechnungen/multi_invoice_pdf.phtml @@ -612,7 +612,7 @@ $pdf->Cell( (($bTaxCol)?87:102), 8, _('Rabatt'), 1, 0, 'L'); $pdf->setXY($prod_left + 97, $prod_top + $offset + $sum_multi_offset); - $pdf->Cell(15, 8, _('Anteilig'), 1, 0, 'C'); + $pdf->Cell(15, 8, _('anteilig'), 1, 0, 'C'); $pdf->setXY($prod_left + 112, $prod_top + $offset + $sum_multi_offset); $pdf->Cell(15, 8, '1', 1, 0, 'C'); @@ -627,6 +627,32 @@ } + // Wertgutschein + foreach ($arCalculation['coupon'] as $c) { + + $pdf->SetFont('Arial', '', 9); + $pdf->setXY($prod_left, $prod_top + $offset + $sum_multi_offset); + $pdf->Cell(10, 8, $pnr.'.', 1, 0, 'C'); $pnr ++; + + $pdf->setXY($prod_left + 10, $prod_top + $offset + $sum_multi_offset); + $pdf->Cell( (($bTaxCol)?87:102), 8, _('Wertgutschein').' ('.$c['code'].')', 1, 0, 'L'); + + $pdf->setXY($prod_left + 97, $prod_top + $offset + $sum_multi_offset); + $pdf->Cell(15, 8, _('anteilig'), 1, 0, 'C'); + + $pdf->setXY($prod_left + 112, $prod_top + $offset + $sum_multi_offset); + $pdf->Cell(15, 8, $c['amount'], 1, 0, 'C'); + + $pdf->setXY($prod_left + 127, $prod_top + $offset + $sum_multi_offset); + $pdf->Cell(25, 8, wpsg_ff($c[$taxdisplay.'_single'], $this->get_option('wpsg_currency')), 1, 0, 'R'); + + $pdf->setXY($prod_left + 152, $prod_top + $offset + $sum_multi_offset); + $pdf->Cell(25, 8, wpsg_ff($c[$taxdisplay], $this->get_option('wpsg_currency')), 1, 0, 'R'); + + $offset += 8; + + } + // Gebühr if (wpsg_tf(wpsg_getStr($this->view['storno_fee'])) > 0) { @@ -670,19 +696,19 @@ $offset += 8; } - + // Bestellbetrag einer einzelnen Bestellung if ($bNoTax) { $pdf->Text($prod_left + 115, $prod_top + $offset + $sum_multi_offset + 6, __("Bestellbetrag (NETTO):", "wpsg")); $pdf->setXY($prod_left + 140, $prod_top + $offset + $sum_multi_offset + 1); - $pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['netto'], $this->get_option('wpsg_currency')), 0, 0, 'R'); + $pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['topay_netto'], $this->get_option('wpsg_currency')), 0, 0, 'R'); } else { $pdf->Text($prod_left + 115, $prod_top + $offset + $sum_multi_offset + 6, __("Bestellbetrag (BRUTTO):", "wpsg")); $pdf->setXY($prod_left + 140, $prod_top + $offset + $sum_multi_offset + 1); - $pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R'); + $pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['topay_brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R'); } -- cgit v1.2.3