Magento2: Negative product qty with "-" is not valid in admin panel product page

Created on 26 Oct 2016  ·  11Comments  ·  Source: magento/magento2

Negative product qty with "-" is not valid even if "backorder" is enabled
https://drive.google.com/a/interiorwebdesign.com/file/d/0ByJDgAmB3zgAYk0tQmRhVnZWNms/view?usp=drivesdk

Preconditions

Magento version is 2.1.0
PHP 7
MySql 5.6

Steps to reproduce

  1. Open product in admin panel
  2. Set inventory "-8"
  3. try to save product

    Expected result

  4. Value with "-" should be valid

    Actual result

  5. Can't save the product because of not valid qty

Catalog Ready for Work bug report

Most helpful comment

@rganin Please reopen this issue. MAGETWO-57052 was related to ' Cannot import negative quantity' this issue hasn't todo anything with the import

All 11 comments

Additional note: While Magento appears to be able to track negative inventory counts and can even export this data as part of a comprehensive Product Data Export, but will error out when attempting to import these negative qty values (regardless of whether or not inventory tracking or backorder are enabled)

@HellgaM, thank you for the report. Internal ticket MAGETWO-60216.

Have recently experienced this issue with a client and it sure is a pain. Even setting backorder settings "Allow qty to below 0" which based purely on the language would lead you to believe a negative qty would be valid. Worth noting: setting allow qty decimals allows you to save with a negative qty but that feels hacky.

@odubovyk Do you have any updates for us? Or any kind of temporary workaround? Thanks

Issue is fixed in MAGETWO-57052 for 2.1.

Problem still exists in 2.1.6.

@rganin Please reopen this issue. MAGETWO-57052 was related to ' Cannot import negative quantity' this issue hasn't todo anything with the import

problem still exists with 2.1.7

@calvintwr look at this issue: https://github.com/magento/magento2/issues/9139
May be you can apply the commits by your self?

@rganin Please re-open.

I have found that this works as expected in 2.1.8.

Was this page helpful?
0 / 5 - 0 ratings