Batch and Expiry Management in the Warehouse: What FEFO Is and How It Works
FEFO means picking first from the batch that expires first. Learn about batch cards, time to expiry, invoice and issue warnings, customer rules and pallets.
In a food, pharmaceutical, chemical or cosmetics warehouse, knowing what is in stock is not enough; you must know which batch expires first. If that information lives on labels and paper ledgers, near-expiry goods are found last. This article shows what batch and expiry management looks like in warehouse software and what FEFO means.
What are batches and FEFO?
A batch is a group of one item produced at the same time and under the same conditions, sharing a production date and expiry date. FEFO stands for First Expired, First Out: pick first from the batch that expires first. It differs from FIFO, which follows arrival order, although a batch that arrived later may expire sooner.
What data does each batch need?
- production date
- expiry date
- retest date (for materials that must be tested again after some time)
- the item's default shelf life (in days), so that giving only the production date is enough to calculate expiry
If these dates are attached as suffixes to the item name, names grow long and batch stock gets split apart. It is better to keep the dates in a separate table linked only to the batch value.
Four capabilities to look for
1. Stock per batch with time to expiry
A list showing, for each batch, the sellable quantity and days left to expiry, with quick filters such as "expiring within 30 days", "90 days" and "expired".
2. A warning at invoice and issue
When a user picks an expired batch in a sales invoice or warehouse issue, or an earlier-expiring batch is available, the system should warn and suggest. The final decision stays with the user.
3. Customer requirements
Some customers refuse goods with, say, less than 60 days left. A minimum remaining shelf life per customer should be recorded and checked at sale.
4. Packs and pallets
Goods move as single units, cartons and pallets. Defining a factor (for example one carton equals 12 units) and seeing pallet contents simplifies counting and loading.
An example
A warehouse has two batches of one item: batch A with 40 days to expiry and batch B with 200 days. Customer X requires at least 60 days. If the user selects batch A on the invoice, they should get a warning that it does not suit this customer, with batch B suggested. The same batch A can still go to a customer with no such rule, through a faster sale or a discount.
Common mistakes
- No warning: the batch is chosen on the invoice and nobody sees the date.
- Silent stock changes: if the system swaps the batch itself, it will not match the physical warehouse. A warning should suggest, not command.
- Everything is one batch: if goods are received without a batch, no FEFO can work.
What Afrandeh does
In Afrandeh, each batch's production, expiry and retest dates live on a "batch card". The batch stock page shows time to expiry, sales invoices, proformas, warehouse issues and exits give FEFO warnings and suggestions, and a minimum remaining shelf life can be set per customer. Packs (single, carton, pallet) are defined as well. These warnings are suggestions only: they do not create warehouse documents, move stock or reserve anything, and the FEFO switches are off by default. If your batches also need quality control, see quality control.
These capabilities work inside the Afrandeh ERP next to sales and warehouse; the list of areas is on the products page. For the broader idea of material needs, read What is MRP?.
Summary
Expiry management means each batch's dates on one card, visible time to expiry and a warning at sale. If your warehouse holds goods in batches, request a demo.
Frequently asked questions
How does FEFO differ from FIFO?
FIFO picks by arrival order, while FEFO picks by closeness to expiry; a batch that arrived later may expire sooner.
Does an FEFO warning change stock automatically?
No. In Afrandeh the warning is only a suggestion; it creates no warehouse document, moves no stock and reserves nothing.