View Issue Details

IDProjectCategoryView StatusLast Update
0006756OXID eShop B2B EditionB2B edition - subpublic2023-11-20 14:32
ReporterQA 
PrioritynormalSeveritycriticalReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version7.0.0 
Summary0006756: Shopping basket limit in scheduled orders module is rounded and can lead to non-execution of order
DescriptionWhile creating a scheduled order, values with commas can be written to the shopping basket limit inputfield.

Consequence: Values are rounded.

Background: Database field (b2bscheduledorders__B2BBUDGETMAX) is type integer

Problem: If basket amount is xx,yy with yy < 50 the limit is set to xx and the order won't be executed.

Steps To Reproduce- add article(s) to basket to get a total basket sum of xx,yy with yy < 50
- go to basket
- create scheduled order
- click save
Additional InformationRounding occurs in different ways:
1) basket value is xx,yy with yy < 50 and no manual input => rounds down
2) basket value is xx,yy with yy >= 50 and no manual input => rounds up
3) basket value is xx,yy with yy < 50 and manual input xx',yy' with xx' > xx => rounds down (always! yy' is not relevant)

Additional information to budgets: budget values in database b2bbudget__B2BDAYLIMIT etc. are type double, but also stores only whole numbers. Input xx,yy is always rounded down.
TagsNo tags attached.

Activities

QA

2017-12-20 12:47

administrator  

QA

2017-12-20 12:48

administrator  

Sven Brunk

2022-02-02 15:51

manager   ~0013732

The issue is the automatically stored value that reflects the current basket value, right? Not the fact that limits are stored as integer?

Sven Brunk

2022-02-02 15:57

manager   ~0013733

ceil should be used here