Scheduling the ProcessBackorders job
For the given store, get the list of locked orders that have a status of ('C', 'M', 'I', 'B', 'L', 'A') in the ORDERS table and an INVENTORYSTATUS of BO in the ORDERITEMS table. The command allocates inventory for these order items, re-prepare orders and then process the orders.
For each of these orders:
- See if there are any order items that are not validly allocated. (An order item is validly allocated if it is allocated, the quantity, fulfillment center, and shipping address are the same as when it was allocated, and the allocation has not yet expired.)
- If there is at least one order item that is not validly allocated, call AllocateInventoryCmd for the order.
- If an item is allocated from a different fulfillment center than the one originally requested and AllocateInventoryCmd has unlocked the order, then call ReprepareOrderCmd to recalculate shipping charges and taxes.
- Call ProcessOrderCmd.
To schedule the ProcessBackorders job:
- Open the Administration Console and select Store on the Administration Console Site/Store Selection page.
- From the Configuration menu, click Scheduler. A list of jobs that are scheduled to run on your store displays.
- Click New. The Schedule Job window opens.
- From the Job command list, select ProcessBackorders
- Complete the following fields:
- Start time field enter 00:00. Schedule this command when there is light user traffic and before the RAReallocate command.
- Interval field enter 43200 .
- Priority field enter 8.
- Click OK. Your job is listed on the Scheduler Status Display page and will run at the specified start time.
Related Concepts
Scheduler
Related tasks
Scheduling WebSphere Commerce Payments jobs