Skip to content
AI-ERP

Migration guides

Marg to ERP: a migration plan for pharma distributors

A step-by-step plan for pharma distributors moving from Marg to an ERP: batch verification, licences, schemes, expiry claims, retailer ordering and cut-over.

By the AI-ERP team 5 min read

Pharma distributors moving from Marg have specific concerns: thousands of products in batches with expiry dates, licence checks, manufacturer schemes and claims, and chemists who order through established channels. A careful plan protects all of these. This guide sets out the steps, focusing on what is special about pharma distribution.

What makes pharma migration different

Unlike general distribution, pharma stock must be accurate by batch and expiry, because selling the wrong batch or expired stock is a compliance problem, not just a commercial one. Customer licences must be checked at billing. Expiry returns and claims with manufacturers can be worth a lot of money, and pending claims must not be lost in the move.

Step one: verify batch stock

The most important step is a physical count by product and batch, compared with Marg's records. Differences, such as batches recorded but not present, or present but recorded under another batch, are resolved before migration. Only verified batch stock is loaded into the ERP.

In pharma, migrating unverified batch stock just moves the errors into a new system.

Step two: customer licences

Export customers with their drug licence numbers and validity. Check for missing or expired licences and update them before migration, so the ERP can enforce licence checks from day one.

  • Licence numbers

    Complete for every customer.

  • Validity

    Expired licences updated or customers blocked.

  • Restricted products

    Additional controls set up as rules require.

Step three: schemes and price lists

Current manufacturer schemes, price lists and trade discounts are rebuilt as rules in the ERP. Test them on real orders for each manufacturer before go-live, comparing results with Marg.

Step four: pending claims and returns

List all pending expiry claims, breakage claims and rate difference claims with manufacturers, with their documents. These are migrated as open items so they continue to be followed up. Returns held in the godown awaiting claim are recorded by batch.

Step four: pending claims and returns
Open itemHow it moves
Expiry claimsOpen claims with batch details and amounts
Breakage claimsOpen claims with supporting documents
Rate differencesOpen claims by manufacturer
Returns in godownStock held for return, by batch

Step five: chemist ordering

Many chemists order through apps or electronic channels. Plan how orders will reach the new system: through a retailer portal or app, by importing order files, or by phone and WhatsApp with quick entry. Inform key customers of any change in advance.

Step six: cut over

Cut over at a month end after the batch count. Load verified stock, open bills, balances and open claims. Switch billing on the first working day, with support at the counter. Keep Marg available read-only.

An example

A pharma distributor supplying several hundred chemists counts its stock by batch over a weekend before cut-over. The count finds a number of batches recorded in Marg that had been returned to manufacturers months earlier without entries. Correcting these before migration means the ERP starts with accurate batches. Pending expiry claims worth a meaningful amount, previously tracked in a notebook, are entered as open claims and recovered over the following months.

After go-live

Watch FEFO dispatch, licence blocks and scheme application closely in the first weeks. Review near-expiry stock and claims monthly from the start, so the benefits of better control show quickly.

Communicating with chemists and manufacturers

Tell key chemists in advance if ordering channels or invoice formats will change, and tell manufacturers' representatives that claims will come from a new system. Clear communication prevents confusion and protects relationships during the first weeks.

Staff roles during cut-over

Assign clear roles for the cut-over weekend and first week: who counts which racks, who checks batch entries, who supports the billing counter, who handles calls from chemists. A simple checklist for each role keeps the cut-over orderly.

Reports for the first month

Prepare the reports the business relies on in the first month: daily sales by salesperson, near-expiry stock, pending claims, overdue chemists and manufacturer-wise purchase. Having these ready from day one shows the team the new system is more useful than the old, and gives managers confidence during the transition.

Key takeaways

  • Verify batch stock physically before migrating it.
  • Complete and validate customer licences.
  • Rebuild schemes and price lists and test them.
  • Migrate pending claims and returns as open items.
  • Plan chemist ordering channels and cut over at a month end.

Questions on this topic

Why count stock by batch?

So the ERP starts with accurate batches and expiry dates.

Can licence checks start from day one?

Yes, if licences are complete and valid at migration.

Will pending claims be lost?

No. They are migrated as open items.

Can chemists keep ordering electronically?

Yes, through a portal, app or order imports planned in advance.

How long does the batch count take?

Often a weekend for a mid-sized distributor, depending on products.

Will Marg remain available?

Yes, read-only for reference.

Can schemes be tested before go-live?

Yes, on real orders compared with Marg.

Can batch counts be done with scanners?

Yes, scanning batch barcodes where available speeds up counting and reduces errors.

Can schemes differ by chemist category?

Yes. Schemes can apply to customer groups such as retail, hospital or institution.

Who should be at the billing counter on day one?

Experienced billing staff with support from the AI-ERP team.

Free 30-minute consulting call

Want this working in your business?

Book a free consulting call. The AI-ERP team will show you how it would look with your own data.

Before you go

Get a free ERP plan for your business

Leave your number and one line about your business. We send you a plan on WhatsApp: the modules we would suggest, a rough timeline and an estimated cost.

We use your number only to reply about this request.

Free 30-minute call

Book a free consulting call

Tell us a little about your business. Next, you pick a time that suits you.

No obligation. You leave the call with a clear plan either way.

Live demo

See AI-ERP in action

Get instant access to a working AI-ERP built for a valve manufacturer. Three quick details and you are in.

We only use these details to follow up about AI-ERP.