Skip to content

Tiered pricing and quantity Increments do not work with decimal inventory #12914

@duffner

Description

@duffner

Preconditions

  1. Magento 2.2.2
  2. PHP 7.0
  3. MySQL 5.6

Steps to reproduce

Tiered Pricing Issue:

  1. Create Simple Product
  2. Set Inventory to 100
  3. Set "Qty Uses Decimals" in Advanced Inventory to "Yes"
  4. Set Base Price to 3.99
  5. Open Advanced Pricing tab
  6. Set a Tiered Price for Qty of .5 and price of 2.99
  7. Save

Quantity increment issue:

  1. Open Advanced Inventory
  2. Set "Enable Qty Increments" to "Yes"
  3. Set "Qty Increments" to ".5"
  4. Save

Expected result

  1. During each of the above scenarios, the product should save and allow tiered pricing and qty increments to work with decimal-based inventory

Actual result

  1. Product does not save, admin user is given error stating "Please enter a valid number"

screen shot 2017-12-28 at 8 57 43 pm

screen shot 2017-12-28 at 9 00 18 pm

This feature works as expected in Magento 1 EE, and is the basis for many of our customers who sell by .5, .25 lb increments but inventory by the 1lb of product. This prevents a customer from selling .25 lbs for $3.00 but selling 1lb for $10.00 as tiered pricing does not allow decimals. Additionally, since many customers sell in quantity increments under 1, a user should not be able to order .001 lbs as it's too little to measure.

Metadata

Metadata

Assignees

Labels

Issue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions