View Issue Details

IDProjectCategoryView StatusLast Update
0005684OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2023-11-24 14:24
ReporterLukasSchelbert Assigned To 
Status resolvedResolutionunable to reproduce 
Product Version4.7.6 / 5.0.6 
Fixed in Version7.0.0 
Summary0005684: Voucher discount is rounded incorrectly
DescriptionThe 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 Reproduce1) 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"
ThemeNot defined
PHP VersionNot defined
Database VersionNot defined



2023-11-24 14:24

administrator   ~0015941

Not reproducible in version 7.0