inventory
inventory copied to clipboard
Quick order product w/o qty but allow backorder
I have a simple product which I try to add using magento/module-quick-order . The product has no quantity (null) and isn't added in the source table. Backorders (Allow qty below 0) is enabled:

This product can be added to the cart using the PDP, but not from the quick order. In the latter, the error "We don't have the quantity you requested." is shown. Deep in the code, in magento/vendor/magento/module-advanced-checkout/Model/Cart.php::getQtyStatus() , this error can be found:
$return = [
'qty_max_allowed' => 0,
'status' => 'failed_qty_allowed',
'error' => 'There are no source items with the in stock status',
]
The backorder setting seems to be ignored. Is this MSI related? And how can it be fixed without setting a quantity on the product?
Hi @evs-xsarus. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
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.
PS I 'm running Magento magento/product-enterprise-edition 2.4.2 with magento/extension-b2b 1.3.1
The field 'qty' seems to be nullable in table 'cataloginventory_stock_item' . When adding products with the qty to 'null', it doesn't seem to be added to the source table, resulting in this error.