View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003432||OXID eShop (all versions)||1.02. Price calculations (discounts, coupons, additional costs etc.)||public||2011-12-13 15:31||2012-12-07 15:19|
|Product Version||4.5.5 revision 40299|
|Target Version||Fixed in Version||4.7.0_5.0.0_beta3|
|Summary||0003432: discount in netPriceMode wrong|
|Description||the function applyDiscount in class oxdiscount adds a new oDiscountPrice to the existing oPrice. The oDiscountPrice is always in bruttoMode, using wrong logic for rounding.|
Especially in the case of procentual discounts, its obvious: the function reads bruttoPrice from the oPrice (which is in nettoMode), using it to calc the rounded bruttoPrice of oDiscountPrice, which is then added to oPrice.
Instead the function has to check, if oPrice is in netMode, and if it is, it has to set the nettoprice of oDiscountPrice and read the nettoprice of oPrice, too.