A wholesale distribution WMS manages a distributor warehouse end to end: receiving goods as pallets, cases and eaches, picking them against customer specific orders, loading them by vehicle and route, delivering them with an e-waybill and taking back returns from retailers. The short answer: a good WMS for a wholesale distributor converts units from master data, plans picking in waves by delivery route rather than by order number, loads each truck so the last stop goes in first, and sorts returned goods with a reason code into stock or write off. All of it speaks the same data as the ERP and the customer account.
What makes a wholesale distribution warehouse different?
We covered the basics of warehouse management, meaning locations, barcodes and stock movements, in our post on warehouse management systems (WMS). The warehouse that ships many small parcels to consumers is the subject of our post on e-commerce warehouse management. A wholesaler is different from both: the customers are grocery stores, supermarkets, pharmacies, restaurants or other dealers; orders close during the day, are picked the same evening and are delivered the next morning by your own vehicles on a fixed route. The differences come down to these points:
- Units: the same product arrives as a pallet, is stored as cases and leaves as single items for some customers.
- Customer specific rules: each customer may have its own contract price, minimum order quantity, delivery window and accepted remaining shelf life.
- Route driven dispatch: the order of the stops on the truck, not the order number, decides the picking and loading sequence.
- Frequent returns: damaged, near expiry or wrongly shipped goods come back from retailers every day.
- Documents and accounts: every delivery travels with an e-waybill, and the customer account balance is checked before dispatch.
Pallets, cases and eaches: unit of measure conversions
Many stock errors in wholesale distribution come from unit confusion: the order is entered in cases and the warehouse picks eaches, or the other way round. The fix is to keep the units and their factors in one place in the master data for every product: eaches per case, cases per pallet, and which barcode belongs to which unit. The system holds stock in the smallest unit and shows the unit the customer ordered on screens and documents. When a pick task is created, the quantity is split into the largest handling units: full pallets from reserve by forklift, full cases from the case pick face and the remaining items from the each pick shelf. Scanning a case barcode adds the case factor, so the picker never has to count.
Unit conversion belongs in master data, not on the screen: a product with a missing or conflicting factor must be stopped before it reaches an order, not fixed on the warehouse floor.
Route based wave picking and loading sequence
In a wholesale warehouse a wave usually means one vehicle or one route. After the order cut off the route plan is produced, it is clear which customers each truck visits and in which order, and the warehouse picks to that plan. If a vehicle would exceed its capacity in weight, volume or pallet positions, an order is moved to another truck before picking starts. The loading rule is simple: goods for the last stop go into the truck first, goods for the first stop stay closest to the doors. The example below combines unit conversion with that loading sequence:
type Uom = 'each' | 'case' | 'pallet';
type ItemUom = { sku: string; eachPerCase: number; casePerPallet: number };
type OrderLine = { sku: string; qty: number; uom: Uom };
type Order = { id: string; customerId: string; lines: OrderLine[] };
type Stop = { sequence: number; customerId: string };
type PickTask = { orderId: string; sku: string; pallets: number; cases: number; each: number };
function toEach(line: OrderLine, item: ItemUom): number {
if (!Number.isInteger(line.qty) || line.qty <= 0) {
throw new Error('Invalid quantity for ' + line.sku);
}
if (line.uom === 'each') return line.qty;
if (line.uom === 'case') return line.qty * item.eachPerCase;
return line.qty * item.eachPerCase * item.casePerPallet;
}
// Break a quantity into the largest handling units: full pallets from
// reserve, full cases from the case pick face, the rest as loose items.
function splitUnits(totalEach: number, item: ItemUom) {
const perPallet = item.eachPerCase * item.casePerPallet;
const pallets = Math.floor(totalEach / perPallet);
const rest = totalEach - pallets * perPallet;
const cases = Math.floor(rest / item.eachPerCase);
return { pallets, cases, each: rest - cases * item.eachPerCase };
}
// The last stop of the route is loaded first, so the first delivery
// stays at the doors of the truck.
function buildLoadingSequence(
orders: Order[],
stops: Stop[],
items: Map<string, ItemUom>,
): PickTask[] {
const stopOf = new Map(stops.map(stop => [stop.customerId, stop.sequence]));
const routed = orders.filter(order => {
if (!stopOf.has(order.customerId)) {
throw new Error('Order ' + order.id + ' has no stop on this route');
}
return true;
});
routed.sort((a, b) => stopOf.get(b.customerId)! - stopOf.get(a.customerId)!);
return routed.flatMap(order =>
order.lines.map(line => {
const item = items.get(line.sku);
if (!item) throw new Error('Missing unit master data: ' + line.sku);
return { orderId: order.id, sku: line.sku, ...splitUnits(toEach(line, item), item) };
}),
);
}In the example, an order without a stop on the route or a product without unit data is not skipped silently; it raises an error, because an order sent on the wrong truck or picked in the wrong quantity is discovered in the field the next morning, where it costs far more. In a real system the pick tasks are staged stop by stop in this order, each stop is labelled separately and every unit is scanned again at the loading dock.
Lots, expiry dates (FEFO) and cross-docking
In food, beverage, cleaning products and pharmaceutical distribution, goods are received with a lot number and an expiry date. Picking then follows FEFO: the lot that expires first leaves first. Wholesalers need one more refinement: some chain customers refuse goods with less than a set share of their shelf life remaining. The system applies that customer rule at reservation time and warns before the order reaches the warehouse if no suitable lot exists. Cross-docking means goods from a supplier never enter a rack and move straight to the outbound area and onto a truck. It works for promotional stock already allocated to customers or for fast movers; at receiving the system matches the incoming quantity against waiting orders and sends the rest to normal put away.
E-waybills and returns from retailers
Once a truck is closed with verified loading, an e-waybill is created for each stop and sent before the goods leave; lines the customer reports as short or rejected are read back through the receipt advice. We explain that flow in detail in our post on e-waybill integration. Returns are the process wholesalers neglect most: the driver collects them in the field, but the warehouse and accounting hear about them days later. In a good system the driver records the return on a handheld with customer, product, lot and reason code; at the warehouse it is checked in a quarantine area and sorted as sellable, damaged, expired or return to supplier. Sellable goods go back to available stock, the rest wait in separate locations, and the credit note is posted to the customer account only after that check.
ERP and customer account integration: where to start
- Product master data: units, factors, barcodes and the products that need lot and expiry tracking come from one source.
- Order flow: the ERP opens the order, the WMS manages reservation and picking, and the quantity actually shipped is written back to the ERP.
- Credit check: an order from a customer over its credit limit is held before picking, not after loading.
- Routes and vehicles: whether the route plan comes from a separate tool or the ERP, the WMS builds its waves on top of it.
- Invoicing: the invoice is based on the quantity delivered and accepted, not on the quantity ordered.
Conclusion
A wholesale distribution WMS ties unit conversion to master data, picking to the route, loading to the stop sequence, expiry checks to customer rules and returns to reason codes. Once those links exist, the daily problems of the wrong truck, the wrong unit and the lost return are caught in the warehouse instead of in the field. For a solution that fits your warehouse and distribution network, see our corporate solutions page or describe your current systems and get a quote.