magento / meta-for-magento2

33 stars 19 forks source link

Allow decimal stock qty in feed builder #7

Open shamoon opened 12 months ago

shamoon commented 12 months ago

Description (*)

If a store uses stock quantities that aren't ints the feed upload fails with e.g.

main.CRITICAL: Exception: Deprecated Functionality: Implicit conversion from float 9918.5 to int loses precision in .../vendor/meta/module-catalog/Model/Product/Feed/Builder/MultiSourceInventory.php on line 158 in .../vendor/magento/framework/App/ErrorHandler.php:61

Story

Bug

Task

Fixed Issues (if relevant)

  1. magento-commerce/facebook-for-magento2#: Issue title

Manual testing scenarios (*)

  1. Have a stock qty of eg 100.5
  2. Trigger manual upload

Questions or comments

Checklist