A Session Credit is one prepaid use of a service the patient already paid for. The patient bought ten laser sessions up front. Each visit burns one credit. The clinic owes them service until the credit is delivered. This guide covers the daily rules that bite if you do not know them, plus the new audit tools that surface mistakes early.

Quick glossary#

If you have used Pabau, Mindbody, or Glofox before, this is the same concept under a single name:

  • Session Credit: the unit the patient owns. One credit = one delivered service.
  • Sales package: the catalog row that defines what a sold bundle looks like (10 laser sessions for 5000 AED).
  • Package sale: one patient buying one package. Produces N credits.
  • Invoice item: the line on the invoice that holds the remaining credit balance.

Internally the system stores it as invoice item with remaining quantity. The Session Credits tab in the patient profile, the booking picker, and the audit views all read from the same balance.

The happy path#

  1. Patient walks in for a session covered by a credit they own.
  2. Reception checks them in. The credit balance does not move yet.
  3. Provider delivers and submits the service report. Status flips to Done.
  4. Credit consumes. Deferred revenue becomes recognised revenue. The remaining balance drops by one.

Rule 1, consumption happens at service report submit#

One event, not two. The credit balance decrements when the provider submits the service report (session DONE), or when reception explicitly mark-delivered an on-delivery line. Check-in does not touch the credit balance. If the patient walks out before service is delivered, cancel the session and the credit stays untouched and available for the next booking.

This is intentional. It keeps the credit ledger as a single source of truth and means refund math has only one consumption event to undo per credit.

Rule 2, the credit balance is recomputed, never stored#

The Session Credits tab does not store a static "uses left" number. Remaining is recomputed at every read as quantity − delivered − refunded per invoice item. So if Finance refunds an item from the back office, reception sees the new balance the moment they reopen the tab. There is no sync step and no orphan-reservation state to clear, because there is no reservation primitive in the system.

Rule 3, expiry is checked at consumption, not at sale#

  • A patient can buy a credit pack with a 6-month validity and use the last credit on day 179. Fine.
  • On day 181 the pack is expired. Check-in warns or blocks depending on the package's expiry policy.
  • If check-in happened on day 179 but the service report submits on day 181 (provider forgot to submit), expiry is evaluated at the moment of mark-delivered: the system raises a clear "credit expired" error. Escalate to an administrator and finance if the service was genuinely delivered earlier; there is no standard staff expiry-extension action.

New behaviour as of June 2026: a nightly job flips every overdue pack to Expired automatically. Before this, packs whose validity date had passed kept showing as Active in the Session Credits tab forever. Now Active means really usable.

Rule 4, cross-branch consumption only when the package allows#

If the patient bought at Branch A and shows up at Branch B:

  • If the package's cross-branch redeem is on: reception at B sees the credit and check-in proceeds.
  • If off: check-in is blocked. Either redirect to Branch A or sell a new credit at Branch B.

The owner sets this per package in the catalog. Default is usually off. Only packs designed for chains have it on.

Rule 5, one session, one credit, even with multiple providers#

If two providers worked on the same session (rare, but happens for combined treatments), only one credit consumes for the session. Both providers can submit service reports, but the credit math fires once.

Rule 6, the consumed value is the per-credit value, not the catalog price#

Patient bought 10 sessions of "Laser pack" at 5000 AED total = 500 AED per credit. The catalog price for a single laser session is 800 AED. When the credit consumes:

  • Recognised revenue = 500 AED (the per-credit value).
  • Commission base = 500 AED (NSR mode) or 500 AED minus material cost (gross profit mode).
  • Patient is not charged extra. The 300 AED difference is the bundle discount you accepted at sale.

If the operator picks a different service to deliver against the credit (substitution), the credit value still applies as configured for the pack, not the new service's catalog price.

Rule 7, refund of a partially-used pack#

  • Only the unconsumed credits are refundable. Consumed ones are non-refundable revenue.
  • If the pack allows cross-branch and the patient consumed at Branch B, the refund still issues from the original selling branch (Branch A).
  • Wallet credit option: instead of cash refund, push the value to the patient's wallet for future use.
  • Behind the scenes the refund holds a row-level lock on the invoice items. Two refund clicks at the same second cannot together push the refund over remaining.

Rule 8, mid-pack upgrade#

Patient upgrades from a 5-session pack to a 10-session pack mid-stream. There is no top-up SKU concept in the catalog today, so the clean path is one of:

  • Refund + new sale: refund the old pack's unconsumed credits, sell the new pack. Cleanest accounting.
  • Sell a second pack alongside: keep the old pack and sell a fresh larger pack. Reception then picks which one each future session bills against. There is no automatic precedence.

Rule 9, credit + insurance on the same invoice#

Edge case: a patient covered by insurance also has a credit pack. There is no first-class split-payer model that ties insurance to a PackageSale today. The data layer supports a mixed invoice (one line consumes a credit, another line gets billed to the insurer) but the flow is not tested as a supported workflow. Reception should flag this to Finance and treat it as a manual reconciliation case until the first-class split-payer model ships.

Trying to deliver after expiry#

If the package's expires_at has passed and reception hits mark-delivered, the system blocks with a clear error: "Package credit expired on YYYY-MM-DD, cannot redeem invoice item N." Three correct responses:

  • Ask the administrator and finance to review the expiry dispute. The staff interface has no standard expiry-extension action.
  • Switch the session to a paid line and take payment as a normal sale.
  • Sell a fresh package and consume the new credit instead.

Sessions whose package has a null expires_at (no validity window) are not affected.

Reception's daily workflow, credit-aware#

  1. At booking: if the patient owns a matching active credit, the calendar marks the session as credit-funded. No payment due at booking.
  2. At check-in: the credit balance does not move. Check-in still runs the four checks (balance, consents, branch, credit eligibility) so a mismatch (expired pack, wrong branch, no remaining credits) surfaces before the patient is on the chair.
  3. If check-in fails on credit eligibility: usually expired, wrong branch, or no remaining credits. Open the patient's Session Credits tab, see the reason. Either ask the owner to extend, sell a single session, or reschedule.
  4. During session: provider works as usual.
  5. After service report submit: the credit consumes. Patient is told their remaining balance.
  6. If patient cancels mid-flow: session goes to Cancelled, the credit returns. Do not submit the report.

The two audit views, where to find them#

Two views in the UI catch mistakes the day they happen. Use them as part of the end-of-day close, not just when something goes wrong.

View 1, "Consumed bookings under each credit"#

Open Patient profile → Session Credits. Each row is an invoice that carries credits. Expand the row to see the items. Under every item there is a "Show consumed bookings (done / total)" button. Click it.

You will see the exact sessions that burned credits from this item, with date, provider, and status. Use it to answer:

  • "Patient says they got 6 sessions, system says 7." Open the credit, expand the bookings, find the disputed one.
  • "Which provider has been delivering against this package the most?" Group the bookings by operator visually.
  • "Is this credit being consumed at the right branch?" The booking row tells you.

View 2, "Bookings without Session Credit"#

Open Patient profile → Bookings → Filter → Credit Source. Pick Without Credit. The list now shows only sessions that have no credit attached.

This is the single most useful audit at end of day. It catches the most common mistake:

  • Reception checked the patient in but did not pick the credit source, so the patient paid cash for a session they already owned.
  • The session shows Done and Paid, but no credit was consumed. The patient is upset.
  • Fix: refund the cash payment on the invoice, retro-link the session to the credit, redeliver the service report so the credit consumes.

Run this view at end of shift. Any rows that should have used a credit are mistakes you can still fix the same day.

View 3, filter bookings by Invoice or by Session Credit#

The same filter has two more knobs:

  • Invoice #: type an invoice number to see every booking that consumed any credit from that invoice. Use this when Finance is reconciling a customer dispute.
  • Session Credit #: narrow to one specific credit row.

The bookings list at Bookings → Filter exposes the same controls. Same filter, two surfaces.

Common mistakes to avoid#

  • Submitting service report after the patient walked out: consumes a credit they did not receive. The patient will dispute. Always cancel instead.
  • Charging cash at the counter when a credit was available: the credit will still reserve at check-in. You have double-charged. Refund the cash payment, then let the service report consume the credit.
  • Allowing wrong-branch consumption manually: never override the cross-branch rule without the owner authorising. The pack was designed with that branch boundary on purpose.
  • Refunding a consumed credit: not possible via the package refund flow. Use a credit note on the invoice line if a clinical reason justifies the refund.
  • Trusting "Active" without checking expiry: check the expiry date as well. The scheduled job marks overdue packs Expired, but the delivery check enforces expiry even before that sweep runs.

How Session Credits connect to the rest of the system#

  • Session lifecycle: consumption fires once at Done (or explicit mark-delivered). Cancellation before Done leaves the credit untouched.
  • Check-in & patient flow: credit eligibility is one of the four checks at the counter.
  • Service report: the act of submission is what consumes the credit. Skipping the report skips the consumption.
  • Invoices / Sales: every credit lives on an invoice item. The remaining balance is recomputed at every action, never stored as a static "uses left" number.
  • Accounting: deferred revenue at sale, recognised revenue at consumption, write-off (or wallet) at expiry. The expiry sweep emits an event that releases the unconsumed liability to breakage revenue through accounting.
  • Refunds & credit notes: package refunds only release unconsumed credits, with a row-level lock so concurrent refunds do not over-issue.
  • Commissions: accrue against the per-credit value, not the catalog price.
  • Insurance (when present): split-payer rules apply per invoice item.
  • Loyalty / wallet: refund to wallet is an option for unconsumed credits.