Near-expiry stock tracking in TallyPrime for pharma stockists and chemists
Stock Expiry Report in Tally Prime: Catch Batches in Time

Your Tally already knows which batches expire in the next 60 days. It just never tells you. For most stockists the first warning comes from a retailer sending back short-dated strips, and by then the company's return window has often closed. A stock expiry report in Tally Prime fixes the first half of that problem, as long as somebody opens it on a fixed day every week.
The money involved is real. Business Standard reported an estimate from AIOCD, the chemists' and distributors' trade body, that medicines worth about Rs 270 crore expire unused in India every year, with part of that waste sitting at the chemist and wholesaler end. And for a pharma stockist or a chemist with 2–5 outlets carrying a few thousand batch-tracked SKUs, every batch that expires on the shelf is a loss.
This guide is for that reader. It covers:
- how to switch on the expiry date in Tally Prime properly
- the exact screens that show near-expiry stock, with keys
- what Tally does not do, and why expiry still gets through
- a free weekly 90/60/30-day routine
- an honest test for when a separate near-expiry panel is worth paying for
Step 1: Enable batches and the expiry date in Tally Prime
None of the expiry reports work until two settings are on, and the expiry options don't even show up in the reports without them.
Company level (F11 Features):
- Enable Batches = Yes
- Maintain Expiry Dates for Batches = Yes
Stock item level: open the stock item master, press F12 (Configure) and turn on "Maintain Stock Item in Batches" (or use Ctrl+I for just this master). Then on each medicine set:
- Maintain in batches = Yes
- Track date of manufacturing = Yes
- Use expiry dates = Yes. You can also store a shelf-life period here.
From then on, every purchase entry asks for Batch, Mfg Dt. and Expiry Date in the Stock Item Allocations screen.
Two habits matter more than the settings themselves. First, the person entering purchases has to type the expiry date from the actual carton, every time, not copy the last batch. Second, old items created before you switched batches on will carry stock with no expiry date. Fix those with a stock count before trusting any report. Our guide to the physical stock voucher in Tally Prime explains how to post that count without messing up your books.
Step 2: The stock expiry report in Tally Prime (Stock Ageing Analysis)
Stock ageing analysis by expiry date is the report that lists near-expiry stock across your whole catalogue, not one item at a time.
- Press Alt+G (Go To) and open Stock Ageing Analysis.
- Choose the stock group. Pick Primary to see everything, or a single company's group if your masters are grouped by manufacturer.
- Press F9 (Ageing Style) and pick one of:
- By Expiry Date: groups stock by how far it is from expiry
- To be Expired: shows what is coming up for expiry
- By Date of Purchase or By Mfg. Date (useful for slow movers, less so for expiry)
- Press F6 (Ageing Periods) and set slabs in days, for example 0–30, 31–60 and 61–90.
- Press F7 (Show Value) to see money alongside quantity, and F8 if you want to change the valuation method.
There is also an option to show only expired batches. That is the quickest answer to how to see expired stock in Tally Prime: it finds what has already expired and needs to come off the shelf today.
If you choose F9 and don't see the expiry styles, go back to Step 1: both F11 settings must be Yes.
This is the closest thing to a near expiry stock report Tally Prime has built in, and for most stockists it is enough to start with.
Step 3: Batch Summary, for days to expiry on one item
When a salesman asks "how many days does the Mumbai batch of this syrup have left?", Stock Ageing is overkill. Use the Batch Summary instead.
- Alt+G → Batch Summary → select the stock item.
- Press F12 and turn on:
- Show Manufacturing Date
- Show Expiry Date of Batches
- Show Number of days for Expiry
- Show Stock Items with Zero Quantity or Balance (only if you need it)
- Press Ctrl+B for filters: Expired Batches only, or Show Batch Expiry Details From … To … to see batches expiring within a date range.
That gives you a batch-wise stock report with expiry dates and a days-to-expiry column. The catch is that Batch Summary works one item at a time. With 3,000 SKUs it is a lookup screen, not a review screen. Use Stock Ageing for the weekly review and Batch Summary to answer questions.
What Tally does not do (and why expiry still slips)
Tally has the expiry data. The trouble is that it only shows it when someone goes looking. Here is where near-expiry stock gets through:
| Gap | What happens in the godown |
|---|---|
| No near-expiry alert | TallyPrime's Notifications report covers things like TSS, licence, GST, backup and add-on alerts. It has no batch-expiry alert. Custom alerts are possible through TDL from Release 7, but that needs a developer. |
| No automatic FEFO | When you make a sale, you pick the batch yourself. Tally does not automatically pick the earliest-expiring batch first, so salesmen bill whatever batch is at the front of the rack. |
| No split by company window | Every manufacturer sets its own near-expiry return terms. Tally lists your stock by group, not by "still returnable to Company A". |
| No claim tracking | Once leakage, breakage and expiry (LBE) goods are sent back, nothing in Tally checks whether the credit note ever came. |
Some of the problems aren't in the software at all:
- Big shipper packs. In January 2021, AIOCD wrote to pharma companies asking them to split shippers of 20–50 units into smaller packs, because large packs "result in increasing expiry". Buying a full shipper of a slow product to hit a scheme is how many expiry losses start.
- Cut strips. Once a strip has been cut for loose sale it is much harder to send back. A chemist who cuts strips of a slow product late in its life usually ends up carrying the loss.
- Company windows. No single standard return window applies across the trade. Each company sets its own, so check your agreement. A report that says "expires in 75 days" doesn't tell you whether that batch can still go back.
FEFO ("first expiry, first out") is the rule that fixes the second row: always sell the batch that expires soonest. In Tally that has to come from people, not software. Rack the earliest batch at the front, and give salesmen the near-expiry list so they push those batches first.
For a deeper look at the claim side, our post on damage and expiry stock covers why brand claims stay pending for months.
Keep expired stock apart: Rule 65(17)
Under Rule 65(17) of the Drugs and Cosmetics Rules, 1945, a licensee must not sell or stock a drug after its expiry date. Expired stock may be held only while you arrange its return or disposal. It must be kept apart from trade stock, in cartons marked "Not for sale".
In practice, expired strips often sit on the same rack as good stock "until the company rep comes". That is a compliance risk, and it also means someone could bill an expired batch by mistake.
The fix in Tally is cheap:
- Create a separate godown called something like "Expired – Not for sale".
- When the weekly report shows expired batches, move them there with a stock journal (godown transfer). That way the physical move and the books match.
- Mark the cartons physically, and keep that shelf away from the billing counter.
CDSCO's May 2025 guidance on disposing of expired and unused medicines points the same way. Retailers return expired stock to their supplier or the manufacturer, and wholesalers and stockists take it back, keep it separate and pass it on, keeping records and disposal certificates. If you also run retail counters, the same care with registers applies there. Our guide to the Schedule H1 register covers that side.
A free weekly routine around the stock expiry report in Tally Prime
You don't need new software for this. You need a fixed day and one person who owns it. Say a Lucknow stockist carrying six companies picks Monday at 10 am:
- Open Stock Ageing Analysis, F9 = By Expiry Date or To be Expired, F6 slabs = 0–30, 31–60, 61–90, F7 on.
- 0–30 days: decide today. Can it still go back under that company's terms? If yes, raise the return now. If not, offer it to retailers who move that molecule fast, or set it aside.
- 31–60 days: share the list with salesmen on the WhatsApp group by name and batch. These are the batches they push this week.
- 61–90 days: check each company's terms for near-expiry medicine return to the company, and note the last date a return will be accepted. This is the bucket where money is saved, because there is still time to act.
- Already expired: use "show only expired batches", move them to the "Not for sale" godown, and log what was sent back.
- Claims notebook: for every expiry claim and credit note, list each LBE return sent, the date, value and company. When AIOCD wrote to companies in 2021, one of its demands was that LBE credit notes be settled within 60 days of the company receiving the goods, and that there be no zero-value credit notes. That is a trade body's demand, not law, but it is a useful yardstick. Any claim older than 60 days goes on the chase list.
In this example, the stockist stops hearing about expiry from retailers and starts hearing about it from their own report while there is still time to act.
The same routine works for one-off checks too. In November 2026 RDCA in Delhi asked stockists and chemists to check stock against a revised MRP list of 543 anti-cancer brands, effective 9 Nov 2026, and to arrange credit notes from manufacturers. It's the same job: find every affected batch by company, then chase the credit note.
When a near-expiry panel is worth building over Tally
Good pharma distributor expiry management starts with the weekly routine. It is free, and you should run it for at least a couple of months before spending anything. It stops being enough when:
- You carry many companies with different return terms, and "expires in 75 days" means returnable for one and dead stock for another.
- You have several godowns or outlets, and the Monday report needs a person to stitch it together.
- The claims notebook has grown, with credit notes open for months, some arriving at zero value, and nobody able to say what is outstanding.
- The routine gets skipped whenever the one person who owns it is on leave.
Those are the same signs that apply to any process run from a sheet or a notebook. Our guide to the signs your business has outgrown Excel goes through them in detail.
If none of these applies, stay with Tally and the weekly routine. A panel only makes sense when the review itself has become the bottleneck.
AIOCD said it issued a mandatory circular on LBE claim settlement in December 2025 (reported by Chronicle Pharmabiz). Whatever your companies' terms end up being, you'll need dated records of what went back and when.
FAQs
How do I see expiry date stock in TallyPrime?
Turn on Enable Batches and Maintain Expiry Dates for Batches in F11. Then open Alt+G → Stock Ageing Analysis, press F9 and choose By Expiry Date or To be Expired. Use F6 to set day slabs. For a single item, use Batch Summary with F12 "Show Number of days for Expiry".
Which report shows near-expiry items in Tally?
Stock Ageing Analysis with the ageing style set to By Expiry Date or To be Expired. It lists near-expiry stock across a whole group or the full catalogue. Batch Summary also shows days to expiry, but only for one item at a time.
Can TallyPrime send an alert before stock expires?
Not out of the box. TallyPrime's Notifications report does not include batch expiry. A developer can build custom notifications using TDL from Release 7, or an outside tool can read Tally's data and send the alert.
How do I stop selling expired batches in Tally?
Batch selection on a sale is manual, so the main control is process. Move expired batches to a separate "Not for sale" godown every week, so they don't show up as normal trade stock when salesmen bill. Rack the earliest-expiring batches at the front, and give salesmen the near-expiry list.
What is FEFO and how do pharma distributors follow it?
FEFO means "first expiry, first out": always sell the batch that expires soonest. Tally doesn't enforce it automatically, so distributors follow it through rack order, a weekly near-expiry list shared with salesmen, and checking batch choice at billing.
What Cybiqon would build for this
If the weekly routine has become the bottleneck, Cybiqon builds a small near-expiry panel that reads the batch and expiry data already in your TallyPrime. It gives you one near-expiry list per company, set against that company's return terms, plus a morning WhatsApp alert to the people who need to act. It also keeps an LBE return register of what went back and when, and flags every credit note older than 60 days.
It is written for your companies, godowns and claim process rather than set up from a template, and you own the code and the data. See what goes into our admin panels and internal tools. Builds start from ₹29,999 and are scoped per job. If you'd like to talk it through, book a 30-minute call, call +91 9250711473 or write to [email protected].
Conclusion
Expiry losses at a stockist rarely come from missing data. Tally already holds every batch and date. They come from nobody opening the right report while there is still time to act. Set up batches properly, run the stock expiry report in Tally Prime every week in 90/60/30-day slabs, move expired stock to a "Not for sale" godown, and chase every credit note past 60 days. Do that for a couple of months. If the routine still can't keep up with your companies, godowns and claims, that's when an owned panel from Cybiqon is worth a conversation.
Want this set up for your business?
Book a free call — no tech jargon, no sales pressure. Just honest answers.
What we build for this: Admin panels & internal tools