Skip to content

feat(orders): add online order type with platform + external order id - #589

Merged
itsbkm merged 1 commit into
mainfrom
feat/online-order-type-284
Sep 1, 2026
Merged

itsbkm merged 1 commit into
mainfrom
feat/online-order-type-284

Conversation

@itsbkm

@itsbkm itsbkm commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds online as a selectable order type in the Cart Panel, with inputs for the aggregator/platform name and the platform's own order id (Issue Feature: Add Online order type, external order ID mapping, & online receipt header banner #284).
  • Adds orders.online_platform + orders.external_order_id columns (migration v78) and persists them from the order-creation payload.
  • Renders an "ONLINE ORDER" banner with the platform + external order id on the thermal receipt (WebUSB classic/compact) and the browser print fallback, via the MessageBlock.onlineOrderBanner extension point already reserved in shared/print/document.ts for this issue. Also wired into the Electron main-process classic/compact renderers and the merchant-template label-override system for parity with the existing reprint-banner banner.

Closes #284.

Test plan

  • npm run lint:backend / npm --prefix frontend run lint — 0 errors (pre-existing any warnings only)
  • npm run build (backend tsc) and npm run build:frontend (Next.js + full TypeScript check) — clean
  • npm run test:print-document, test:print-parity (406 assertions), test:print-kernel, test:print-labels, test:merchant-print-templates, test:merchant-template-transfer — all passing, byte-parity unaffected for non-online orders
  • npm run test:translations — key parity + fa/fr non-fallback checks pass for the new orderTypeOnline, onlinePlatformPlaceholder, externalOrderIdPlaceholder, receipt.onlineOrder keys across en/es/fr/pt/fa
  • npm run test:schema-health, test:upgrade-path — migration v78 applies cleanly on top of a v61 fixture DB
  • npm run test:receipt-printing, test:orders-authz, test:integration-lifecycle, test:held-orders — all green
  • Manual UI smoke test in the running app (skipped — port 3001 was occupied by the user's own running Electron instance)

🤖 Generated with Claude Code

…#284)

Wires the existing 'online' orderType scaffolding end-to-end: a cart tab
with platform/external-order-id inputs, an orders.external_order_id +
orders.online_platform schema migration, API persistence on order
creation, and an "ONLINE ORDER" banner on the thermal/browser receipt
via the shared PrintDocument message-block extension point already
reserved for this issue.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@itsbkm
itsbkm merged commit 5f8730f into main Sep 1, 2026
22 of 23 checks passed
@itsbkm
itsbkm deleted the feat/online-order-type-284 branch September 1, 2026 19:47
vjku added a commit to vjku/FloCafePrivateCloud that referenced this pull request Sep 2, 2026
…ss opt-in

- Upstream delta ce26a9d..e64f301: browserslist/postcss bumps, SW offline
  fallback, discount keypad fix, online order type (FreeOpenSourcePOS#284/FreeOpenSourcePOS#589), Filipino +
  Turkish locales (with full fork consent/telemetry key parity), POS topbar
  sync, release 3.5.1.
- Verified no new network egress via scripts/check-upstream-egress.cjs
  (--strict-files); online order type is schema+UI only.
- Added fork guard migration 2026090202 (ensure_online_order_reference) so
  existing fork installs at 2026082802 converge onto v78's online_platform /
  external_order_id columns; array now ends at 2026090202.
- Kept fork version 3.3.1-beta.4.1; adopted upstream description.
- Backfilled fr/fil/tr with the 37 private-cloud consent/telemetry keys and
  whitelisted the pure-URL placeholders in tests/translations.test.ts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add Online order type, external order ID mapping, & online receipt header banner

1 participant