diff options
| author | karl <noreply@maennchen1.de> | 2022-12-21 10:56:11 +0000 |
|---|---|---|
| committer | karl <noreply@maennchen1.de> | 2022-12-21 10:56:11 +0000 |
| commit | 5f149acfdd02eb196576a72ef892c21269aaded8 (patch) | |
| tree | 54a3a1acebb71137a6d9dba9f2f22fb5bd7a15e4 | |
| parent | c93a14153f45da61162a68dc5d7c11a7e06c4668 (diff) | |
- Bugfix: Rechnung - Gesamtpreis eines Produktes wurde mit Menge hochsummiert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8178 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mods/mod_rechnungen/invoice_pdf.phtml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/mods/mod_rechnungen/invoice_pdf.phtml b/views/mods/mod_rechnungen/invoice_pdf.phtml index 9409e87..7479eca 100644 --- a/views/mods/mod_rechnungen/invoice_pdf.phtml +++ b/views/mods/mod_rechnungen/invoice_pdf.phtml @@ -263,7 +263,7 @@ }
- if ($this->get_option('wpsg_rechnungen_pdetailname' == '1')) {
+ if ($this->get_option('wpsg_rechnungen_pdetailname') == '1') {
$produkt_text = $this->getProductName($this->getProduktID($p['product_id']), true);
@@ -352,19 +352,19 @@ if ( ( wpsg_ShopController::get_option('wpsg_preisangaben') == WPSG_NETTO ) || $bNoTax ) {
- $preis = $p['netto'];
+ $preis_single = $p['netto_calculated_single'];
} else {
- $preis = $p['brutto'];
+ $preis_single = $p['brutto_calculated_single'];
}
$pdf->setXY($prod_left + 127, $prod_top + $offset);
- $pdf->Cell(25, 8, wpsg_ff($preis, $this->get_option('wpsg_currency')), 0, 0, 'R');
+ $pdf->Cell(25, 8, wpsg_ff($preis_single, $this->get_option('wpsg_currency')), 0, 0, 'R');
$pdf->setXY($prod_left + 152, $prod_top + $offset);
- $pdf->Cell(25, 8, wpsg_ff($preis * $p['amount'], $this->get_option('wpsg_currency')), 0, 0, 'R');
+ $pdf->Cell(25, 8, wpsg_ff($preis_single * $p['amount'], $this->get_option('wpsg_currency')), 0, 0, 'R');
/**
* Produktbeschreibung anzeigen Ja/Nein
|
