# Openfront Cannabis

> Menu, authority, package custody, counter POS, recalls and reconciliation in source you own.

From the package manifest to the final receipt.

## At a glance

- 34 data models for licenses, packages, sales and audit
- 1 current license and credential checked before every controlled command
- 3 payment adapters: manual, Aeropay and Authorize.Net

## Links

- [Product overview](https://spec.openship.org/cannabis): every area and feature on one page
- [Live demo](https://cannabis.openship.org)
- [Documentation](https://docs.openship.org/docs/openfront/cannabis)
- [Source code](https://github.com/openshiporg/openfront-cannabis)
- [Feature film](https://spec.openship.org/cannabis/video): a 27-second walk through every area

## Areas

### Public menu

- **An age-gated menu for one licensed store**: The storefront shows released, in-stock products with form, adult-use or medical filters, search and sort. Product pages and a visit page carry hours, directions and accepted payment types. Purchases happen in store at the counter. (https://docs.openship.org/docs/openfront/cannabis/storefront)
- Minimum ages come from the active sales rules.
- The age gate is a notice; ID is checked at the counter.
- The menu serves one organization with one active premises.
- The menu shows eligible products and their package-backed stock.

### Authority

- **The software acts only within the license**: Licenses, staff credentials and versioned jurisdiction rule packs define what each command may do. Every controlled command checks the actor, a current credential covering the activity and a current license for the premises. (https://docs.openship.org/docs/openfront/cannabis/authority)
- Seven activities must be listed on both license and credential.
- Rule changes create a new version and supersede the old one.
- Credentials can be suspended or terminated.
- Approval limits are held on staff credentials.

### Receiving

- **Packages arrive on hold**: Receive packages against transfer manifests with package UID, batch, lot, label version, quantity and expiry. Each arrives in receiving hold with an unknown test status and unverified manual-entry evidence. (https://docs.openship.org/docs/openfront/cannabis/inventory-receiving)
- Package UIDs are unique; reuse is refused.
- Quantities are positive integers in microunits.
- Expiry dates follow the premises timezone.
- A package is saleable only after explicit release.

### Package custody

- **Every change leaves a ledger entry**: Record lab results, release packages for sale and place or release holds. The append-only inventory ledger keeps quantity before, after and the change for each event. (https://docs.openship.org/docs/openfront/cannabis/inventory-receiving)
- Release needs a passed test, COA, label version and no active holds.
- Hold types include quarantine, test, recall and discrepancy.
- Releasing a hold needs a second compliance approver.
- The server picks the package for each cart line, not the cashier.

### Counter POS

- **Check in, quote, reserve, sell**: Check in the customer, build a cart, review the server's quote and reserve stock before payment. Purchase limits, tax and discount rules from the active rule pack apply on every line. (https://docs.openship.org/docs/openfront/cannabis/pos-sales)
- An open register shift is required.
- Caregiver sales ask for a second authority check.
- Cash and terminal-approved tenders have separate fields.
- Sales require one externally validated traceability installation.

### Customers

- **Eligibility evidence, kept with the customer**: Customer records and eligibility evidence support counter ID checks. Customer verification sits in the compliance queue next to holds and recalls. (https://docs.openship.org/docs/openfront/cannabis/customers)
- Record the check at the counter before a cart.
- Keep evidence separate from the sale.
- Review verification in the compliance queue.
- Operator reads stay within the organization and premises.

### Cash & refunds

- **Drawers, variances and second approvals**: Registers, shifts and cash events keep drawer activity beside sales. Refunds go back against the original tender, record where returned product went and need a second finance approver. (https://docs.openship.org/docs/openfront/cannabis/cash)
- Open and close register shifts.
- Return product to quarantine, waste or the authority.
- Non-cash refunds keep a terminal reference.
- Refunds are limited to the remaining refundable total.

### Recalls

- **Hold every matching package at once**: Open a recall with an authority reference and package UIDs or batches. Matching packages get recall holds, the case advances through seven stages, and closing needs a release or destroy disposition with a second approver. (https://docs.openship.org/docs/openfront/cannabis/recalls)
- Recalled packages leave saleable stock.
- Destruction must remove all remaining quantity.
- Release lifts holds and records the event.
- Stages run from suspected to regulator closed.

### Compliance

- **Incidents with their deadlines**: Record refusals of sale, theft, loss, outages and other incident types with severity, notification due time and affected packages. Status moves forward in order; out-of-order moves are refused. (https://docs.openship.org/docs/openfront/cannabis/compliance-incidents)
- Enter the deadline from your regulator's rules.
- Track outage mode: none, fail closed or approved degraded.
- Keep affected package UIDs with the incident.
- Review everything in the audit log.

### State reporting

- **Report to the state, with a record of every attempt**: State-reported actions are recorded locally as outbox events with their status, so staff can see what was queued and retry anything rejected or dead-lettered. (https://docs.openship.org/docs/openfront/cannabis/reconciliation)
- Integrations are configured per deployment.
- Plug in the traceability system your state requires.
- Payments: manual, Aeropay and Authorize.Net adapters.
- Provider credentials are set per deployment.

### Developer

- **Package custody you can read line by line**: Next.js, Keystone, Prisma and Postgres connect the menu, dashboard and GraphQL API. Every write goes through a named command with an idempotency key and an audit event. (https://docs.openship.org/docs/openfront/cannabis/api-reference)
- 34 models cover licenses, packages, sales, recalls and audit.
- Operator reads are limited to the organization and premises they belong to.
- Licensing and jurisdiction rules stay with the operator.
- Use the live demo to see the menu, counter and package views.
