magento / inventory

Magento Inventory Project (a.k.a MSI)
Open Software License 3.0
336 stars 247 forks source link

Decrease Stock When Order is Placed & Manage Stock #2846

Open chadwixk opened 4 years ago

chadwixk commented 4 years ago

Preconditions (*)

Steps to reproduce (*)

  1. Place and order, issue an invoice (tested using Check /Money order payment method, so manually issue invoice), product stock quantity does not decrement by order amount

Expected result (*)

  1. Product inventory to be reduced by ordered amount

Actual result (*)

  1. Product quantity does not decrement by order amount

Discussion I'm guessing this is because Manage Stock is set to No. But I don't know if this is by design or a bug. I'd say current conditions of documentation and the Admin UI design imply it is a bug.

Documentation does not state this is affected by Manage Stock setting: image

Also the UI for these settings doesn't have the Decrease Stock When Order is Placed setting nested under the Manage Stock setting and doesn't become disabled when you set Manage Stock to No. Hence the UI does not indicate that this behavior is by design. image

Further, the case to have this work, even though Manage Stock is set to No is that when using a third party inventory management system, it is stated you should set the Manage Stock setting to No. However, to not have it automatically decrement the product quantity on sale creates undo work for the third party app and additional API overhead, system resources, etc, for something Magento could automatically do with a few lines of code change (if that). Why? because now the 3rd party inventory management tool needs to

Further, we need to then post an inventory adjustment real time, not in batch. Conversely, if Magento decremented the inventory, we wouldn't need to post inventory updates but once a day perhaps.

As such, due to the fact that Magento is not decrementing the product qty on sale results in 15 times the otherwise required order api requests, plus infinitely more inventory update posts. The number of orders and timing thereof would dictate this, but a feasible inventory update would be daily if Magento decremented the inventory on sale.

Linking to this other issue as it relates to the same type of divisions of functions with MSI and 3rd party inventory updates.

DJB95 commented 3 years ago

@magento-engcom-team having the same issue here. Is there any known fix for this?