How to allocate stock to a sales order