Repository navigation
feat(orders): add online order type with platform + external order id - #589
Merged
Merged
Conversation
…#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]>
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onlineas 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).orders.online_platform+orders.external_order_idcolumns (migration v78) and persists them from the order-creation payload.MessageBlock.onlineOrderBannerextension point already reserved inshared/print/document.tsfor 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-existinganywarnings only)npm run build(backend tsc) andnpm run build:frontend(Next.js + full TypeScript check) — cleannpm 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 ordersnpm run test:translations— key parity + fa/fr non-fallback checks pass for the neworderTypeOnline,onlinePlatformPlaceholder,externalOrderIdPlaceholder,receipt.onlineOrderkeys across en/es/fr/pt/fanpm run test:schema-health,test:upgrade-path— migration v78 applies cleanly on top of a v61 fixture DBnpm run test:receipt-printing,test:orders-authz,test:integration-lifecycle,test:held-orders— all green🤖 Generated with Claude Code