Pharmaceutical distribution in Pakistan has always been demanding. Margins are thin. Principals expect accurate reports. Pharmacies want fast deliveries. Every pack you move carries a batch number and an expiry date, and you are responsible for both.
Now the Drug Regulatory Authority of Pakistan (DRAP) has raised the stakes. Under its Pharma Track and Trace System, covered medicines manufactured from October 19, 2026 must carry a 2D barcode and a unique serial number, and unbarcoded products will not be allowed for sale after the deadline. Manufacturers and importers print the codes, but the system is designed to follow every pack through the supply chain, and distributors sit right in the middle.
Many distributors still run on basic accounting software, spreadsheets and paper registers. That setup struggles with batch-level stock, near-expiry returns and audit-ready records. It will struggle even more as the supply chain goes digital.
This guide explains what a pharmaceutical ERP must do for a distributor in Pakistan: batch and expiry control, DRAP track and trace readiness, licence and record-keeping, and the daily features that protect your margins.
Key Takeaways
Batch and expiry tracking with FEFO dispatch is the foundation of any pharma distribution software.
DRAP's 2D barcode and serialization rules apply to covered medicines manufactured from October 19, 2026. Distributors should prepare to scan and record serialized packs.
The right ERP links batch numbers to every invoice, so recalls take minutes, not days.
ERPNext covers batch management, schemes, credit control and barcode scanning out of the box, with no per-user licence fees.
Common Challenges Pharma Distributors Face
Whatever their size, most medicine distributors in Pakistan face the same problems.
Expired stock eating into margins. Slow-moving products and near-expiry returns from pharmacies become losses if they are not claimed back from the principal in time.
No batch visibility. When stock is tracked only by item, nobody can quickly tell which batch went to which pharmacy. That becomes a serious risk during a recall or quality complaint.
Multiple principals, multiple rules. Each manufacturer you represent has its own schemes, bonus offers, discount structures, claim formats and reports.
Manual order booking. Orders taken on paper or WhatsApp are re-typed at the office, causing delays and errors.
Credit and recovery. Pharmacies and medical stores usually buy on credit. Without ageing reports and credit limits, receivables grow quietly.
Regulatory records. Drug sale licences, purchase and sale records and supplier warranties must be ready whenever a drug inspector asks.
A well-implemented ERP solves most of these from a single system.
Batch and Expiry Tracking: The Foundation of Pharma Distribution
For a pharma distributor, batch and expiry tracking is the base everything else depends on.
Batch-wise stock
Every receipt from a principal is recorded with its batch number, manufacturing date and expiry date. Stock reports show exactly how many units of each batch sit in each warehouse.
FEFO dispatch (First Expiry, First Out)
Instead of picking whatever is on the shelf, the system suggests the batch that expires first. Older stock moves out sooner and less of it expires.
Near-expiry alerts
Managers see batches expiring in the next 30, 60 or 90 days. Sales can push that stock, or purchasing can return it to the principal under the agreed policy.
Minimum shelf-life rules
Many pharmacies and hospitals reject stock below a certain remaining shelf life. The ERP can warn or block dispatch of such batches to specific customers.
Batch on every document
Batch numbers flow through sales invoices, delivery notes and returns. If a recall comes, you can list every affected customer in minutes.
Expiry and breakage returns
Pharmacy returns are received against the original batch. Expired or damaged stock moves to a separate warehouse and stays tracked until it is claimed from the principal or destroyed with proper records.
DRAP Track and Trace: What It Means for Distributors
In June 2026, DRAP issued S.R.O. 963(I)/2026, finalizing Pakistan's pharmaceutical track and trace framework through amendments to the Drugs Labelling and Packing Rules, 1978. The key points:
Manufacturers and importers must print a GS1 DataMatrix 2D barcode on the secondary packaging (the individual pack), carrying the product code (GTIN), batch number, expiry date and a unique serial number.
Latest reports say the requirement applies to covered medicines manufactured from October 19, 2026, and products without barcodes will not be allowed for sale after the deadline.
The scope covers allopathic human and veterinary medicines, including biologicals. Nutraceuticals, alternative medicines and medical devices fall outside it.
Serialization of tertiary packaging (cartons and shipping units) follows a much longer phased timeline.
Consumers will be able to scan the barcode with a smartphone to check authenticity, expiry and the official price.
The legal duty to print serialized barcodes sits with manufacturers and importers. But the system is built to trace medicines from factory to patient. Distributors should expect principals, and eventually regulators, to ask for scan-level records of what they received and where it went. During the transition, you will also be handling barcoded and older non-barcoded stock side by side.
This is where an ERP makes the difference. A distributor whose system already records batch, expiry and customer on every movement can add 2D barcode scanning at receiving and dispatch with little effort. Scanning the DataMatrix code at goods receipt reads batch and expiry straight from the pack and removes typing errors.
Rules and timelines are still being rolled out, so follow DRAP notifications closely and choose a system that can adapt as requirements become clearer.
Licences, Records and Recall Management
Beyond track and trace, pharma distributors work under drug sale licensing and record-keeping rules enforced by provincial drug control authorities. An ERP keeps this organized.
Licence tracking. Store your own drug sale licence and those of your customers, with expiry dates. The system warns you before a licence lapses and can block sales to pharmacies with expired or missing licences.
Supplier warranties. Record each principal's warranty or authorization against their products, ready for inspection.
Purchase and sale records. Every purchase, sale, return and transfer is logged with date, batch, quantity and party, giving you a searchable history instead of scattered registers.
Recall management. When a principal or DRAP recalls a batch, the ERP shows which customers received it, how much is still in stock, and blocks it from further sale immediately.
Storage conditions. Cold-chain products are assigned to temperature-controlled warehouses, so they are never received or stored in the wrong location in the system.
Inspection-ready reports. Batch-wise stock, customer sales and returns can be printed or exported in minutes when a drug inspector visits.
Other Must-Have Features in Pharma Distribution Software
Principal-wise management. Stock, sales, purchases and profitability reported separately for each manufacturer, in the formats principals ask for.
Schemes, bonus and discounts. Pharma trade runs on bonus quantities (such as 10+1), trade discounts and time-bound schemes. The ERP should apply these automatically and track them for principal claims.
Principal claims. Near-expiry returns, scheme differences and damaged stock all create claims. Tracking them in one place means fewer forgotten or disputed claims.
Field order booking. Sales reps book orders on a mobile app during pharmacy visits, with live stock and credit visibility, so orders reach the warehouse instantly.
Credit control. Customer-wise credit limits and ageing reports, with automatic holds for customers who are over limit or overdue.
Route and delivery planning. Orders grouped by area and route, with delivery status and cash collection recorded by delivery staff.
Customer communication. Invoices, payment reminders and dispatch updates sent automatically to pharmacies through [WhatsApp integration].
Tax compliance. Sales tax and withholding handled correctly, with [FBR digital invoicing integration] where it applies to your business.
ERPNext for Pharma Distributors: How It Handles Each Requirement
ERPNext is a strong choice for pharmaceutical distributors because most of what they need is built in, and the rest can be configured on the same platform.
Requirement | How ERPNext handles it |
|---|---|
Batch and expiry tracking | Built-in batch management with manufacturing and expiry dates |
FEFO dispatch | Batch selection by earliest expiry on delivery notes and invoices |
Near-expiry control | Batch-wise stock and expiry reports with configurable alerts |
Multiple warehouses | Separate warehouses for saleable, cold-chain, quarantine and expired stock |
Schemes and bonus | Pricing rules and promotional schemes for free quantities and discounts |
Credit control | Customer credit limits, ageing reports and order holds |
Barcode scanning | Barcode scanning on stock and sales documents, extendable for 2D DataMatrix codes |
Licence and recall records | Custom fields, reports and workflows built around your processes |
Because ERPNext is open source, there are no per-user licence fees. It can be tailored to how your business actually works, including principal-specific reports and future DRAP data requirements.
It also combines accounting, inventory, sales and HR in one system, so finance tasks like [bank reconciliation] run on the same data as your warehouse.
Checklist: How to Choose a Pharmaceutical ERP in Pakistan
Before committing to any system, confirm it can:
Track stock by batch and expiry across every warehouse
Suggest FEFO batches automatically at dispatch
Warn about near-expiry stock and enforce minimum shelf-life rules
Show which customers received a specific batch, in minutes
Scan barcodes at receiving and dispatch, including 2D serialized codes
Record drug sale licences and block sales on expired ones
Handle bonus schemes, discounts and principal claims
Report separately for each principal
Support field order booking and credit limits
Adapt as DRAP requirements evolve
If your current system falls short on several points, it may be time to decide [whether to upgrade, replace or integrate your ERP].
Frequently Asked Questions
What is the best ERP for pharmaceutical distributors in Pakistan?
The best pharma distribution software handles batch and expiry tracking, FEFO dispatch, principal-wise reporting, bonus schemes, credit control and barcode scanning in one system. ERPNext covers these without per-user licence fees and can be customized for DRAP requirements.
Does DRAP track and trace apply to distributors?
The legal duty to print 2D barcodes and serial numbers is on manufacturers and importers. However, the system is designed to trace medicines through the entire supply chain, so distributors should prepare to scan and record serialized packs at receiving and dispatch.
When does DRAP's barcode and serialization rule take effect?
According to the latest reports, the requirement applies to covered medicines manufactured from October 19, 2026. Always confirm dates against the latest official DRAP notification.
What is FEFO in pharma distribution?
FEFO stands for First Expiry, First Out. The ERP suggests dispatching the batch that expires soonest, reducing expired stock and write-offs.
Can ERPNext read 2D DataMatrix barcodes?
ERPNext supports barcode scanning on stock and sales documents, and it can be extended to parse GS1 DataMatrix codes so batch, expiry and serial numbers are captured automatically.
How Bizloom ERP Can Help
Bizloom ERP implements ERPNext for distribution businesses across Pakistan. We understand what pharma distribution demands: batch-level accuracy, principal reporting and regulatory records.
We can help you:
Set up batch, expiry and FEFO controls across your warehouses
Configure schemes, bonus quantities and principal claims
Build licence tracking, recall reports and inspection-ready records
Prepare receiving and dispatch for 2D barcode scanning and DRAP track and trace
Migrate stock, customers and balances from your current software
Train your warehouse, sales and accounts teams
If you distribute other products alongside medicines, the same system handles them too, just like our LPG distribution and other business management implementations.
Ready to see batch tracking, expiry control and principal reporting in action? Book a free consultation with Bizloom ERP and we'll walk you through a live demo tailored to your distribution business.