#1 (permalink)  
Alt 15.01.2011, 15:55
Neuer Benutzer
 
Registriert seit: 15.01.2011
Beiträge: 1
Standard Netto summe

Hallo zusammen,

ich habe über google eine Formel gefunden damit auf Rechnungen die Netto summe ab 150 Euro angezeigt wird und zwar diese Formel:

function process() {
global $order, $xtPrice;

if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_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'];
}
$sub_total_price += $xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true);
$this->output[] = array(
'title' => $this->title . ':',
'text' => '<b>' . $xtPrice->xtcFormat($sub_total_price, true).'</b>',
'value' => $xtPrice->xtcFormat($sub_total_price, false));
} elseif ($_SESSION['customers_status']['customers_status_show_price_tax'] == 1 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0 && ($order->info['subtotal'] - $order->info['tax']) >= 150.0) {
if ($_SESSION['customers_status']['customers_status_ot_discount_flag'] == 1) {
$sub_total_price = $order->info['subtotal'] - $order->info['tax'];
$sub_total_price -= ($sub_total_price / 100 * $_SESSION['customers_status']['customers_status_ot_discount']);
} else {
$sub_total_price = $order->info['subtotal'] - $order->info['tax'];
}
$sub_total_price += $xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true);
$this->output[] = array(
'title' => $this->title . ':',
'text' => '<b>' . $xtPrice->xtcFormat($sub_total_price, true).'</b>',
'value' => $xtPrice->xtcFormat($sub_total_price, false));
}
}

dies klappt ab 150 Euro auch so wie es soll, nur nicht wenn ich manuell Rechnungen schreibe.

Dazu habe ich 2 Fragen:
1. Ich würde gerne die Netto summe ab den 1 Euro haben wollen damit alle Rechnungen gleich aussehen.
2. Ist es möglich das bei manueller Rechnungsstellung die Netto summe auch automatisch kommt.

Vielen Dank für eure Hilfe,

Gruß

Der Long
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
netto, 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
Netto gleich Brutto, Berechnung der Summe wird falsch ausgegeben. hawkai PHP & MysQL Forum 3 23.04.2010 06:51


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:39 Uhr.

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

xt:Commerce is a SafeCharge brand