feat(waiter): where each line came from; QR lines marked, the QR message opens the table (platform-v2 step 4.8b)
- order_items.source (Alembic 0025): waiter | counter | qr | online, set by the server (orders.add_priced_items: the phone / manager 'waiter', the counter 'counter'; the QR menu's lines 'qr', online orders 'online'; a split line keeps its source); lines of existing online orders backfilled 'online'; in the order's item output. - Waiter: lines the guests sent from the QR menu (or an online order) carry a "📱 QR" / "🌐 Online" mark; the qr_order message's banner has "Open the table", and in the bell's list the message opens it. - Tests: source per channel, migration 0025, QR placement marks 'qr'; waiter e2e +1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -123,6 +123,8 @@ class OrderItem(Base):
|
||||
|
||||
# Courses — optional course assignment for sequenced firing
|
||||
course_id = Column(Integer, nullable=True)
|
||||
# where the line came from (plan step 4.8): waiter | counter | qr | online; NULL = before 4.8
|
||||
source = Column(String, nullable=True)
|
||||
|
||||
# Deal binding — which deal created this item, and which original item it's linked to
|
||||
deal_id = Column(Integer, ForeignKey("deals.id"), nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user