One of our customers (B2B shop) wants this logic on the checkout. The user is allowed to put any quantity in the basket. When the user confirms their order (and not before), if the quantity of certain items goes over the quantity in stock, the order should be split in 2 : one order for the items in stock, and one for the items not in stock.
Is there a possibility to do this out of the box ? Is it even possible in custom code to modify an order in that way at this moment of the checkout process ?