CarexHQ Pharmacy
The counter, the shelf, the supplier and the books on one stock ledger — so every sale decrements the right batch, every till counts itself at close, and the owner can see in money what is expiring, leaking or not moving.
1Welcome to CarexHQ Pharmacy
What the product is, and what it replaces.
CarexHQ Pharmacy is the retail half of CarexHQ: a point-of-sale and stock system for a pharmacy, wired to the same accounts, roles and reporting as the hospital product. Sell at the till and the stock, the batch, the expiry date, the profit and the cash position all move in the same action — nothing is re-keyed into a spreadsheet at the end of the day.
One stock ledger
Sales, receipts, counts and write-offs all post to the same ledger, so the number on the shelf and the number in the report are the same number.
Expiry-first stock
Dispatch picks the earliest-expiring batch first (FEFO), refuses expired stock by default, and values what is sitting near expiry in cash — not in boxes.
The till counts itself
Open a shift with a float, sell all day, close with counted cash. Shortages, overages, discounts and voids are attributed to a person and a shift.
Sells through outages
A register can take cash while the internet is down and sync the sales back when it returns — with receipts numbered so they stay unique across the shop.
2Getting started
Signing in, then finishing the seven-step setup.
2.1 Signing in
- Open your pharmacy’s address in Chrome, Edge, Safari or Firefox and bookmark
/login. - Enter the work email your administrator gave you and your password — either from an invitation or created directly when your account was made.
- Press Sign in. Owners, managers and back-office roles land on the dashboard; a cashier lands directly on the Point of sale, because that is the only screen they need.
2.2 The setup checklist
Open Onboarding in the Administration group. Every step is ticked from live data rather than a flag someone has to remember, so the list always shows exactly what is left:
- Pharmacy profile and branch — name the shop and confirm the branch it sells from.
- Tax and receipt settings — whether your prices include tax, and what the receipt says.
- Import products and opening stock — bring the catalogue in with batches, expiry dates and cost.
- Add suppliers — record who you buy from, so purchasing and creditor ageing work.
- Invite staff — cashiers, pharmacists and the back office.
- Opening stock count — count what is actually on the shelf and approve the variance.
- First sale — ring up the first customer; the dashboard comes alive.
3Your workspace tour
The same three parts as the hospital product: sidebar, header, content.
3.1 The sidebar
The sidebar only shows what your role may open and what your plan includes. For a pharmacy tenant the groups are:
| Group | Screens |
|---|---|
| Sell | Point of sale (/pos), Customers (/customers) |
| Stock | Inventory (/inventory), Expiry & low stock (/inventory/alerts), Stock counts (/inventory/counts), Import (/inventory/import) |
| Buy | Purchasing (/purchasing) |
| Money | Accounting (/accounting), Reports (/reports), Leak report (/reports/leak) |
| Administration | Staff, Activity log, Devices, License, Onboarding, Subscription, Settings |
The sidebar brand shows your tenant (“MediPharma · PMS” on the demo account) and, on demo tenants, a sample data badge. At the bottom is the Sign out link.
3.2 The header
- Today’s date and a greeting — proof you are looking at live data.
- Bell — notifications; user chip — your name, role and department.
- Hamburger — collapses the sidebar for more working space.
3.3 Content area
Every screen follows the same pattern: eyebrow, title, one line of explanation, primary actions on the right, then cards or a table. Lists share search, filters and pagination — learn one screen and you know them all.
4Roles & access
Seven roles, each with its own ceiling on money and stock.
| Role | Typical staff | What they can do |
|---|---|---|
| Owner | Pharmacy owners | Everything: till, stock, purchasing, money, staff, settings, subscription. Discounts up to 100%; refunds need no second signature. |
| Manager | Shop managers | The whole shop except adding or changing staff. Discounts up to 20%; refunds above 50,000 need approval. |
| Superintendent | Superintendent pharmacists | Sell and confirm controlled medicines, adjust stock and approve counts, read reports. Discounts up to 10%; refunds above 10,000 need approval; no voiding, no price overrides, no suppliers. |
| Pharmacist | Dispensing pharmacists | Sell, confirm controlled medicines, see cost and profit. Discounts up to 5%; no refunds, voids, stock adjustments, count approval or reports. |
| Cashier | Till operators | Sell, look after customers and browse the catalogue. Discounts up to 2%; cannot see cost or profit, refund, void or open a report. Lands on the till. |
| Store | Store keepers | Cannot sell: receive and adjust stock, manage suppliers, see cost. No profit or sales reports. |
| Accounts | Accountants | Cannot sell: expenses, all nine reports, profit and supplier records. No stock edits. |
These are defaults; each role’s permission set is stored per tenant, so an owner can tune them. What never changes is where they are enforced: the server re-checks your account on every request, so a changed role or a deactivated account takes effect on the next click, not at some future token expiry.
5The dashboard
The owner’s morning: three time buckets, the cash drawer, and what needs a decision.
The dashboard answers one question — is the shop healthy today? — in four parts:
- Today / Yesterday / Last week — sales, profit, transaction count and average basket for each period, side by side.
- Cash — expected, counted and the variance between them. A non-zero variance posts to the ledger and appears in the leak report.
- Needs your attention — expired and near-expiry stock, items at or below reorder level, cash variance, and a shortcut into the leak report.
- Trends and top products — what is moving, so buying decisions are not guesses.
6Point of sale
Open a shift, ring the sale, close and count.
6.1 Opening the till
- Open a shift with an opening float (the cash drawer starts at, say, 20,000). If your tenant requires an open shift — the default — the till refuses to sell without one.
- Scan or type a product name in the lookup. Each product can be sold in its strip, box or base unit; the picker converts to base units so stock is always tracked one way.
- Choose the customer — Walk-in by default. A credit sale requires a real customer with a credit limit.
- Apply a discount if you are allowed one — per line, or across the sale with a reason. Your role’s ceiling is enforced as you type.
- Charge, split the payment across cash / card / transfer / mobile money if needed, enter cash tendered, and the change is calculated for you.
- Receipt — the confirmation shows the reference, the line count, what was paid and the change; print it with one button.
6.2 What the till refuses, and why
- A discount above your ceiling — “Your role may give up to 2% discount.”
- An expired batch — dispatch picks the earliest expiry first and stops at expired stock. Selling one deliberately needs a permission and is written to the activity log.
- A below-cost line — unless your tenant has been configured to allow it, in which case it is flagged rather than hidden.
- A credit sale with no customer — credit has to belong to somebody.
- Sale without an open shift — every naira has to start in a counted drawer.
6.3 Holds, refunds and closing
- Hold a basket when a customer steps aside, resume it later, or discard it (a discard is recorded as a void). You cannot close a shift while a held basket is still parked.
- Refunds and voids are permission-gated and attributed; refunds above your role’s limit need a second signature.
- Close the shift with counted cash — optionally by denomination. Expected cash = float + cash sales − cash refunds; the difference is the variance, which is posted to the ledger and shown on the dashboard and in the leak report.
7Customers
Walk-ins are anonymous; account customers are a relationship.
- Create and edit customers with contact details, a credit limit and a running balance.
- Credit sales move the balance; the till refuses a credit sale that would exceed the limit.
- Balances feed the money screens — the debtors ageing report is this list, ranked by how long the money has been owed.
- Pharmacy tenants get a corporate customer on the demo, with a credit sale already on file to show the flow.
8Inventory & stock counts
The catalogue, the alerts that value the shelf in cash, and the count that proves it.
8.1 The catalogue
- Every product with category, brand, strength and form, its base unit and unit conversions (a strip of 10, a box of 100 — conversions must divide evenly, and stock is always held in base units).
- Reorder level, cost and shelf price — cost is visible only to roles with the cost permission.
- Open a product for its batches (quantity, expiry, cost) and its full movement history: receipts, sales, adjustments — every line attributable.
- Prescription-only and controlled flags, which the till surfaces before the sale is confirmed.
8.2 Expiry & low stock
Alerts answers “what needs a decision today?”, and every number is valued at cost, so the money sitting on the shelf is visible:
| Alert | What it means |
|---|---|
| Expired | Batch past its date — blocked from normal dispensing. |
| Expiring in 30 / 60 / 90 days | Your configured near-expiry windows, with the cost value at risk. |
| Low stock | At or below the reorder level — reorder before it becomes a stockout. |
| Overstock | More cash than the shelf needs; the other side of the same decision. |
8.3 Stock counts
- Create a count for a branch and date.
- Enter what is on the shelf, line by line — the system shows expected against counted.
- Submit, then a second person approves it, which posts the variance movements to the ledger.
Variances are not buried: they appear in the leak report as stock count variances, attributed to the count and the approver.
8.4 Import and adjustments
- Import your catalogue from CSV with a dry run: the screen shows exactly what will be created or changed before anything is saved.
- Adjustments — corrections, damaged goods and expired write-offs — need a reason, the adjust stock permission, and land in the activity log.
9Purchasing
Where stock and cost enter the business.
- Add a supplier — who you buy from, with contact details.
- Raise a purchase order for the products and quantities you need.
- Receive against the order — this is where stock arrives: batches are created with their expiry dates and cost, on-hand quantities rise, and the supplier’s balance moves with it.
- Repeat — the supplier record accumulates the relationship the reports then read.
10Accounting & reports
Nine reports, a chart of accounts, and a log of who did what.
10.1 Accounting
- Expense categories and expenses — rent, salaries, utilities: record them as they happen rather than reconstructing them at month end.
- Chart of accounts — the ledger the entries post to, including the entries the system writes itself (shift variances, expenses).
10.2 Reports
Choose a range (30 days by default) and open any of the nine:
| Report | Answers |
|---|---|
| Daily sales summary | What sold, and for how much, day by day. |
| Profit per product / per category | Which lines actually make money. |
| Profit and loss | The period in one view. |
| Cash flow | Money in and out of the drawer. |
| Debtors ageing | Who owes you, and for how long. |
| Creditors ageing | Who you owe, and what is due. |
| Tax collected | Your tax position for the period. |
| Cash-up summary | Every shift: expected, counted, variance. |
Every report exports to CSV, and all of them require the view reports permission — the accountant has it, the cashier does not.
10.3 Activity log
Sales, refunds, voids, adjustments, approvals — every sensitive action is recorded with who, when and what. It is the screen that answers “who changed this?” in one search instead of one argument.
11The leak report
Where the money escapes, in eight sections and one total.
Most pharmacies do not lose money in one dramatic event; they lose it in small, unattributed ones. The leak report gathers all eight into one page for a 30-day window (configurable), each section priced at cost:
| Section | What it surfaces |
|---|---|
| Expired and near-expiry stock | Cash locked in stock that cannot be sold at full value. |
| Stock count variances | Where the shelf and the ledger disagree. |
| Discounts by staff | Who discounts, how much, and how often — against their ceiling. |
| Voids and refunds by staff | Reversals, including refunds taken just before a shift closes. |
| Sales below cost and price overrides | Lines that were sold for less than they cost. |
| Slow-moving stock | Nothing sold in the configured window (60 days by default), valued at cost. |
| Cash variance per shift | Drawers that did not count out. |
| Stock adjustments by user | Corrections, damage and write-offs, per person. |
12Staff & settings
Administration — owners and managers.
12.1 Staff
- Team — search, filter by role and status, change a person’s role inline, activate or deactivate. Deactivation applies on their next request, not later.
- Invitations — send an email invitation, or create the account directly with a known password for staff without email (common on a shared shop computer). Resend, revoke, or copy the invite link.
12.2 Settings
| Tab | What lives there |
|---|---|
| Pharmacy profile | Shop name, address, phone, email, currency, opening hours, footer note and logo — everything printed on your receipt and reports |
| Departments | The hospital product’s grouping; unused by a pure pharmacy tenant |
| My profile | Your own name, phone and department |
| Account & security | Change your password |
13Devices & offline selling
Registers that keep selling when the internet does not.
13.1 What a register is
A device is one till: a machine (or browser install) with its own identity, its own receipt prefix and its own place in the sync queue. The Devices screen shows each register’s last check-in, how many sales it is still holding locally, and its receipt prefix — the thing that keeps printed receipts unique across the estate.
13.2 Activation codes
- A register is added by the CarexHQ platform team when your counter is set up (minting a code hands out the right to sell against your stock, so it is deliberately not an everyday button).
- An owner or manager can reissue the one-time activation code for a register that has not yet been activated.
- The code is shown exactly once — copy it into the register’s install. The database keeps only its hash, so a database leak cannot hand out device tokens.
- Revoke a lost or stolen machine from the same row; it stops syncing immediately.
13.3 How sync behaves
- Sales are immutable. Once taken, an offline sale is pushed as-is; pushing it twice is harmless (each sale carries an event id, so retries are idempotent).
- Stock adds up. Quantities combine rather than overwrite; a stock balance that goes negative is allowed but flagged into the leak report rather than silently corrected.
- Prices are last-writer-wins, and customers merge rather than duplicate.
- Receipts stay unique offline: numbered
BRANCH-DEVICE-000123, so two registers can never print the same number. - The clock must agree. A device more than seven days out of step is refused until it is corrected — skewed timestamps would corrupt expiry and shift logic.
14License & plans
What you are licensed for, what your plan includes, and what happens when it lapses.
14.1 The license
The License screen shows your state and lets an owner or manager redeem a renewal code:
- active → grace → expired — a lapsed license gets a 14-day grace period before sales stop, so a late payment never closes the shop on the spot.
- PMS-RENEW-… codes are single-use and bound to your pharmacy; redeem one and the clock resets.
- When a license expires the till stops taking sales, but your data never goes — export is always available, and a renewal restores everything in place.
- Suspended and revoked are separate states, set by the platform for commercial reasons.
14.2 Plans
| Plan | Includes | Limits |
|---|---|---|
| Starter | Dashboard, point of sale, inventory, purchasing | 1 branch · 5 users |
| Pro | Starter + accounting, reports, leak report, staff permissions | 1 branch · 25 users |
| Chain | Pro + multi-branch operation and branch comparison | Unlimited branches and users |
A new pharmacy starts on Starter. Screens outside your plan show a friendly upgrade page rather than breaking, and the Subscription screen (owners) carries the commercial terms: plan, seats, invoices and online payment.
15FAQ & troubleshooting
| Question | Answer |
|---|---|
| A menu item is missing | Your role lacks the permission or your plan lacks the module. Settings → Staff shows the role; Subscription shows the plan. |
| The till will not let me sell | Either no shift is open (the default setting requires one) or the license has expired — check the banner at the top of the till and the License screen. |
| “Your role may give up to 2% discount” | The discount ceiling for your role: cashier 2%, pharmacist 5%, superintendent 10%, manager 20%, owner 100%. It is enforced by the server, not just hidden in the form. |
| It refuses to sell this batch | It is expired. Dispatch is first-expired-first-out; selling expired stock deliberately requires a permission and is written to the activity log. |
| A credit sale will not go through | Credit needs a customer, and the sale must fit inside their credit limit. |
| Can a cashier see my costs? | No. Cost and profit are hidden from cashiers at the API level, not merely with CSS. |
| Can another pharmacy see my sales? | No. Every record carries the pharmacy’s id and every query is scoped to your signed-in tenant on the server. |
| We lost the internet | Registers queue sales locally and sync when the connection returns; receipts are numbered per device so nothing collides. The hospital workspace, by contrast, needs a connection. |
| The license expired — is my data gone? | No. Sales stop, export stays available, and a PMS-RENEW- code restores selling. Grace lasts 14 days before that. |
| Someone left the shop | Deactivate them in Staff. The server re-reads the account on every request, so they are out on their next click. |
| How do I reset the demo? | npm run reset:demo-pharmacy rebuilds the seeded pharmacy (and npm run reset:demo the hospital), each scoped to its own demo tenant. |
| What devices are supported? | Any modern desktop or tablet browser; the sidebar collapses on smaller screens. Registers that must survive outages are set up as devices (§13). |