﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1919	Fehler xtcPrice Kundenrabatt	anonymous	somebody	"Beim letzten großen Update wurde die Funktion xtcCheckDiscount() verändert und funktioniert jetzt nicht mehr wie gewohnt.
Statt den Kundenrabatt, auf den am Produkt hinterlegten, zu reduzieren, wird nur noch ein Rabatt gewährt wenn dieser kleiner ist als der am Produkt, nicht mal wenn sie gleich sind.
Das ist falsch, bitte wieder alte Funktion herstellen.
{{{
    if ($this->cStatus['customers_status_discount'] != '0.00') {
	    $discount_query = xtDBquery(""SELECT products_discount_allowed FROM "".TABLE_PRODUCTS."" WHERE products_id = '"".$pID.""'"");
	    $dData = xtc_db_fetch_array($discount_query, true);

	    $discount = $dData['products_discount_allowed'];
	    if ($this->cStatus['customers_status_discount'] < $discount) {
		    $discount = $this->cStatus['customers_status_discount'];
	    }
	    if ($discount == '0.00') {
		    return false;
	    }
	    return $discount;
    }
}}}"	Bug/Fehler	closed	hoch	modified-shop-2.0.6.0	Shop	2.0.5.1	duplicate				
