#1 (permalink)  
Alt 15.01.2009, 13:24
GTB GTB ist offline
xt:Commerce Support Kunde
 
Registriert seit: 15.07.2008
Beiträge: 26
Standard [SOLVED] Netto Summe auf Rechnung

Hi Leute,

da es hier viel diskutiert ist hier meine Lösung:


lt. Steuerberater muss ab einem Gesamtwert von € 150 die Nettosumme ausgewiesen werden, auch bei Endverbraucher!

Mein Versand läuft komplett über DPD, also kann ich von der verrechneten Portopauschale die MWST absetzen.

ich habe dazu folgendes geändert:

/includes/modules/order_total/ot_subtotal_no_tax.php

PHP-Code:
function process() {
      global 
$order$xtPrice;

      if (
$_SESSION['customers_status']['customers_status_show_price_tax'] == && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
        if (
$_SESSION['customers_status']['customers_status_ot_discount_flag'] == 1) {
          
$sub_total_price $order->info['subtotal'] - ($order->info['subtotal'] / 100 $_SESSION['customers_status']['customers_status_ot_discount']);
    } else {
      
$sub_total_price $order->info['subtotal'];
    }
        
$this->output[] = array('title' => $this->title ':',
                                
'text' => '<b>' $xtPrice->xtcFormat($sub_total_price+($xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true)), true).'</b>',
                                
'value' => $xtPrice->xtcFormat($sub_total_price+($xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true)), false));
      }
    } 
durch folgendes ersetzt:

PHP-Code:
function process() {
      global 
$order$xtPrice;

      if (
$_SESSION['customers_status']['customers_status_show_price_tax'] == && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
        if (
$_SESSION['customers_status']['customers_status_ot_discount_flag'] == 1) {
          
$sub_total_price $order->info['subtotal'] - ($order->info['subtotal'] / 100 $_SESSION['customers_status']['customers_status_ot_discount']);
    } else {
      
$sub_total_price $order->info['subtotal'] - ($order->info['subtotal'] / 100 $_SESSION['customers_status']['customers_status_ot_discount']);
      
//$sub_total_price = $order->info['subtotal'];
    
}
        
$this->output[] = array('title' => $this->title ':',
                                
'text' => '<b>' $xtPrice->xtcFormat($sub_total_price+($xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true)), true).'</b>',
                                
'value' => $xtPrice->xtcFormat($sub_total_price+($xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true)), false));
      }else{
    
//NEU Nettopreis anzeigen, auch wenn Brutto bei Kundengruppe
       
$sub_total_price $order->info['total']-$order->info['tax'];
    
        
$this->output[] = array('title' => $this->title ':',
                                
'text' => '<b>' $xtPrice->xtcFormat($sub_total_pricetrue).'</b>',
                                
'value' => $xtPrice->xtcFormat($sub_total_pricefalse));
      
//Ende NEU
    
}
    } 

Damit wird nun immer die Nettosumme in der Bestellübersicht, Bestellmail und Rechnungsdruck mit ausgewiesen.


ACHTUNG:

1. im Admin unter Zusammenfassung muss Summe, Netto aktiviert sein
2. funktioniert nur bei neuen Bestellungen!


keine Garantie, keine Haftung !


viel Spass damit


GTB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 14.01.2011, 10:49
Neuer Benutzer
 
Registriert seit: 27.08.2007
Beiträge: 14
Standard

Vielen Dank dafür.

Hat mir sehr geholfen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
netto, rechnung, summe

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Summe Netto Auf Rechnung forest Admininterface 20 13.07.2011 19:28
Alternative zu einem Iframe?! kaktus82 Template System 18 14.05.2008 08:35
Zusammenfassung: Netto Summe Taucht Nicht Auf mobbob Installation und Konfiguration 3 20.06.2007 18:31
Summe, Netto Zeigt Unnachvollziehbare Zahl tarta Shopbereich 5 02.08.2004 14:13


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:29 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand