A warehouse management system for manufacturing records every stock movement in a factory, from raw material receiving to finished goods shipping, together with its lot, location and work order. The short answer: unlike a distribution warehouse, a manufacturing warehouse ships to the production line rather than to customers, so raw material cannot be used before quality release, the material for each work order is calculated from the bill of materials (BOM) and prepared as a kit, and every lot issued to the line is linked to the finished goods lot. When a complaint arrives, you can find within minutes which raw material lot went into which products. General warehouse setup, location structure and FEFO are covered in our warehouse management system (WMS) guide; this article focuses on what is specific to the factory.
How is a manufacturing warehouse different?
In a distribution warehouse work starts with an order and ends with a truck; picking, packing and routing dominate. We covered that side in wholesale distribution warehouse management. In a manufacturing warehouse demand comes from a work order, material is consumed on the line and comes back as a different product. That is why the warehouse software cannot work alone: the production tracking software (MRP) decides which work order produces how much and when, and the warehouse delivers that plan’s material from the right lot at the right time. Three kinds of stock live in the same system: raw materials, work in progress (WIP) and finished goods, each with its own status, location and cost.
The real output of a manufacturing warehouse is not a tidy rack but a genealogy: if it is not recorded which raw lots and which work order produced each finished lot, a recall becomes guesswork.
Raw material receiving and quality quarantine
- Receiving is done against the purchase order: a delivery whose supplier, item code or quantity does not match waits for review.
- Every receipt gets an internal lot number; the supplier’s own lot number and expiry date are kept as separate fields.
- Received goods first sit in quarantine status and a quarantine location; until the quality result arrives they never appear on pick lists.
- Quality release moves the lot to released status and creates a put-away task; a rejected lot is blocked and a return to supplier starts.
- Every status change is logged with who made it, when and on which inspection result; a manual stock adjustment cannot bypass quarantine.
Lot traceability: from raw lot to finished lot
Traceability is queried in two directions. Forward tracing shows which work orders and finished lots a suspect raw material lot went into, and from there which customers received them. Backward tracing starts from a finished lot with a complaint and goes down to every raw lot and supplier inside it. Both rely on the same record: every lot issued to the line is written as a genealogy row with the work order number and the finished lot being produced. That row is not filled in later from memory; it is created at picking time by a barcode scan. Material left over on the line returns to the warehouse under the same lot number; if the lot is lost there, the traceability chain breaks.
Kitting a work order from the BOM
Line supply works in two ways: a kit per work order, or line-side stock replenished by kanban. For a kit, when the work order is released the warehouse calculates the quantity of every BOM component, adds the scrap allowance and selects lots. Material with an expiry date is picked first expired, first out (FEFO); other material first in, first out (FIFO). Quarantined or blocked lots are never candidates. The example below shows this logic together with the genealogy record:
type BomLine = { sku: string; qtyPer: number; scrapRate: number; fefo: boolean };
type Lot = { lotId: string; sku: string; available: number; receivedAt: string; expiresAt?: string; status: 'released' | 'quarantine' | 'blocked' };
type Pick = { sku: string; lotId: string; quantity: number };
type Genealogy = { workOrderId: string; outputLot: string; inputLot: string; sku: string; quantity: number };
function requiredQuantity(line: BomLine, orderQty: number) {
// Scrap factor is applied once, then rounded up to whole units
return Math.ceil(line.qtyPer * orderQty * (1 + line.scrapRate));
}
function sortLots(lots: Lot[], fefo: boolean) {
return [...lots].sort((a, b) => {
if (fefo) {
const ea = a.expiresAt ?? '9999-12-31';
const eb = b.expiresAt ?? '9999-12-31';
if (ea !== eb) return ea < eb ? -1 : 1;
}
return a.receivedAt < b.receivedAt ? -1 : 1;
});
}
function buildKitList(workOrderId: string, outputLot: string, orderQty: number, bom: BomLine[], stock: Lot[]) {
const picks: Pick[] = [];
const genealogy: Genealogy[] = [];
const shortages: { sku: string; missing: number }[] = [];
for (const line of bom) {
let remaining = requiredQuantity(line, orderQty);
const usable = stock.filter(lot => lot.sku === line.sku && lot.status === 'released' && lot.available > 0);
for (const lot of sortLots(usable, line.fefo)) {
if (remaining === 0) break;
const take = Math.min(lot.available, remaining);
picks.push({ sku: line.sku, lotId: lot.lotId, quantity: take });
genealogy.push({ workOrderId, outputLot, inputLot: lot.lotId, sku: line.sku, quantity: take });
remaining -= take;
}
if (remaining > 0) shortages.push({ sku: line.sku, missing: remaining });
}
// A work order with shortages is not released to the line half kitted
return { ready: shortages.length === 0, picks, genealogy, shortages };
}Three rules matter here. The scrap factor is defined on the BOM line and applied once; pickers do not add extra by eye. Genealogy rows are produced together with the pick list, so it is known before the line starts which lot goes into which finished lot. If anything is short, the work order is not sent to the line half kitted; the shortage goes to purchasing or planning. In a real system the selected quantities are also reserved so that the same lot is not promised to two work orders.
Kanban, WIP, finished goods and scrap
- Kanban replenishment: frequent, low value parts such as screws and packaging are kept in small line-side stock; scanning the card of an empty bin opens a replenishment task in the warehouse.
- Work in progress: product waiting between operations is recorded with its own lot and a buffer location, so nothing waits between lines unrecorded.
- Finished goods receipt: the production report creates the finished lot, which may start in quarantine for final inspection and is put away to a shipping location once released.
- Scrap: material damaged on the line is written off with a reason code; consumption above the standard scrap allowance is reported separately.
- Return to stock: unused material is counted and taken back under its lot number, and the work order’s consumption is corrected to the actual quantity.
Integration with MRP and ERP
The split of responsibilities must be clear. MRP owns the work order, the BOM and material requirements; the warehouse system owns lots, locations and physical movements; ERP owns purchasing, costing and accounting. The warehouse reports work order release, kit delivery to the line, actual consumption, scrap and finished goods receipt as events. Consumption is sent as the scanned quantity, not the planned one; otherwise ERP stock drifts away from the shelf and costing goes wrong. When the connection drops, events wait in a queue and are resent in order, and the same event is never processed twice. If a packaged ERP cannot handle this flow, the usual answer is not to replace everything but to build a custom warehouse layer that talks to the ERP.
Conclusion
A good warehouse management system for manufacturing never lets raw material be used without quality release, calculates each work order’s material from the BOM with its scrap allowance and selects lots by FEFO or FIFO, links every lot issued to the line to the finished lot, keeps kanban, WIP, scrap and return movements on record and reports actual consumption to MRP and ERP. For a solution that fits your factory flow, see our corporate solutions page or describe your current systems and get a quote.