Gutscheinübermittlung fehlerhaft

Blaftuni

Aktives Mitglied
14. März 2007
11
0
Hallo,

wenn ein Kauf mit Kupon getätigt wird, wird der Betrag im Shop korrekt abgezogen und auch ein (-) davor gesetzt. Nach Übertragung in den Shop ist der Betrag aber dazuaddiert worden.
Ich habe so einen Fehler im xtc connector schon mal gelesen. Könnt Ihr das bitte hier auch mal überprüfen.

Gruß
Sven
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
299
Köln
Hi Sven,

dbeS/GetBestellungPos.php im Connector:
Ab Zeile 87:
Code:
					case 'ot_coupon':
						$tax_query = eS_execute_query("select configuration_value from configuration where configuration_key=\"MODULE_ORDER_TOTAL_COUPON_TAX_CLASS\"");
						$tax_class = mysql_fetch_object($tax_query);
						$steuersatz = get_tax($tax_class->configuration_value);
						$total_pos->value*=-1;
						if (!$allowTax)
						{
							$total_pos->value*=((100+$steuersatz)/100);
						}
						break;
ändern in
Code:
					case 'ot_coupon':
						$tax_query = eS_execute_query("select configuration_value from configuration where configuration_key=\"MODULE_ORDER_TOTAL_COUPON_TAX_CLASS\"");
						$tax_class = mysql_fetch_object($tax_query);
						$steuersatz = get_tax($tax_class->configuration_value);
						$total_pos->value*=1;
						if (!$allowTax)
						{
							$total_pos->value*=((100+$steuersatz)/100);
						}
						break;

Geändert hat sich also nur diese zele:
Code:
$total_pos->value*=1;
 

Blaftuni

Aktives Mitglied
14. März 2007
11
0
Mhhh dann hab ich wohl eine andere Version?

Code:
 case 'ot_coupon':
                                                $tax_query = eS_execute_query("select configuration_value from configuration where configuration_key=\"MODULE_ORDER_TOTAL_COUPON_TAX_CLASS\"");
                                                $tax_class = mysql_fetch_object($tax_query);
                                                if ($tax_class->configuration_value>0)
                                                        $steuersatz = get_tax($tax_class->configuration_value);
                                                break;
 

Thomas Lisson

Administrator
Mitarbeiter
24. März 2006
15.574
299
Köln
Ah OK, wir sind bei OSC, nicht XTC. Dann so:

Code:
					case 'ot_coupon':
						//$tax_query = eS_execute_query("select configuration_value from configuration where configuration_key=\"MODULE_ORDER_TOTAL_COUPON_TAX_CLASS\"");
						//$tax_class = mysql_fetch_object($tax_query);
						//if ($tax_class->configuration_value>0)
						//	$steuersatz = get_tax($tax_class->configuration_value);
						$steuersatz = $einstellungen->versandMwst;
						$total_pos->value*=-1;
						break;