View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005684 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2014-03-06 15:06 | 2023-11-24 14:24 |
Reporter | LukasSchelbert | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | 4.7.6 / 5.0.6 | ||||
Fixed in Version | 7.0.0 | ||||
Summary | 0005684: Voucher discount is rounded incorrectly | ||||
Description | The method "markAsUsed" on an oxVoucher-object stores the unrounded voucher discount to the oxvouchers-table. The field OXDISCOUNT (table oxvouchers, FLOAT(9,2)) rounds the voucher discount incorrectly (1.495 will be 1.50, but 11.495 will be 11.49). | ||||
Steps To Reproduce | 1) Arrange a basket with a basket total of "114.95" 2) Redeem a 10% voucher 3) Save order 4) Check DB: field OXVOUCHERDISCOUNT (oxorder) will be "11.5", field OXDISCOUNT (oxvouchers) will be "11.49" | ||||
Tags | Voucher | ||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||