A Pharmacy POS That Keeps Selling Offline: Shifts, Units, Batches and Sync

A Pharmacy POS That Keeps Selling Offline: Shifts, Units, Batches and Sync

It is Thursday evening in a busy pharmacy in Riyadh. Six patients are waiting, two of them with prescriptions, and the internet connection drops. With a cloud-only till, the pharmacist has two bad options: send people away, or write sales on paper and re-enter them later, with every risk that brings to stock, cash and tax records. A good pharmacy POS removes that choice. It keeps selling what can safely be sold, holds what cannot, and catches up on its own when the connection returns.

This article covers what a pharmacy point of sale must do beyond a normal retail till, how Sellify's POS handles speed, units, batches, pricing and shifts, exactly how its offline mode works and where it deliberately stops, and how to roll it out across branches without surprises.

What a pharmacy POS must do that a retail till does not

  • Sell from batches: each unit leaves from a specific batch, chosen by nearest expiry, and expired stock must be refused.
  • Sell in different units: a full box to one patient, a single strip to the next.
  • Offer alternatives: when a brand is out of stock, suggest products with the same active ingredient.
  • Apply commercial rules: customer tiers, quantity prices, bonus offers and promotions, identical to the back office.
  • Respect compliance: serialised packs scanned for track and trace, controlled medicines limited to licensed customers, and a tax invoice for every sale.
  • Handle insurance: the insurer pays its share and the patient pays theirs.
  • Stay accountable: shifts, cash counts, discount limits and an audit trail.

Speed at the counter

A pharmacist who has to reach for the mouse for every step serves fewer patients. Sellify's POS is a single-page application built for the keyboard. Ctrl+/ jumps to search, which works by trade name, barcode or active ingredient, and Enter adds the highlighted item. Quantities change with the arrow keys or the plus and minus buttons. F9 opens payment, F10 completes a full cash payment, F8 holds the current order, and Ctrl+K opens a command palette for any action. Multiple order tabs let the pharmacist serve one patient while another looks for their insurance card, and open tabs are kept locally so they survive a page reload.

Product cards show stock status and expiry status at a glance, and payment amounts are displayed large and clear. A dark mode helps in counters with strong lighting or late shifts.

Units, batches and alternatives

Selling units

The cart supports selling units such as box and strip for the same item, with the price following the chosen unit. This removes the common workaround of creating a separate “strip” product, which breaks stock counts.

Batch selection

By default the POS dispenses from the nearest-expiry batch (FEFO). The pharmacist can open the item details to see its batches and stock in other branches, and choose a specific batch when the box in hand differs. Expired, quarantined and blocked batches cannot be sold.

Alternatives with the same active ingredient

When an item is out of stock, the POS shows alternatives with the same active ingredient, so the sale is kept and the pharmacist can advise the patient properly.

Serialised packs

For items under SFDA track and trace, the POS asks the pharmacist to scan every box, including free bonus units, and creates the right notification automatically. Our RSD track and trace guide explains that flow.

Pricing rules applied at the counter

Price errors at the counter are expensive in both directions. Sellify calculates the final price on the server using the same engine everywhere: customer tier discounts (percentage or fixed value), quantity price breaks, “buy X, get Y” bonus offers that add a free line, and promotions by item or category, always applying the best price for the customer. A price sent from the browser is ignored. Line discounts and notes are available, within the limits of the user's role.

  • Customers on account: selecting a customer shows their credit limit and overdue amounts, and a credit sale is refused for a suspended customer, an exceeded limit or overdue invoices unless a manager approves.
  • Insurance: the payment screen has a prescription and insurance section; the invoice is charged to the insurer's account and the patient pays only their share. See our guide to pharmacy insurance billing software.
  • Loyalty: when the loyalty programme is switched on, points are earned per riyal and can be redeemed as a discount at payment.

Shifts and the cash drawer

A setting can make an open shift mandatory before any sale. Each invoice then carries its shift, which makes cash reconciliation straightforward. At closing, the cashier counts the cash, and the system records the expected amount, the counted amount and the difference. Payments can be split across several methods on one invoice, so a patient paying part by card and part in cash does not need two invoices. Shift opening and closing are written to the audit log.

When the internet drops: how offline selling works

Sellify's browser POS has an offline mode built on standard web technology. A service worker stores the POS screen itself, and a local database in the browser (IndexedDB), kept separately for each branch, holds a snapshot of products, customers and price tiers. That snapshot is refreshed every ten minutes while the connection is up.

During the outage

  • Search runs on the local snapshot, by name, barcode or active ingredient.
  • Tier prices and bonus offers are calculated locally with the same rules.
  • Cash sales are saved in a local queue, and a temporary receipt is printed for the patient.
  • A connection indicator at the top of the screen shows that the POS is offline and how many sales are waiting.

When the connection returns

Queued invoices are sent in order. Each carries a unique idempotency key generated at the moment of sale, so if a request is repeated after a timeout, the server recognises it and does not create a duplicate. Each invoice also keeps its actual sale time, accepted up to seven days back, so daily reports and shift totals stay correct. The full invoice, with its tax document, is created when the sale reaches the server. Any invoice that fails, for example because a product was changed in the meantime, appears with its reason and can be retried or deleted.

ActionOnlineOfflineWhy
Search, cart, units, tier and bonus pricingYesYesRuns on the local snapshot
Cash sale with receiptYesYes, queuedSynced later without duplicates
Credit saleYesNoNeeds the customer's live balance and limit
Controlled medicinesYesNoNeeds licence checks and the controlled register
Serial-tracked itemsYesNoEach box must be checked against registered serials
Discount above the role limitWith manager approvalNoApproval codes are issued by the server

These limits are deliberate. Each blocked case depends on information that only the server can confirm at that moment, and allowing it offline would create exactly the compliance or credit risk the system is meant to prevent.

The desktop app: local-first for branches with weak connections

For branches where the connection is unreliable all day, Sellify also offers a Windows desktop application that runs on a local database on the device and synchronises with the company's cloud system. Sync works in batches that shrink automatically on a slow line and grow again when it improves, and the status indicator distinguishes “offline” from “slow connection, retrying”. Stock levels are never copied as fixed numbers; each stock movement is replayed once, so two devices cannot overwrite each other's counts. Official ZATCA tax invoices are issued centrally by the cloud once synced sales arrive, which keeps invoice numbering and the hash chain consistent across devices.

Control at the counter

Speed without control simply moves losses faster. Each role can carry ceilings for line and invoice discounts, returns and credit overrides, enforced on the server. When a cashier goes beyond a limit, the POS asks for a manager approval: the manager enters a PIN and the system issues a one-time code valid for five minutes, tied to that cashier, branch and value. Discounts, returns, deleted invoices, approvals and shifts are recorded in the audit log. For multi-branch roles and approvals, see our article on pharmacy chain management.

Printing and hardware

  • Receipts and invoices: printed in A4 or thermal format, with the ZATCA QR code on the tax invoice.
  • Printers: printing works through the device's default printer; direct ESC/POS printing and opening the cash drawer need the device to be set up in the installation wizard.
  • Scanners: barcode readers work as keyboard input in the search field, and a phone or tablet camera can scan codes on supported screens.

Rolling out offline selling safely

As with any change at the counter, we recommend a staged rollout:

  1. Pilot in one branch with typical traffic for two to four weeks.
  2. Train the team on what stays available offline and what does not, so nobody improvises a credit sale on paper.
  3. Simulate an outage during a quiet hour: disconnect, sell, reconnect, and check that every invoice arrived once.
  4. Review failed sync items daily during the pilot and fix the causes.
  5. Check shift totals against counted cash after offline periods.
  6. Extend branch by branch once the pilot runs cleanly.

Frequently asked questions

Can the pharmacy POS sell without internet?

Yes, for cash sales. Search, pricing, tiers and bonus offers work from a local snapshot, sales are queued with a temporary receipt, and they sync automatically when the connection returns.

Will offline sales be duplicated when they sync?

No. Each sale carries a unique key created at the moment of sale, and the server ignores any repeat of the same key.

How long can a branch stay offline?

Queued sales keep their real sale time and are accepted up to seven days later. In practice, the product snapshot becomes less current the longer the outage lasts, so long outages are better served by the desktop app.

Why can't I sell controlled or serialised medicines offline?

Those sales need live checks: the customer's licence and the controlled-drug register, or the registration status of each serial number. Allowing them offline would undermine the compliance the system enforces.

Does the POS work on tablets?

The POS runs in the browser, and the warehouse and sales rep apps are designed for phones. For a specific device, test the screen size and scanner in a pilot first.

See your counter keep selling

The best test of a pharmacy POS is your own busiest hour, with the cable unplugged. S-Plus will show you Sellify's counter, a forced outage and the sync that follows, together with the rest of the pharmacy ERP. Request a Sellify demo and tell us how many counters and branches you run.

Related Posts

Welcome Back

Sign in to access your account

Create Account

Join and enjoy the full experience

+965 expand_more
🇰🇼 Kuwait +965
🇸🇦 Saudi Arabia +966
🇦🇪 United Arab Emirates +971
🇶🇦 Qatar +974
🇧🇭 Bahrain +973
🇴🇲 Oman +968
🇪🇬 Egypt +20
🇯🇴 Jordan +962

lock_reset

Reset Password

Enter your email to receive a recovery link