How Does Batch & Expiry Tracking Work in Pharma Software?
What happens behind the screen from the moment medicines arrive to the moment they are sold or returned.
Request for Free Demo ↗Get a free demo
Leave your details and our Nairobi team will call you back to set up a demo at your business or online.
- Free, with no obligation
- Demo in your own premises or online
- eTIMS and M-Pesa set up for you
Quick answer: Pharma software records the batch number and expiry date of every medicine when it is purchased, keeps stock separately for each batch, picks the earliest-expiring batch when billing, and lists batches nearing expiry so they can be sold, moved or returned in time. Each sale and return can then be traced to the exact batch.
What is batch and expiry tracking?
A batch is a group of packs made together, with the same batch number and expiry date. Tracking means the system knows how many packs of each batch you hold, where they are and when they expire, instead of just one total per medicine.
How does batch-wise stock work?
- Purchase: batch number, manufacturing and expiry dates are entered or imported from the supplier's bill.
- Storage: stock is held per batch, and can also be tracked by rack or godown.
- Sale: the bill shows which batch was sold, so stock reduces from the right batch.
- Return: returns go back into the correct batch, or out to the supplier against it.
Why sell the earliest expiry first?
First-Expiry-First-Out (FEFO) means the batch that expires first is sold first, even if it arrived later. Good pharma software picks that batch automatically at billing, so cashiers don't have to check dates under pressure.
How are near-expiry and expired medicines managed?
- Near-expiry reports list batches expiring within 30, 60 or 90 days, by supplier.
- Expired batches are blocked from billing so they can't be sold by mistake.
- Supplier returns are recorded against the batch, and claims tracked until the credit note arrives.
- Expired stock is removed from sale and disposed of through approved channels, following Pharmacy and Poisons Board guidance.
What about searching by salt or composition?
When a brand is out of stock, salt-wise search shows every in-stock medicine with the same composition, along with its batches and expiry dates, so the pharmacist can offer a suitable alternative.
How does it help day to day?
- Fewer expiry losses and fewer expired items reaching the shelf.
- Faster recalls: you can see which batch you hold and who bought it.
- More accurate stock counts, because differences show up per batch.
Marg pharmacy software and pharma distribution software both work batch-wise from purchase to sale. For practical steps, read how to reduce medicine expiry losses.
Frequently Asked Questions
Can batch details be imported instead of typed?
Yes. Marg can import supplier bills from Excel, CSV or PDF with batch and expiry details, so purchase entry is faster and more accurate.
Can the software stop expired medicines being sold?
Yes. Expired batches can be blocked at billing so they can't be sold by mistake.
What is FEFO?
First-Expiry-First-Out: the batch with the earliest expiry date is sold first.