Projekt

Allgemein

Profil

GX-Bug #40022

Von Moritz Bunjes vor mehr als 9 Jahren aktualisiert

Wenn man einen Vorkasse Rabatt eingestellt hat und zusätzlich noch Rabatt auf die gesammte Bestellung in der Kundengruppe eingestellt hat, wird die Summe netto bei einer netto Bestellung mit ausgewiesener Mwst. falsch errechnet. 

 Um den Fehler zu korrigieren, müssen in der Datei `/includes/modules/order_total/ot_payment.php und /includes/modules/order_total/ot_subtotal_no_tax.php` folgende Zeilen angepasst werden: 

 `/includes/modules/order_total/ot_subtotal_no_tax.php:` 

       $sub_total_price = $order->info['subtotal'] - round($order->info['subtotal'] / 100 * $_SESSION['customers_status']['customers_status_ot_discount'], 2); 
       $sub_total_price = $sub_total_price + $order->info['deduction']; 
	 //$sub_total_price -= $order->info['deduction']; 

 `und in    /includes/modules/order_total/ot_payment.php:` 

 ~~~ 
  $order->info['deduction'] = $discount['sum']; 
  //$order->info['subtotal'] = $order->info['subtotal'] + $discount['sum']; 
  $order->info['total'] = $order->info['total'] + $discount['sum']; 
 ~~~ 

Zurück