diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-27 20:37:43 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-27 20:37:43 +0200 |
| commit | 440fd248204f8c6a7bb7425b451205b54270e786 (patch) | |
| tree | 3572aa64849e5f4c2bc2d2f84f70ed42156284e5 | |
| parent | ec8c871360f7c7cd3e62f7ab0c2d90d6fde15f00 (diff) | |
Rechnungskorrektur: Rabattzeile, Summe ohne doppelten Rabatt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | views/mods/mod_rechnungen/accounting_pdf.phtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/mods/mod_rechnungen/accounting_pdf.phtml b/views/mods/mod_rechnungen/accounting_pdf.phtml index 2d3d606..c663e4b 100644 --- a/views/mods/mod_rechnungen/accounting_pdf.phtml +++ b/views/mods/mod_rechnungen/accounting_pdf.phtml @@ -174,7 +174,7 @@ if ($bNoTax) {
- $discount_value = $this->view['basket']['arCalculation']['sum']['discount_netto'];
+ $discount_value = abs($this->view['basket']['arCalculation']['sum']['discount_netto']);
$shipping_cost = $this->view['basket']['arCalculation']['sum']['shipping_netto'];
$payment_cost = $this->view['basket']['arCalculation']['sum']['payment_netto'];
@@ -182,7 +182,7 @@ } else {
- $discount_value = $this->view['basket']['arCalculation']['sum']['discount_brutto'];
+ $discount_value = abs($this->view['basket']['arCalculation']['sum']['discount_brutto']);
$shipping_cost = $this->view['basket']['arCalculation']['sum']['shipping_brutto'];
$payment_cost = $this->view['basket']['arCalculation']['sum']['payment_brutto'];
@@ -659,7 +659,7 @@ $pdf->Text($prod_left, $prod_top + $offset, __("Es ergibt sich folgender Gesamtbetrag", "wpsg").':');
$pdf->Text($prod_left + 80, $prod_top + $offset, __("Summe", "wpsg"));
$pdf->setXY($prod_left + 140, $prod_top + $offset - 5);
- $pdf->Cell(37, 8, wpsg_ff($this->view['basket']['arCalculation']['sum']['brutto'] + $this->view['basket']['arCalculation']['sum']['discount_brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R');
+ $pdf->Cell(37, 8, wpsg_ff($this->view['basket']['arCalculation']['sum']['brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R');
//if ( !$bNoTax || ($arCalculation['sum']['topay_brutto'] != $arCalculation['sum']['brutto']) )
$offset += 5;
|
