Dispatch Planner
Dispatch Planner groups confirmed wholesale orders by delivery route for a chosen date, letting you print a packing slip per order and advance individual orders (or an entire route at once) from Confirmed to Dispatched, and from Dispatched to Delivered.
Overview
The page calls GET /wholesale/dispatch-plan with only a deliveryDate — there is no status selector in the UI, and the backend endpoint always defaults to CONFIRMED orders when no status is passed, so this page can only ever show confirmed orders for the chosen date.
Orders are grouped by their deliveryRoute field into route cards; any order without a route set is grouped under "Unassigned" rather than being hidden.
"Dispatch All" on a route steps through every CONFIRMED order in that route one at a time, calling the same status-update endpoint used by the single "Dispatch" button on each order.
Status changes go through PATCH /wholesale/orders/:id/status — the same generic order-status endpoint used elsewhere in wholesale, not a dispatch-specific endpoint.
Packing slips are generated entirely client-side from the order data already loaded on the page (no extra API call) and clearly print with a "Not a Tax Invoice" label.
Before You Start
- You must have the Billing feature enabled on your plan.
- Orders must be CONFIRMED (via Wholesale → Orders) and have a delivery date matching the selected date to appear here.
Step-by-Step Guide
1 Plan today's dispatch
- Open Wholesale → Dispatch Planner.
- Set the date field (defaults to today) and click Refresh if needed.
- Review the Total Orders and Routes summary cards, then scan each route card for its order count and total value.
2 Print a packing slip before loading a vehicle
- Find the order within its route card.
- Click the print icon next to the order — a packing slip opens in a new window listing Ship To, order number, order/delivery dates and item quantities, with a "Not a Tax Invoice" note.
- Use Prepared by / Checked by lines at the bottom for a manual sign-off.
3 Dispatch a single order
- Click "Dispatch" on the order once it is loaded and ready to leave.
- The order status is set to DISPATCHED via the wholesale order status endpoint, and the list reloads.
4 Dispatch an entire route at once
- Click "Dispatch All" on a route's header — this only appears if the route still has at least one CONFIRMED order.
- Each CONFIRMED order in that route is marked DISPATCHED one after another; watch the success toasts to confirm each one completed.
Every Field & Button, Explained
| Field / Button | What it does |
|---|---|
Date | Filters orders by exact delivery date match (same semantics as Pick List). No status selector exists on this page. |
Total Orders / Routes | Summary cards: count of matching CONFIRMED orders and the number of distinct delivery-route groups (including "Unassigned"). |
Route header | Route name (or "Unassigned" if the order has no deliveryRoute), order count and combined total amount for the route. |
Dispatch All | Only shown when the route has at least one CONFIRMED order; marks each such order DISPATCHED in sequence via repeated single-order status calls. |
Order status badge | Colour-coded chip for CONFIRMED / DISPATCHED / DELIVERED / CANCELLED, styled from the order's current status field. |
Print icon | Opens a client-generated packing slip for that order — items, quantities and units only, no pricing. |
Dispatch button | Visible on CONFIRMED orders; sets status to DISPATCHED. |
Delivered button | Visible on DISPATCHED orders; sets status to DELIVERED. In practice this button rarely appears because the page's own query only returns CONFIRMED orders (see Troubleshooting). |
Order notes | Shown in italics under the order row when the order has a notes value. |
Tips & Best Practices
- Print packing slips before clicking Dispatch — once an order moves to DISPATCHED it drops out of this page's list on the next refresh, so it is easier to print while it is still visible here.
- Use "Unassigned" as a signal to go back to Wholesale Orders and set a delivery route for those orders so future dispatch runs group them properly.
- If you need to advance an order all the way to DELIVERED, plan to do it from Wholesale Orders (or return to this page and change the Date, since a DISPATCHED order on a different delivery date may still surface there) rather than expecting the Delivered button to appear here.