View Issue Details

IDProjectCategoryView StatusLast Update
0005684OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2015-12-01 10:40
ReporterLukasSchelbert 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.7.6 / 5.0.6 
Target VersionFixed in Version 
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"
TagsVoucher
ThemeNot defined
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Activities

There are no notes attached to this issue.