A package is a pre-paid bundle: the patient pays for ten laser sessions up front, the clinic delivers them over months. From the patient's view it is "I bought ten sessions". From the system's view it is a deferred-revenue contract: cash now, revenue recognised per session delivered, with credits, expiry, transfer rules, and accounting treatment that have to be right. This article is the operational playbook for packages.

Where it lives#

  • Catalog → Sales packages: design templates (the package definitions a clinic offers).
  • Sales → Sales list: sell a package to a patient (creates an active package on their profile).
  • Patient profile → Packages: see all the patient's active and past packages, credit balance, expiry.
  • Session detail: the link to which package the session consumed from (badge on the session card).

Designing a package#

What a package definition contains#

You build these fields in Catalog → Sales Packages → + New, across the Basics & Items, Policies, and Branches tabs.

  • Name and Code: "10 sessions Alexandrite laser", "3-month skin glow", "Hydra-facial six pack". The code is the merchant SKU and is unique per clinic.
  • Items included: one or many services/products, each with a quantity. E.g. "5 laser + 5 hydra-facial". The quantity is the number of credits the package grants for that item.
  • Pricing mode and total price: Manual (per-item price, total computed), Proportional, or Header discount. See the modes below.
  • Sale window: optional Sale Start / Sale End dates that bound when the package can be sold. Distinct from credit expiry.
  • Expiry: optional. When enabled, credits stay usable for a rolling number of days counted from each sale (e.g. 90 days). There is no fixed calendar expiry date.
  • Refund policy: a Partial Refund toggle. On enables the package-unit refund operation for undelivered units; off blocks that operation, including a request for all remaining units.
  • Branch scope: usable at all branches, or restricted to a chosen subset (Branches tab).
  • Cross-branch redeem: whether credits can be consumed at a branch other than the one that sold the package.
  • Bypass floor price: lets the bundle's lines sell below their floor price, this is how bundle discounts work.
  • Quick Sale: whether the package shows in the fast-checkout picker at the point of sale.

Not part of the package structure today: transferability between patients, family/beneficiary sharing, provider scope, and a stored cost-of-goods per credit. Where those needs come up, see the notes in the Transfer and Refund sections below.

Why the rules matter#

Every rule has downstream effect. Branch scope and cross-branch redeem decide where check-in is allowed. The refund toggle changes what reception can do without escalation when the patient asks for money back. Bypass floor price is what makes the bundle discount possible. Get these right at design, do not patch per sale.

Selling a package#

Steps#

  1. Sales → Sales list → + New sale.
  2. Pick the patient.
  3. Add the package to the cart.
  4. Optional discount within the rep's discount floor (owners can override below the floor with audit).
  5. Pick the payment method: cash, card, link, split, gift, deferred (with terms).
  6. Confirm. Invoice and receipt generate.
  7. On payment success, the package activates on the patient's profile. Credits are now usable for booking.

What happens accounting-wise#

  • Cash collected: bank or cash account debited.
  • Deferred revenue liability credited (you owe the patient the sessions).
  • Revenue is NOT recognised at sale time. The clinic owes the patient sessions, it has not earned anything yet.
  • Revenue recognises per session, as each one is Done. (See consumption below.)

Sales rep commission#

  • Commission is normally accrued on session-delivery, not on sale. This prevents commission churn if the patient gets a refund.
  • For some tenants, partial commission accrues on sale (the "find the customer" half) and the rest on delivery (the "delivered" half). Configured in commission rules.

Consuming credits#

Link the session to an eligible invoice-item credit. Booking and check-in do not reserve or decrement a credit. Consumption happens when the item is marked delivered by the service-report or counter-delivery flow. Remaining units are calculated from quantity minus delivered and refunded quantities.

The delivery operation checks expiry and locks the invoice item before checking the remaining quantity. Do not treat a booking as a guaranteed reservation. A cancellation or no-show before delivery has no reserved credit to release; there is no per-package late-cancellation forfeiture setting in this flow.

Delivery emits the event used for revenue recognition and any applicable downstream accounting. Commission timing depends on the configured commission rules. See Session credit rules for the operational checks.

Expiry#

When expiry is enabled, each sale has an expiry date based on its validity window. Delivery is refused after that date, even before the scheduled sweep updates the sale's status. The expiry sweep marks active overdue sales Expired and emits an event that releases their remaining liability to breakage revenue through accounting.

There is no standard staff action to extend a sold package's expiry and no built-in T-30, T-7, T-1 reminder schedule in this package flow. Escalate expiry disputes to an administrator and finance; do not promise an automatic extension or wallet refund.

Refunding unused units#

The package refund operation accepts quantities of specific undelivered invoice items. It requires the package's Partial Refund setting and rejects quantities beyond what remains. It locks the affected items so concurrent requests cannot refund the same units twice. Lines already partially used by measured consumption cannot be refunded by whole unit through this operation.

This operation updates refunded quantities and emits accounting events. It does not itself send money through a gateway or create a cash refund payment. Finance must agree and record the actual financial settlement through the approved refund or credit-note process, checking what has already been posted to avoid reversing the same amount twice.

When all child items have no units remaining, the package sale becomes Refunded. There is no built-in fourteen-day cooling-off entitlement, automatic repricing at the single-session rate, or remote manager approval dialog. Follow the clinic's written refund policy.

Transfer between patients#

Direct patient-to-patient transfer is not part of the package structure today. A package ties to the buyer, and there is no "move credits to another patient" action. When a patient asks to hand their package to someone else:

  • Refund the unconsumed portion to the original patient (or to credit-on-file), then sell a fresh package to the receiving patient. This is the audited, supported path.
  • The consumed portion stays with the original patient as recognised revenue, it is not moved.
  • Accounting follows the refund and the new sale, there is no special "transfer" entry.

Upgrade and downgrade#

  • Upgrade: patient bought "5 laser" and wants to top up to "10 laser". Sell the additional 5 credits, can be at the larger-bundle's per-credit rate as a goodwill gesture.
  • Downgrade: rare and usually handled as a partial refund with a fresh smaller package sale.
  • Convert: patient bought "5 laser" but realises they want a different service. Convert by closing the package as credit note, then selling the new package using the credit note as payment. Audited.

Reports#

  • Package sales: revenue by package definition.
  • Deferred revenue liability: total outstanding sessions owed to patients (a balance sheet metric).
  • Consumption rate: average credits consumed per month per active package. Slow consumption flags retention risk.
  • Expiry forecast: how many credits will expire in the next 30 / 60 / 90 days. Drives reminder campaigns.
  • Breakage revenue: revenue from expired-unused credits.
  • Refund rate: % of packages refunded, by reason. High rate suggests overselling.

Common mistakes#

  • Recognising revenue at sale: it is deferred revenue, not income. The system handles this correctly automatically, never override the accounting entry manually.
  • Booking without linking the package: patient is charged twice (package + per-session invoice). Always link at booking.
  • Refunding outside policy without owner approval: reports break, accountant is confused at month-end.
  • Forgetting expiry reminders: patient blames the clinic when credits lapse. Agree a manual follow-up routine or verify that an administrator has configured and tested the required automation.
  • Trying to "move" a package to another patient: there is no transfer action in the package structure. Refund-and-resell is the supported, audited path, do not improvise.
  • Selling overlapping packages: patient ends up with two packages covering the same service. Document which one consumes first per tenant policy.

How packages connect to the rest of the system#

  • Catalog: package definitions live here.
  • Booking: sessions consume credits.
  • Service report: Done triggers revenue recognition and credit consumption.
  • Invoices and payments: sale and any refund.
  • Treatment plans: plans can bind to packages for automatic consumption.
  • Accounting: deferred revenue liability and revenue recognition.
  • Commissions: accrual on delivery (typically).
  • Inventory: COGS on delivery when BOM applies.
  • Marketing: expiry-reminder automations.
  • Reports: package mix, breakage, refund rate.