summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-09-26 15:57:56 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-09-26 15:57:56 +0200
commit6f9c98815fe2d64909b66002842e255d110a288e (patch)
tree83e0dd161162f2b0fb07b4150b140262bfe74fd7 /views/mods
parent556be2b89143573e939f2e7a38acc1daac8aca6e (diff)
Rechnungen: MwSt.-Rundung, Sammelrechnung netto bei steuerfreien Bestellungen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_rechnungen/multi_invoice_pdf.phtml9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/mods/mod_rechnungen/multi_invoice_pdf.phtml b/views/mods/mod_rechnungen/multi_invoice_pdf.phtml
index b0c9344..a0f1b3a 100644
--- a/views/mods/mod_rechnungen/multi_invoice_pdf.phtml
+++ b/views/mods/mod_rechnungen/multi_invoice_pdf.phtml
@@ -514,20 +514,23 @@ $sum = $this->view['multi_data']['orders'][0]['sum'];
if ($bTaxCol) {
$pdf->setXY($prod_left + 97, $prod_top + $offset + $sum_multi_offset);
- $pdf->Cell(15, 8, (($bNoTax)?'0.00 %':wpsg_ff($arCalculation['tax'][$oOrderProduct->getTaxKey().'_'.$oOrder->getInvoiceCountry()->getId()]['tax_value'], '%')), 0, 0, 'C');
+ $pdf->Cell(15, 8, (($bNoTax)?'0.00 %':wpsg_ff($arCalculation['tax'][$oOrderProduct->getTaxKey().'_'.$oOrder->getInvoiceCountry()->getId()]['tax_value']??0, '%')), 0, 0, 'C');
}
$pdf->setXY($prod_left + 112, $prod_top + $offset + $sum_multi_offset);
$pdf->Cell(15, 8, $oOrderProduct->getAmount(), 0, 0, 'C');
- $preis = $oOrderProduct->getPrice(wpsg_ShopController::getShop()->getFrontendTaxview());
+ // Steuerfreie Bestellung: Nettopreise wie in der Einzelrechnung
+ $price_view = ((abs($arCalculation['sum']['brutto'] - $arCalculation['sum']['netto']) < 0.005)?WPSG_NETTO:wpsg_ShopController::getShop()->getFrontendTaxview());
+
+ $preis = round($oOrderProduct->getPrice($price_view), 2);
$pdf->setXY($prod_left + 127, $prod_top + $offset + $sum_multi_offset);
$pdf->Cell(25, 8, wpsg_ff($preis, $this->get_option('wpsg_currency')), 0, 0, 'R');
$pdf->setXY($prod_left + 152, $prod_top + $offset + $sum_multi_offset);
- $pdf->Cell(25, 8, wpsg_ff($oOrderProduct->getPriceSum(wpsg_ShopController::getShop()->getFrontendTaxview()), $this->get_option('wpsg_currency')), 0, 0, 'R');
+ $pdf->Cell(25, 8, wpsg_ff($preis * $oOrderProduct->getAmount(), $this->get_option('wpsg_currency')), 0, 0, 'R');
/**
* Produktbeschreibung anzeigen Ja/Nein