TallyPrime how-to

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.

  1. Press F11 (Company Features) and set Enable Batches and Maintain Expiry Dates for Batches to Yes.
  2. 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.)
  3. For opening stock, press Enter on the Opening Balance quantity and enter each Batch, Mfg Dt. and Expiry Date.
  4. On purchase, assign the incoming stock to a batch in the Item Allocation screen.
  5. Record the customer’s sales order with item, quantity, rate and due date.
  6. 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.

Example: choosing batches for an order of 60 strips (invented batches and dates)
BatchMfg dateExpiryStockAllocated
B2401Jan 2026Dec 202725 strip25 strip (oldest first)
B2407Jul 2026Jun 202880 strip35 strip
B2311Nov 2025Feb 202710 strip0 (below buyer’s shelf-life rule)
Total––115 strip60 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.

Try OrderDak free for 14 days

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

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