Pharmacy operations
Operations at a glance.
Use the work areas to record procurement, inspect batches, post sales, review the ledger and reconcile company activity.
Owner dashboard
Sales, margin, tender mix, stock, expiry and ageing; company and branches. Cached for 5 minutes.
Purchase to sale
Posting order and accounting effects
Stock by batch and expiry
FEFO physical lots · receipt cost basis
| PRODUCT | BATCH | EXPIRY | ON HAND | RECEIPT VALUE |
|---|
Latest posted invoice
Sales posting snapshot
Company master data
Set up the supplier, customer and product records used by purchasing and sales.
Suppliers
Purchase counterparties. Deactivate to block new use; history and settlements remain available.
| CODE | SUPPLIER | STATUS | ACTION |
|---|
Customers
Walk-in and account customers. Deactivate to block new use; history and settlements remain available.
| CODE | CUSTOMER | CREDIT LIMIT | STATUS | ACTION |
|---|
Customer / supplier statement
Posted invoices, receipts/payments, returns and supplier credits through the selected cutoff. One party statement is company-wide across branches; use branch-specific reports for branch analysis.
| DATE | DOCUMENT | ACTIVITY | SOURCE | DEBIT | CREDIT | RUNNING DUE |
|---|---|---|---|---|---|---|
| No statement has been run. | ||||||
Customer credit-limit governance
New customers start at zero credit. A request does not change the active limit; only a different authorized reviewer can approve it.
| CUSTOMER | CURRENT | PROPOSED | STATUS | REQUESTER / TIME | REVIEW |
|---|---|---|---|---|---|
| No credit-limit requests. | |||||
Limits apply to the whole customer account in the company currency. This workflow does not yet support branch-specific limits or future-dated terms.
Medicine & product catalog
Enter identity, sellable pack and base-unit conversion. Registration and legal sale eligibility must be verified separately.
| SKU | PRODUCT | STRENGTH / FORM | PACK CONVERSION | TAX CATEGORY | AVAILABLE BASE UNITS | BOOK VALUE | STATE |
|---|
Tax setup & policy control
Configure each branch jurisdiction explicitly, then approve date-bounded tax policies for that jurisdiction. No statutory rate is assumed.
Branch tax jurisdiction
Set the jurisdiction that applies to transactions from this branch. Clearing it blocks new tax-dependent postings until reconfigured.
Tax categories
Classify products by their tax treatment.
| CODE | CATEGORY | PRODUCTS | STATE |
|---|
Draft tax policy
Policies remain inactive until another authorized user approves them.
Policy register & independent review
Approved policies cannot be edited; create a replacement policy with a new effective period.
| POLICY | CATEGORY / TYPE | JURISDICTION | TREATMENT | RATE / BASIS | EFFECTIVE | STATUS | REVIEW |
|---|
Posted tax register
Source-line tax activity, posted returns as reductions, and a reconciliation against the tax control accounts.
| TYPE | POLICY | JURISDICTION | TREATMENT | RATE / BASIS | LINES | NET | TAX |
|---|
Tax filing workpapers
Create a frozen snapshot from the reconciled posted register, route it for independent review, then record manual filing evidence.
IMS-Astra does not submit a return to a tax authority. Filing status means an authorized user recorded the external reference and evidence. Confirm filing rules, dates and amounts with your tax adviser.
| BRANCH / PERIOD | JURISDICTION | STATUS | NET | TAX | SNAPSHOT | ACTION |
|---|
Exactly one approved policy must match the product category, branch jurisdiction and document date. Sales can use inclusive or exclusive pricing. Purchase tax is exclusive until receipt inventory valuation supports tax-inclusive cost. Unconfigured or ambiguous policies block posting. Verify legal rate, eligibility, exemption evidence and control-account treatment with your qualified tax adviser.
Procurement posting sequence
Purchase approval is not a stock receipt or a payable.
Branch replenishment proposals
Review only. Usable stock excludes held, expired, recalled and within lead-time plus expiry-buffer lots. Approved purchase commitments are included; suggestions never create or approve a purchase order.
| PRODUCT / POLICY | SUPPLIER | USABLE | NEAR EXPIRY | OPEN PO | PROJECTED | MIN / TARGET | SUGGESTION | LAST PO PRICE REFERENCE | ACTION |
|---|
Suggested price is a historical reference only. Confirm current quote, tax, supplier, pack quantity, expiry and authorization in the editable draft PO.
Purchase requisitions
Branch demand must be reviewed independently before it can be grouped into a draft PO. Requests do not reserve stock or post accounting.
| REQUEST | BRANCH / REQUESTER | NEED BY | STATUS | LINES / BASE QTY | SUPPLIER | ACTION |
|---|
Purchase orders
Draft, approval, and remaining received commitment
| ORDER | SUPPLIER | DATE | STATE | TOTAL | ACTION |
|---|
Order detail
Product pack and quantity conversion are snapshotted at save.
Goods receipts
Draft inspection records and posted lot/GRNI entries
| GRN | PO / SUPPLIER | DATE | STATE | OWNED BASE | FREE BASE | QUARANTINED | ACTION |
|---|
Supplier invoices
Match to received stock, then post the payable. Stock is not added a second time.
| INVOICE | PO / SUPPLIER | DATE | STATE | TOTAL | ACTION |
|---|
Supplier returns
Returns link to posted bill matches and exact received lots. Vendor credit and stock posting are accounted separately.
| RETURN | SUPPLIER BILL | SUPPLIER | DATE | STATUS | TOTAL / CREDIT | ACTION |
|---|
Supplier credit notes
Record source invoice price adjustments or commercial rebates against unpaid AP. These notes do not change received stock or supplier invoice tax.
| NOTE | SUPPLIER BILL | SUPPLIER | DATE | TYPE | STATUS | AMOUNT | ACTION |
|---|
Receipt cost reallocation
Capitalize an approved positive purchase-price variance across its matched receipt lines. This creates a linked journal and never changes the supplier bill or payable.
| ADJUSTMENT | SOURCE BILL | EFFECTIVE DATE | AMOUNT | STATUS | ACTION |
|---|
Review shows the split between remaining inventory, already sold units (COGS), count loss and disposal. Posting moves value from account 6050; AP, tax and the original supplier invoice remain unchanged.
Downstream documents
Each later stage has its own commit and accounting effect.
| STEP | DOCUMENT | STATE | STOCK EFFECT | LEDGER EFFECT |
|---|
PO approval has no stock or GL effect. A posted GRN records accepted lots at receipt cost (Dr Inventory / Cr GRNI). A matched supplier bill clears GRNI into AP and does not add inventory a second time.
Lot-level inventory
FEFO controls physical lot selection; accounting carrying value uses moving weighted average.
Quarantine / stock holds
Active holds reduce saleable quantity; releasing stock requires an authorized reviewer and a recorded reason.
| CASE | PRODUCT / BATCH | REASON | HELD | STATUS | ACTION |
|---|
Quarantine disposal
Request, independent approval, recorded physical execution and a separate witness are required before stock or inventory value changes.
| CASE | PRODUCT / BATCH | AUTHORIZED / REMAINING | STATE | DECISION | ACTION |
|---|
Pharmacy recall cases
Opening a recall blocks every selected lot from FEFO and checkout immediately, including sales drafts created earlier. Resolve the case only after review; quarantine holds remain until a separate disposition action releases or disposes them.
| CASE / ISSUER | DATE / REASON | STATE | LOTS / UNITS AT NOTICE | ACTION |
|---|
Count adjustments
Posting adjusts on-hand by lot and records the carrying value variance.
| ADJUSTMENT | REASON / DATE | STATE | LINES | NET QTY | ACTION |
|---|
| SKU / PRODUCT | BATCH | EXPIRY DATE | TOTAL / WAREHOUSE / ROUTE / HELD | RECEIPT UNIT COST | RECEIPT VALUE | STATUS |
|---|
Cashier shifts & till close
Cash tenders and cash-bank settlements must belong to an open drawer. Closing requires a physical count and an independent review.
Open branch drawer
Only one drawer can be open per branch while all tills share account 1010.
Submit my closing count
An open shift assigned to your account will appear here.
Shift register
Opening-to-close drawer movements and book adjustment remain auditable.
| REGISTER / BRANCH | CASHIER | OPENED | STATUS | OPENING | EXPECTED / COUNTED | CASH VARIANCE | BOOK VARIANCE | ACTION |
|---|
Any shift still open, awaiting review, or requiring recount blocks accounting-period close. Approved shortages post to Cash over and short (6040); overages post to Other income (4100). The first version enforces one shared till per branch.
Prescription desk
Capture the prescription record, then require a different authorized pharmacist to verify it before dispensing.
Capture prescription
One medicine per line. Verification is a separate action by another user.
Prescription register
Pending records need independent verification. Rejected and verified records remain in the audit trail.
| RX | PATIENT / CUSTOMER | PRESCRIBER | VALID UNTIL | STATUS | ACTION |
|---|
Controlled-class stock movement register
Internal branch stock trace from immutable movements. It does not represent a statutory controlled-drug book.
| DATE / BRANCH | PRODUCT | LOT / EXPIRY | MOVEMENT | SOURCE DOCUMENT | QUANTITY | VALUE Δ | LOT CHECK |
|---|---|---|---|---|---|---|---|
| Choose a branch and run the register. | |||||||
Controlled dispensing is fail-closed until jurisdiction-specific rules, registers, permissions, witnesses and retention requirements are configured and reviewed. This screen does not claim regulatory compliance.
Point of sale
Create a customer invoice, review FEFO allocation and post stock, tender and accounting together.
Sales invoices
Posted invoices and drafts ready to resume
| INVOICE | CUSTOMER | DATE | STATE | TOTAL | ACTION |
|---|
Customer returns
Every return links to a posted invoice line. Returned medicines enter quarantine; refund liability is settled separately.
| RETURN | ORIGINAL INVOICE | CUSTOMER | DATE | STATUS | TOTAL / REFUND DUE | ACTION |
|---|
Sales invoice
Three distinct products, batches and expiry dates; cash and credit separated.
| PRODUCT | BATCH | EXPIRY | QTY | PRICE | NET | COST |
|---|
Sale posting issues stock once and records cash to till, bank transfers to bank, card/wallet tenders to provider clearing, customer receivable, sales, COGS and inventory in the same database transaction. Gift voucher redemption stays unavailable until its liability ledger is configured. A duplicate issue is rejected by source identity.
Cash and bank settlements
Collect customer receivables, settle customer and supplier return balances, and pay supplier invoices against posted source documents.
Cash / bank transactions
Receipts and payments linked to customer and supplier subledgers
| DOCUMENT | TYPE / COUNTERPARTY | DATE | ACCOUNT | REFERENCE | AMOUNT | STATUS | ACTION |
|---|
Bank statement reconciliation
Import statement lines, match every statement item to a posted bank entry, then require an independent reviewer. Unmatched book entries remain visible as outstanding items.
| STATEMENT | BRANCH / PERIOD | LINES MATCHED | BANK CLOSE | BOOK BALANCE | STATUS | ACTION |
|---|
General ledger & vouchers
Trial balance and manual journal postings
Posted manual journal vouchers
Review posted manual entries. Reversals create a new, exact opposite journal in an open period; source documents must use their own return or correction flow.
| VOUCHER | DATE | NARRATION | DEBITS | CREDITS | REVERSAL | ACTION |
|---|
Accounting period close
Check unposted documents and ledger controls, request an exact close snapshot, then require a different authorized reviewer to approve it.
| PERIOD | STATUS | REVISION | LAST CLOSE EVENT | ACTION |
|---|
Close approval queue
Approval rechecks the snapshot while holding the period lock; changed controls make the request stale.
| PERIOD | REQUESTED BY | REQUESTED | STATUS | SNAPSHOT | ACTION |
|---|
Reopen approval queue
A reopen request keeps the period closed until a different authorized user approves it. Year-end closed periods need a third person.
| PERIOD | REQUESTED BY / REASON | STATUS | DECISION | ACTION |
|---|
Year-end P&L close
Request a digest-bound journal that clears this period’s revenue and expense accounts into the selected retained earnings account. Run after reconciliation and before accounting-period close approval.
The close posts a balanced journal only after independent approval. Reopening the accounting period requires a third actor and automatically posts the linked reversal before the period can be corrected.
| PERIOD | RETAINED EARNINGS | RESULT | STATUS | REVIEW / JOURNAL | ACTION |
|---|
Trial balance
Debit-positive signed balance; liabilities, equity and income normally carry credits.
Financial statement check
Current demo-period unclosed profit/loss is included in equity.
| CODE | ACCOUNT | CLASS | DEBITS | CREDITS | NET D / (C) |
|---|
Financial reports
Calculated from posted general-ledger entries only. Profit and loss and cash movements use a date range; the balance sheet is as of the end date.
Profit and loss · revenue
Credit-normal revenue less contra revenue accounts
| CODE | ACCOUNT | AMOUNT |
|---|
Profit and loss · expenses
Debit-normal expense accounts for the selected date range
| CODE | ACCOUNT | AMOUNT |
|---|
Balance sheet · assets
Debit balances at the end date
| CODE | ACCOUNT | BALANCE |
|---|
Balance sheet · liabilities and equity
Shows retained earnings posted by an approved year-end close; current-year profit or loss remains included until that close is approved.
| CODE | ACCOUNT | BALANCE |
|---|
Cash and bank · general-ledger view
Posted journal balances for till, safe, bank, provider clearing and funds-in-transit accounts. This is a GL summary, not an independent cash count or bank-statement reconciliation.
Balances by account
| CODE | ACCOUNT | OPENING | PERIOD DEBIT | PERIOD CREDIT | CLOSING GL BALANCE |
|---|
Movement by posting source
| POSTING SOURCE | JOURNALS | INFLOW | OUTFLOW | NET |
|---|
This report totals posted general-ledger entries. It does not compare till counts, safe custody, processor settlements, or bank statement lines against their independent source records.
Draft documents, unposted cash adjustments and unposted returns are excluded. Net income is included in equity until an approved year-end close transfers it to retained earnings; ordinary accounting-period close does not close the P&L. Reconcile this view with the trial balance before reporting financial statements externally.
Opening balance cutover
Stage source evidence and reconcile GL, customer AR, supplier AP and stock lots at one cutover date. Staging has no posting effect.
Source rows are immutable after staging. Correct an import by cancelling its batch and staging a new digest. Validation blocks review when control totals differ, live activity already exists on or before the cutover date, or legacy master opening balances remain unlinked. A different authorized user can approve or reject the exact staged digest. A separately authorized poster can post an approved batch after all controls pass; posting atomically creates the opening journals, dated AR/AP items and stock lots/movements.
Stage source manifest
Amounts and quantities must be decimal strings to avoid binary rounding. Each row needs a unique source_row_key and evidence_reference.
Staged cutover batches
Review each source digest, branch-level control comparison, warnings and validation failures.
| CUTOVER | SOURCE | ROWS | STATUS | DIGEST | ACTION |
|---|---|---|---|---|---|
| No staged batches. | |||||
Chart of accounts
Control accounts and manual-posting accounts seeded for this verified flow.
| CODE | ACCOUNT NAME | ACCOUNT TYPE | PARENT | POSTING | NORMAL | DEBIT BALANCE | CREDIT BALANCE |
|---|
1010 Till · 1020 Safe · 1030 Bank · 1040 Provider clearing · 1100 Receivables · 1200 Inventory · 1210 Supplier advances · 1300 Purchase tax · 2000 Payables · 2010 GRNI · 2020 Customer advances · 2030 Sales tax. Tax accounts are defined but unused in this zero-tax demo; local tax rules have not been configured.
Customer order bookings
Record requested demand, review it independently, then convert approved quantities into linked sale drafts. Booking never reserves stock or posts money.
Capture customer demand
Current sellable availability is informational; FEFO stock is rechecked during invoice conversion.
Booking register
Draft, review, conversion and invoice states stay separate.
| BOOKING | CUSTOMER | REQUEST DATE | STATUS | LINES / CONVERSIONS | ACTION |
|---|
Distribution planning
Region, territory and route masters, route plans, field team, daily visit lists, rider assignment and performance. Plan and team changes take effect from a chosen date and keep their history.
Territories & routes
Route plan & field team
Daily visits
Rider assignment
My deliveries (rider view)
Performance & route policy
Loyalty, vouchers & near-expiry pricing
Near-expiry markdown rules (maker-checker), opt-in loyalty points, and gift vouchers that reconcile to account 2060.
Near-expiry rules
Loyalty programme
Gift vouchers
Expired balance breakage
ABC analysis and demand forecast
Read-only analytics from posted sales. Choose the period in the owner dashboard on the Overview page (default: month to date).
ABC analysis
Demand forecast
Quotations & installment plans
A quotation is an estimate: prices come from the price authority, nothing is reserved and nothing is posted. Converting it creates a normal sale draft with today's prices and stock (differences and any backorder are shown). An installment plan splits the balance of a posted on-account invoice into a down payment and monthly installments; receipts are applied to the oldest installment first. No interest or markup is charged in the pilot.
New quotation
Installment plans
Overdue installments
Finance controls
Cheque register, voucher types, day-end control and control account mapping. These records are evidence and configuration: they never post a journal and never change how a document posts unless a mapping is configured.
Control desk
Purchase match cases and tolerance, lot-level stock reconciliation, unit and pack master, head-office delegation and stock pooling. These screens record evidence and configuration: none of them posts a journal or moves stock by itself.
Regulatory scope
Requirements per jurisdiction, customer types and customer licences. A licence is entered by one person and verified by another. A sale to an identified (non-walk-in) customer whose type has a requirement is blocked unless a verified licence is valid today. Walk-in retail is never affected.
Requirement catalogue
The jurisdiction must match the branch tax jurisdiction label. CUSTOMER_TYPE covers every product; PRODUCT_CLASS only products whose dispensing class, dosage form or category equals the value. Nothing is pre-filled.
Customer type
Customer licences
Licences expiring within 30 days
Supplier master
Lifecycle, approved terms, price offers, statement reconciliation and purchase rate history. Moving a supplier to ACTIVE or BLOCKED and approving terms need a second person; a statement reconciliation posts nothing.
Supplier lifecycle
ON_HOLD stops new purchase orders. BLOCKED also stops receipts and payments. Existing bills and balances stay visible.
Terms (versioned, effective-dated)
A purchase order and a supplier bill read the terms effective on their own date; due date = bill date + payment days. The credit limit is informational.
Supplier offers
Compare offers
Supplier statement reconciliation
Debit reduces what we owe (payment, return, credit note); credit increases it (invoice). Paste CSV rows: date (YYYY-MM-DD), reference, debit, credit.
Purchase rate history
Posted goods receipts (per lot) and posted supplier bills only. Bonus quantity is shown, not netted into the rate.
Trade programs & claims
Customer groups, principal links, approved discount and bonus policies, claims on principals, their response, settlement and write-off. Policy approval needs a different user; write-offs need the tenant owner.
Customer groups and principal links
Policies
Claims
Claims receivable (1160)
Program outcome
Payroll
Monthly run: draft, approve (different user), post, then pay through cash/bank. Statutory rates are company configuration; none are shipped.
Payroll runs
| Run | Month | Kind | Status | Net |
|---|
Run detail
| Employee | Gross | Deductions | Tax | Advance recovery | Net | Payable |
|---|
Deduction rules and tax slabs
| Code | Name | Basis | Rate | Status |
|---|
Monthly entries and unpaid absences
| Employee | Month | Type | Amount | Status |
|---|
| Employee | Date | Days | Status |
|---|
Payments, advances and balances
| Employee | Payable | Advance outstanding |
|---|
| Document | Employee | Date | Amount | Outstanding |
|---|
Statement and final settlement
| Date | Account | Source | Debit | Credit |
|---|
Subledger reconciliation
Promotion campaigns
Branch-scoped offers follow draft → independent review → activation. POS applies one unambiguous active campaign and snapshots the benefit on the invoice.
Campaigns apply to one product and branch at a time. Overlapping active periods for the same product and branch are blocked. The discount reduces taxable sale value and posts separately to account 4020; stock cost and tender allocation remain based on the final invoice total.
Create campaign draft
A draft has no checkout effect. Submit it for review after checking dates, amount and branch.
Campaign lifecycle
Review decisions are revision-bound and cannot be made by the campaign creator.
| CODE / NAME | BRANCH / PRODUCT | DISCOUNT | VALIDITY | STATUS | REV | ACTION |
|---|
Workforce
Branch employee directory and evidence-backed attendance. Payroll and salary records are not included in this foundation.
Use work identity only. Attendance punches are immutable; corrections append a replacement after an independent reviewer approves. The effective attendance policy timezone must match the branch timezone.
Add employee
Employee code is permanent. Personal identifiers and payroll details are intentionally absent.
Attendance policy draft
Set the branch work week and shift window. A different user must approve the policy.
Employee directory
Active, inactive and terminated records; changes require a fresh revision.
| CODE | EMPLOYEE | BRANCH | DEPARTMENT / ROLE | MANAGER | EMPLOYMENT | STATUS / REV | ACTIONS |
|---|
Attendance policy review
Independent approval makes a policy effective for its dated range.
| BRANCH / POLICY | REV | EFFECTIVE RANGE | TIMEZONE / DAYS | SHIFT | STATUS | REVIEW |
|---|
Record attendance
Manual and device entries are dated in the branch’s configured timezone.
Attendance corrections
Reviewers cannot approve their own correction request.
| EMPLOYEE | ORIGINAL | PROPOSED | REASON | STATUS | REVIEW |
|---|
Attendance event log
Only the latest effective event in a correction chain is used for future attendance calculations.
| BUSINESS DATE | EMPLOYEE | EVENT | OBSERVED AT | SOURCE | POLICY | STATE | ACTION |
|---|
People & access
Invite verified staff and assign least-privilege company roles. Changes take effect on the next API request.
Invite staff member
Invitation is single-use, email-bound and expires after seven days.
Assign an additional role
Role grants add selected capabilities at company or branch scope. Member branch visibility is still managed separately below.
Branch access scope
Choose whether a member can see all company branches or only selected branches. The rule is enforced by PostgreSQL on branch-owned records.
Company members
Membership role is the base role assigned when an invitation is accepted.
| MEMBER | BASE ROLE | STATUS | BRANCH SCOPE | ACCESS |
|---|
Additional role assignments
Revoking a grant removes its permissions immediately; the original membership role remains.
| MEMBER | ROLE | CAPABILITY SCOPE | VALID UNTIL | ACTION |
|---|
Pending invitations
Only an account verified with the invited email can accept.
| ROLE | EXPIRES | ACTION |
|---|
Branch-owned records are filtered at the database boundary. Shared master data such as products, customers, suppliers, chart of accounts and company settings remains company-wide.