diff options
| -rw-r--r-- | views/mods/mod_rechnungen/multi_invoice_pdf.phtml | 34 |
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');
}
|
