summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2022-08-15 12:19:37 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2022-08-15 12:19:37 +0000
commit97c674d8215b56250a702fd7ee8d36016db00c5e (patch)
tree670c8e0713ff78842e52f14e3561e3e9650bf592
parentb4a1a6cc077efcd625b51e05888ee9d6a44e8635 (diff)
- Rechnungen Sammel
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8072 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_rechnungen/multi_invoice_pdf.phtml34
1 files changed, 30 insertions, 4 deletions
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');
}