Pharmacy software in Tanzania: batch and expiry tracking in TallyPrime
Pharmacy software has to know which batch each pack came from, when it expires and where it’s kept, and issue a valid receipt. TallyPrime tracks batches with manufacturing and expiry dates, stock by location and price levels, and works with Power VFD for TRA receipts on the Mainland.
What pharmacy software has to do
A pharmacy’s stock has dates on it. Each delivery of a medicine arrives as a batch with its own manufacturing and expiry date, often at a different cost from the last one, and the stock closest to expiry should be sold first. Good pharmacy software records the batch when stock comes in, lets you choose it when you sell, and shows what’s about to expire before it’s found on the shelf.
It also has to keep stock by store or branch, sell at the right price to retail and wholesale customers, keep stock and accounts in one set of books, and issue a valid fiscal receipt. TallyPrime covers each of these. The steps below are from Tally’s own help pages.
Switching on batches and expiry dates
In F11 (Features), set Enable Batches to Yes and, for medicines, Maintain Expiry Dates for Batches to Yes. Then alter each medicine’s stock item and set Maintain in batches, Track date of manufacturing and Use expiry dates to Yes. Tally says expiry dates are for goods with a limited shelf life, and you can use them to record a shelf-life period even when a pack doesn’t print a separate expiry date.
Opening stock goes in the same way: in the stock item’s opening balance, enter each batch with its manufacturing and expiry dates.
Recording batches when stock comes in
On the purchase voucher, select the medicine and press Enter to open Stock Item Allocations. Select an existing batch or create a new batch number, enter the Mfg Dt. and Expiry Date, then the quantity and rate. One purchase line can be split across several batches. If you buy more of an existing batch, TallyPrime brings in that batch’s dates, and you can change them on the same screen.
Selling from the right batch
On the sales invoice, the same Stock Item Allocations screen lets you pick the batch you’re selling from. Each batch can have its own selling price, and if one batch doesn’t have enough, you can take the rest from another.
Seeing what’s about to expire
Alt+G (Go To) > Batch Summary lists the batches of an item with their quantity, rate and value. Press F12 (Configure) to show the manufacturing date, the expiry date and the number of days left to expiry, use Ctrl+B to see batches expiring between two dates, or choose Expired Batches only.
Alt+G (Go To) > Stock Ageing Analysis gives the wider view. Press F9 (Ageing Style) and choose By Expiry Date, or To be Expired for batches nearing expiry, and set Show only Expired Batches to Yes to list expired stock. These options appear once batches and expiry dates are switched on in F11.
Stores, branches and price levels
Godowns record where stock is kept: the main store, the counter or each branch. Create them in Alt+G (Go To) > Create Master > Godowns, choose the godown on each purchase and sale, and record moves between them with a stock journal. Tally notes that a transfer changes where the stock is, not how much the company holds.
If you sell to walk-in customers and to clinics or other pharmacies at different prices, set Enable multiple Price Levels to Yes in F11. You can create any number of price levels, set quantity-based discounts in a price list, and choose a price list in each customer’s ledger so the right rates appear on the invoice.
Receipts: Power VFD on the Mainland, VFMS in Zanzibar
On Mainland Tanzania, Power VFD, Powercomputers’ virtual fiscal device, sends sales invoices from TallyPrime to the TRA (Tanzania Revenue Authority), so the sale isn’t typed again into a separate EFD machine and your tax and invoice records stay in one place.
In Zanzibar, fiscal receipts go through the Zanzibar Revenue Authority’s VFMS instead of TRA’s VFD, so Power VFD isn’t the answer there. Our guide to VFMS explains ZRA’s system; talk to us before you plan receipts from Tally in Zanzibar.
What this guide doesn’t cover
Rules for running a pharmacy, such as licensing and how medicines must be stored and recorded, come from the authorities, not from your software. This guide covers what TallyPrime does; check the regulatory side with the relevant authority.
TallyPrime for your pharmacy
Powercomputers sets TallyPrime up around your stock, adds Powerpack controls such as blocking entries that take stock below zero and controlling sales below cost price, and trains your team. Our hospitals and healthcare page covers patient billing and department budgets too. Book a free demo and bring a list of your medicines and suppliers.
Free scorecard
Accounting software buyer’s scorecard for Tanzanian businesses
Ask every vendor the same questions and compare the answers on one page. This scorecard covers users, stock, TRA invoicing, currencies, support, costs, data and growth.
On this site
Sources
- Tally help: Manage inventory batch-wise
- Tally help: Set up to maintain batches
- Tally help: Purchase of stock items in batches
- Tally help: Sales of stock items from batches
- Tally help: Batch Summary
- Tally help: Stock Ageing Analysis
- Tally help: Godowns/Locations in TallyPrime
- Tally help: Transfer stock between godowns
- Tally help: Price lists and price levels FAQ
- PowerTally: VFD for Tally
- PowerTally: Powerpack & Tally add-ons
- Zanzibar Revenue Authority: VFMS
Want to see this in TallyPrime?
Book a free demo and see it on your own business, with no obligation.

