View Issue Details

IDProjectCategoryView StatusLast Update
0006375OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2016-09-14 08:27
Reporterjustmike Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version4.9.7 / 5.2.7 
Summary0006375: Cumulation of discounts leads to wrong price calculation
DescriptionIf multiple discounts apply on one product the calculated discounted price is wrong.
Discount 1: 10%
Discount 2: 18%
should result in an overall discount of 28%. However, OXID calculates an overall discount of 26.2%
Steps To ReproduceThis one can be easily reproduced in the demo shop:
https://demoshop.oxid-esales.com/professional-edition

Kite Core GTS (Artnr 1208):
normal price: 879.-
Discount1: 10%
Discount2: 18%
should lead to discounted price of 632.88.- (minus 28%)
However, OXID calculates 648.7.- (minus 26.2%)
TagsNo tags attached.
Attached Files
Discount.JPG (47,288 bytes)   
Discount.JPG (47,288 bytes)   
ThemeAzure
BrowserAll
PHP Version5.6
Database Version5.5

Activities

QA

2016-04-14 15:23

administrator   ~0011533

If multiple discounts apply to one product the shop calculates the first discount on article price and then from the discounted price the secound discount.

Price Discount Calculation
879,00 € 10% 791,10 €
791,10 € 18% 648,70 € wrong calculation


Price Discount Calculation
879,00 € 10% 87,90 €
879,00 € 18% 158,22 €
        
                632,88 € right calculation

michael_keiluweit

2016-06-23 15:41

administrator   ~0011653

https://github.com/OXID-eSales/oxideshop_ce/pull/419

QA

2016-09-13 17:13

administrator   ~0011780

works as designed