How to handle batches and expiry dates for sales orders in TallyPrime
Updated 10 Nov 2026 · by Venu Gopal Reddy Muvva, founder of OrderDak
Turn on Enable Batches and Maintain Expiry Dates for Batches in F11, then set Maintain in batches, Track date of manufacturing and Use expiry dates on each item that needs them. Record the sales order normally and choose the batch when you deliver or invoice against it, checking expiry with Stock Ageing Analysis before you pick.
Steps
Batches are set at company level and then per item.
- Press F11 (Company Features) and set Enable Batches and Maintain Expiry Dates for Batches to Yes.
- Open the stock item (Alt+G > Alter Master > Stock Item). Set Maintain in batches, Track date of manufacturing and Use expiry dates to Yes. (F12 can show Maintain Stock Item in Batches on the screen.)
- For opening stock, press Enter on the Opening Balance quantity and enter each Batch, Mfg Dt. and Expiry Date.
- On purchase, assign the incoming stock to a batch in the Item Allocation screen.
- Record the customer’s sales order with item, quantity, rate and due date.
- On the delivery note or invoice against the order, pick the batch in Stock Item Allocations; that batch’s stock reduces.
Picking the right batch
Most buyers want the freshest stock, and you want older stock to leave first. Before allocating, check Stock Ageing Analysis, which groups stock by days left to expiry, and the Batch Summary for quantities per batch. Agree with buyers how much shelf life they accept; hospitals and modern trade often write a minimum into the PO.
If a batch must be withdrawn, the Batch Vouchers report lists every inward and outward entry for it, so you can find which customers received it.
Turning batches off
You can disable batches for one stock item without affecting others. Disabling at company level removes batches for every item, and you cannot then enable them per item, so be careful.
| Batch | Mfg date | Expiry | Stock | Allocated |
|---|---|---|---|---|
| B2401 | Jan 2026 | Dec 2027 | 25 strip | 25 strip (oldest first) |
| B2407 | Jul 2026 | Jun 2028 | 80 strip | 35 strip |
| B2311 | Nov 2025 | Feb 2027 | 10 strip | 0 (below buyer’s shelf-life rule) |
| Total | – | – | 115 strip | 60 strip |
Where OrderDak fits
OrderDak reads customer orders from forwarded email, pasted WhatsApp chats, PDF purchase orders, Excel or CSV sheets and photos of printed orders, matches each line to your stock items and checks rate, stock, pack size, credit limit and duplicate PO numbers. Approved orders become TallyPrime (3.0+) Sales Orders through an import file or the OrderDak bridge on the Tally PC (beta). It is free for 14 days, then a Free plan of 50 orders a month or Pro at ₹1,199 a month + GST. Batch and expiry allocation for pharma is still in development in OrderDak, so batches are allocated in Tally.
Questions
Is the batch chosen on the sales order?
The batch that reduces stock is chosen on the delivery note or invoice, in Stock Item Allocations.
How do I see what expires soon?
Stock Ageing Analysis groups stock by days remaining until expiry.
What if an item has a shelf life but no printed expiry?
Track the manufacturing date and use expiry dates with the shelf-life period.
Sources
- TallyHelp: Batches setup — checked 10 Nov 2026
- TallyHelp: Manage inventory batch-wise — checked 10 Nov 2026
- TallyHelp: Record Sales Order in TallyPrime — checked 10 Nov 2026
General information, not tax advice. Menu names can differ slightly between TallyPrime releases; GST rates and rules change, so confirm with your CA.
Related: Order-taking for pharma distributors on Tally · How to make a delivery note against a sales order in TallyPrime · Order-taking for surgical and medical device distributors on Tally · GST on order calculator · All Tally guides