Home / Work / MedPlus Pharmacy ERP & POS
Healthcare · Case study

MedPlus: a pharmacy back office and a fast POS on one ledger

A pharmacy operating system with a management back office and a keyboard-first POS terminal: medicine catalog, batch and expiry tracking, purchasing, returns, branches and devices, prescriptions, and an append-only double-entry ledger.

Last updated November 2026

Back office + POS terminal
Laravel 13

The problem

A pharmacy counter has to be fast. The person at the till needs to find a medicine by brand, generic name or barcode, add it to the cart, and take payment without hunting through menus. Behind that sale, the business has to track every batch and expiry date, handle prescription-only (Rx) items properly, keep stock right in each branch, and keep the books consistent.

In many pharmacies these jobs are split across a till, spreadsheets and separate accounting software. Numbers drift apart, expired stock gets missed, and month-end becomes a reconciliation exercise. MedPlus was built to put the counter and the back office on one system and one ledger.

What was built

There are two parts: a management back office and a keyboard-first POS terminal, both on Laravel 13.

Medicine master catalog. Each medicine has a brand and molecule (generic), category, manufacturer, barcode/SKU, pack size, government MRP and an Rx-regulated flag. Batches are tracked per medicine.

FEFO expiry. A near-expiry watchlist shows anything expiring within 90 days. The system prompts first-expiry-first-out, and batch and expiry are shown on each item at the POS.

Purchasing and GRN. A purchase and goods-received flow, so stock enters the system with its batch details.

Returns. Both customer returns and returns to suppliers.

Branches and devices. Per-branch operation with a branch switcher, registers and shifts, and a multi-device offline audit.

Financials and expenses. An append-only double-entry ledger (debit/credit) with an audit trail, plus expense posting.

Compliance and admin. Prescriptions and statutory forms, policy reconciliation, reports and P&L, users and roles, and bulk import for loading catalogs.

POS terminal. Search by barcode, brand or generic name, category filters, Rx badges, and an active cart that shows the batch on every line. Discounts respect a cashier limit, with a manager override above it. It handles GST, holding a cart, and checkout. Keyboard shortcuts cover the common actions: F2 search/scan, F3 customer, F4 override/discount, F8 hold, F9 pay, F10 new sale. Cashiers can also pick a colour palette.

Technical approach and stack

  • Framework: Laravel 13 on PHP.
  • Shape: back office + POS terminal ↔ Laravel 13.

The key design choice is the ledger. Entries are append-only, so a posted entry is never edited. Corrections are made with new entries. That keeps a full audit trail and means sales, purchases, returns and expenses all reconcile against the same books.

Challenges solved

Speed at the counter without losing control. The POS is built for the keyboard, so a cashier can scan, search, discount and pay without the mouse. Controls such as cashier discount limits and manager overrides are built into that same flow, not added as extra screens.

Batch-aware selling. Showing the batch on every cart line, plus FEFO prompts, means older stock gets sold first and expiring stock is visible before it becomes a write-off.

Regulated items. Rx-flagged medicines are badged in the POS, and prescriptions and statutory forms are handled in the back office.

Books that agree with the till. The double-entry ledger records sales, purchases, returns and expenses in one place, with reports and P&L built from it.

Multiple branches and devices. Registers, shifts and a multi-device offline audit let each branch run its own counter while head office still sees the whole picture.

Outcome

MedPlus was delivered. In qualitative terms:

  • The counter and the back office run on one system and one ledger, instead of a till plus spreadsheets plus accounting software.
  • Near-expiry stock is visible on a 90-day watchlist instead of being found on the shelf.
  • Discounts above a cashier's limit need a manager override.
  • Reports and P&L come from the same ledger the POS posts to.

Work with me

Need a pharmacy, retail or POS system built on Laravel? Hire a Laravel developer or see custom ERP developer.

My role

Full-stack developer and project lead.

Frequently Asked Questions

Can a pharmacy POS track batches and expiry dates?

Yes. MedPlus tracks batches per medicine, shows batch and expiry on each POS line, and keeps a near-expiry watchlist with first-expiry-first-out prompts.

Why use an append-only ledger in a pharmacy system?

Posted entries are never edited, only corrected with new entries. That gives a full audit trail and keeps sales, purchases, returns and expenses consistent.

Does the POS work for more than one branch?

Yes. It supports per-branch operation with a branch switcher, registers and shifts, and a multi-device offline audit.