View Issue Details

IDProjectCategoryView StatusLast Update
0000735OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:29
Reportermarco_steinhaeuser Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.0.1.0 revision 15990 
Summary0000735: Rounding issue when net prices are activated
DescriptionAdmin -> Master settings -> Core settings -> Settings -> Other settings -> activate "Product and Gift Wrapping prices entered/displayed in Admin are Net Prices".

Now try to insert a product with a gross price of 15,00 EUR. Entering a net price of 12.6049999 will come up with 14.99 EUR and 12.6050000 will come up with 15.01 EUR.
TagsProducts
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

dainius.bigelis

2009-03-23 15:37

reporter   ~0000608

Solution for such case would be - show the price in admin (only admin) with bigger precision, i.e. with 6 decimal numbers. So user will notify that the price is not the same in both cases (what's the reason).
Rounding the price to 2 decimal digits in admin and store such in DB may lead to further rounding problems when calculating discounts, VATs and so on.

dainius.bigelis

2009-03-23 16:40

reporter   ~0000609

Such case occurs because defined precision (defined next to currencies rate in Core Settings => Settings => Other settings). If in this case the precision would be set to 3 decimal digits, then price 12.6049999 would be rounded to 12.605, as well as 12.6050000. And brutto price for both would be equal (15.00 EUR).