View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001938 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2010-06-23 17:19 | 2012-12-07 15:19 |
Reporter | Stefan_Werner | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | not fixable | ||
Product Version | 4.3.2 revision 27884 | ||||
Fixed in Version | 4.4.1 revision 28950 | ||||
Summary | 0001938: Rounding of calculated net delivery cost ist wrong | ||||
Description | enable : enter netprices for deliverycosts Settings => deliverycost 12,605€ In frontend deliverycost should be 15 € but there 15.01 is shown. | ||||
Tags | VAT | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
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) |