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.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
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.