feat: ordering from the menu tablet at a table (platform-v2 step 6.6, D-30)
- tablet_orders (0034) + services/tablet_orders.py: venue rules (menu_tablet.ordering) with
per-tablet overrides: kitchen or waiter confirms first, no open order open/refuse, limits
(items per order, of one dish, time between orders)
- /api/menu-tablet: quote, order, order/{id}, bill (see + ask), requests accept/decline, ordering
- terminal: Add to the order (POS ProductDialog), cart, note, send, live status, the bill
- waiter: TabletRequests on the table page, tablet_order message theme with Open the table
- manager: Settings -> Menu tablets
- tests: test_tablet_orders.py, menu-tablet unit, menu_tablet.mjs e2e (the done-when)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { useEffect, useState, useRef } from 'react'
|
||||
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'
|
||||
import { useAllowed, useCan, useModule } from '@xenia/access'
|
||||
import OrderSummary from '../components/OrderSummary'
|
||||
import TabletRequests from '../components/TabletRequests'
|
||||
import TableHistory from '../components/TableHistory'
|
||||
import useConnectionStore from '../store/connectionStore'
|
||||
import client from '../api/client'
|
||||
@@ -1727,6 +1728,9 @@ export default function TableDetailPage() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* orders from the table's menu tablet waiting for a waiter (6.6) */}
|
||||
{!isStandalone && <TabletRequests tableId={Number(tableId)} />}
|
||||
|
||||
{!order && !isStandalone && (
|
||||
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }}>
|
||||
<p style={{ color: 'var(--x-ink-2)', marginBottom: 24 }}>{t('tables.quick.noOrder')}</p>
|
||||
|
||||
Reference in New Issue
Block a user