View Issue Details

IDProjectCategoryView StatusLast Update
0001938OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2012-12-07 15:19
ReporterStefan_Werner Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionnot fixable 
Product Version4.3.2 revision 27884 
Fixed in Version4.4.1 revision 28950 
Summary0001938: Rounding of calculated net delivery cost ist wrong
Descriptionenable : enter netprices for deliverycosts

Settings => deliverycost 12,605€

In frontend deliverycost should be 15 € but there 15.01 is shown.
 
TagsVAT
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

arvydas_vapsva

2010-07-23 14:47

reporter   ~0003306

To get correct final prices we must do calculations on rounded values, so i think, everything is fine. Example:

1. Price in db is "12.605", so to get correct values when calculating, we round it to "12.61". When displaying price in front-end we use rounded value also (!);

2. When we calculate brutto price to get correct values we again must use rounded value, because values displayed in front-end may not match:
12.61 (displayed) * 1.19 ~= 15.01 (is OK)
12.605 (not rounded) * 1.19 ~= 15.00 (is not OK, because in front-end we display 12.61, so user may calculate it by hand (12.61 * 1.19) and get 15.01)