Reversing a minout of a closed order will reserv products again for this order
Description
When an order is closed while there is an existing shipment and the shipment is reversed later the closed order then has an open order line. Reversing the shipment should either reopen the order (not preferred by me) or handle it excatly as if the order was closed after reversing the shipment. That means setting the qtyOrdered as the qtyDelivered (after reversing), adding the reversed qty to qtyLostSales and not adding new reservations.
When an order is closed while there is an existing shipment and the shipment is reversed later the closed order then has an open order line. Reversing the shipment should either reopen the order (not preferred by me) or handle it excatly as if the order was closed after reversing the shipment. That means setting the qtyOrdered as the qtyDelivered (after reversing), adding the reversed qty to qtyLostSales and not adding new reservations.