Skip to content

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

Description

@khaira777

Online Aggregator & Web Order Support Request

Extracted from fork anbarasakumar/FloCafe:

Overview

Adds support for taking and processing online orders coming from third-party delivery platforms or online web ordering systems (e.g. Swiggy, Zomato, UberEats, DoorDash, custom web store).

Proposed Changes

  1. Order Type & Cart Panel Input:
    • Add online to orderType options (counter, dine_in, takeaway, delivery, online).
    • Add UI inputs in CartPanel.tsx for selecting the online platform name and entering the external order ID.
  2. Schema & API Updates:
    • Add external_order_id column to orders table (main/db.ts).
    • Persist external_order_id and onlinePlatform in order creation payload (main/routes/orders.ts).
  3. Thermal Receipt Banner:
    • Update receipt encoder (frontend/src/lib/printer/receipt-encoder.ts) to render a prominent "ONLINE ORDER" header banner displaying the platform name and external order ID.
  4. Reference Commits:
    • Commits ee0bd53, 5642272, 3a9eec7, fca1af1, 048a2ff in anbarasakumar/FloCafe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions