Workaround to add shipment/tracking information to order and ignore the inventory check?
-
14-04-2021 - |
Question
Our ERP is source of truth and inventory is being managed via API. The issue is that if a source under a stock is 0 and an order requires a shipment from that source, then we can't create a shipment. Is there a way to create a shipment with tracking information and ignore any inventory checks? Or just a way to force shipment creation in general?
No correct solution
OTHER TIPS
You can write a plugin, which when shipment creation command executes, checks the following
- The qty of products available for products to be shipped
- If it is less than require amount to be shipped or zero, add the required quantity to the product, which is in the order.
This way you will solve the problem.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange