inventory
inventory copied to clipboard
Notify order is ready for pickup not working if global stock is turned off
Preconditions (*)
- Magento 2.4.3
- MSI enabled
- In-store pickup configured and working
- Global stock control turned off (in Stores > Configuration > Catalog > Inventory > Product Stock Options > Manage Stock)
Steps to reproduce (*)
- Place an order containing items assigned to Sources of the Sales channel of the website
- Access the backend, check the order, try to "Notify order is ready for pickup"
Expected result (*)
- Customer is notified with an email
- Success of the operation is shown in the backend
- Order changes status to complete
Actual result (*)
- Customer is notified with an email
- Error is displayed in the backend: "The order is not ready for pickup". It's not clear that the email has been sent
- Order is still in processing status
- Potentially the user may click several times the "Notify" button, triggering the same email to be sent over and over
Looking at the code, in this class Magento/InventoryInStorePickupSales/Model/Order/IsFulfillable.php the fact that stock control could be turned off seems to not be contemplated. If stock control is turned off, items can be bought and qty in Sources won't be affected.
Hi @ganeddact. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.