Fixed incorrect filtering on order dates.
Check that the order is still a shopping cart before expiring reserved stock.