From cd282341a07aff23bb4fc66f4ac785255f6a1117 Mon Sep 17 00:00:00 2001 From: Bankim Date: Thu, 26 Nov 2026 00:33:14 +0530 Subject: [PATCH 1/3] feat(orders): let ready-made items skip the kitchen and add a hybrid service model Co-Authored-By: Claude Sonnet 5.5 --- docs/architecture/order-lifecycle.md | 11 +- docs/reference/api.md | 8 +- docs/reference/product-invariants.md | 37 +++ frontend/src/app/(dashboard)/pos/page.tsx | 10 +- .../src/app/(dashboard)/products/page.tsx | 22 ++ .../src/app/(dashboard)/settings/page.tsx | 9 + frontend/src/app/setup/page.tsx | 11 +- frontend/src/components/pos/CartPanel.tsx | 10 +- frontend/src/components/pos/ProductGrid.tsx | 5 + .../settings/GeneralSettingsTab.tsx | 97 ++++-- frontend/src/lib/customer-display.ts | 4 + frontend/src/lib/i18n/messages/ar.json | 19 +- frontend/src/lib/i18n/messages/bn.json | 19 +- frontend/src/lib/i18n/messages/de.json | 19 +- frontend/src/lib/i18n/messages/en.json | 19 +- frontend/src/lib/i18n/messages/es.json | 19 +- frontend/src/lib/i18n/messages/fa.json | 19 +- frontend/src/lib/i18n/messages/fil.json | 19 +- frontend/src/lib/i18n/messages/fr.json | 19 +- frontend/src/lib/i18n/messages/ha.json | 19 +- frontend/src/lib/i18n/messages/hi.json | 19 +- frontend/src/lib/i18n/messages/id.json | 19 +- frontend/src/lib/i18n/messages/it.json | 19 +- frontend/src/lib/i18n/messages/ja.json | 19 +- frontend/src/lib/i18n/messages/jv.json | 19 +- frontend/src/lib/i18n/messages/ko.json | 19 +- frontend/src/lib/i18n/messages/mr.json | 19 +- frontend/src/lib/i18n/messages/ne.json | 19 +- frontend/src/lib/i18n/messages/nl.json | 19 +- frontend/src/lib/i18n/messages/pa.json | 19 +- frontend/src/lib/i18n/messages/pt.json | 19 +- frontend/src/lib/i18n/messages/ru.json | 19 +- frontend/src/lib/i18n/messages/sq.json | 19 +- frontend/src/lib/i18n/messages/sw.json | 19 +- frontend/src/lib/i18n/messages/ta.json | 19 +- frontend/src/lib/i18n/messages/te.json | 19 +- frontend/src/lib/i18n/messages/th.json | 19 +- frontend/src/lib/i18n/messages/tr.json | 19 +- frontend/src/lib/i18n/messages/uk.json | 19 +- frontend/src/lib/i18n/messages/ur.json | 19 +- frontend/src/lib/i18n/messages/vi.json | 19 +- frontend/src/lib/i18n/messages/zh-tw.json | 19 +- frontend/src/lib/i18n/messages/zh.json | 19 +- frontend/src/lib/settings-search.ts | 8 + frontend/src/lib/types.ts | 4 +- frontend/src/store/pos-settings.ts | 25 ++ main/db.ts | 21 ++ main/routes/auth.ts | 6 +- main/routes/bills.ts | 6 +- main/routes/kds.ts | 3 +- main/routes/kitchen.ts | 2 +- main/routes/orders.ts | 31 +- main/routes/products.ts | 22 +- main/routes/settings.ts | 10 +- main/services/customer-display-tokens.ts | 4 +- main/services/kds.ts | 3 +- main/services/orders.ts | 16 +- main/services/scheduled-orders.ts | 2 +- main/services/service-model.ts | 29 ++ package.json | 3 +- shared/order-item-status.ts | 12 +- tests/hybrid-service-model.test.ts | 290 ++++++++++++++++++ tests/upgrade-path.test.ts | 62 ++++ 63 files changed, 1185 insertions(+), 206 deletions(-) create mode 100644 main/services/service-model.ts create mode 100644 tests/hybrid-service-model.test.ts diff --git a/docs/architecture/order-lifecycle.md b/docs/architecture/order-lifecycle.md index f446dd8d40..20fe5a490d 100644 --- a/docs/architecture/order-lifecycle.md +++ b/docs/architecture/order-lifecycle.md @@ -51,6 +51,11 @@ Everything monetary is resolved server-side inside one transaction: - The unit price comes from the catalog: `products.price`, or the variant price for an order with an `online_platform`. A client-sent price is never read. - Quantity rules are checked per sale unit, including fractional and weight-precision products. +- Each line copies `products.requires_kitchen` onto `order_items.requires_kitchen`. A ready-made line + (`0`) is inserted as `served`, so the status-based kitchen consumers ignore it, and the explicit + flag keeps it off the KDS, the kitchen board order list, the customer display board, and + order-status derivation. Later catalog edits never rewrite existing lines. See + [ready-made items](../reference/product-invariants.md#ready-made-items-never-reach-the-kitchen). - Stock deduction and recipe depletion are written in the same transaction for immediate orders (scheduled orders defer stock and recipe depletion until kitchen release), so the order and its inventory effects commit together. @@ -332,7 +337,7 @@ Two gates sit between a valid request and the write: re-read with the same key after its shift closed. A cash ledger line records the open `cash_session_id`. - **Kitchen-delivery gate.** When `require_kitchen_delivered_before_settlement` is on, `kds_enabled` - is not `false`, and `billing_type` is not `prepaid`, paying while kitchen items are undelivered + is not `false`, and the order is not prepaid, paying while kitchen items are undelivered is a `409` with code `KITCHEN_ITEMS_UNDELIVERED` unless a manager PIN is supplied as `override_pin`. When an approver is explicitly supplied (`approver_id`, `manager_id`, or `user_id`), PIN verification is restricted to that active manager without falling back to scanning other managers. @@ -370,7 +375,7 @@ When a discount, an order mutation (`syncUnpaidBillsForOrder`), or a `POST /api/ re-sync reduces the remaining balance of a partially paid bill to exactly zero (where collected funds equal the updated payable total), auto-settlement to `paid` is gated by kitchen delivery status. When `require_kitchen_delivered_before_settlement` is enabled, `kds_enabled` is not `false`, and -`billing_type` is not `prepaid`: +the order is not prepaid: - If kitchen items remain undelivered (`pending`, `preparing`, or `ready`), auto-settlement is held: the discount applies and reduces the balance to zero, but the bill remains in `partial` status @@ -408,7 +413,7 @@ whenever KDS item statuses change (`PATCH /api/order-items/:id/status`, embedded order items are appended, cancelled, edited, refunded, or restored: - Live items are non-terminal (`cancelled`, `voided`, `void_adjustment`, and `refunded` excluded) - positive-quantity lines across the full order, unfiltered by caller station or category scope + positive-quantity kitchen lines (`requires_kitchen` not `0`) across the full order, unfiltered by caller station or category scope ([`shared/order-item-status.ts`](../../shared/order-item-status.ts)). - Starting kitchen work (`preparing`, `ready`, `served`, or `completed` on any live item while unfinished items remain) promotes `pending` to `preparing` and sets `cooking_started_at`. diff --git a/docs/reference/api.md b/docs/reference/api.md index 529106fd96..fb2e158dc0 100644 --- a/docs/reference/api.md +++ b/docs/reference/api.md @@ -223,8 +223,8 @@ Router: `main/routes/products.ts`. Full path: `/api/products`. | `GET` | `/:id/image` | none | path: `id` | Product image bytes. Unauthenticated by design so `` tags work; serves only stored `data:image/(webp\|png\|jpeg\|jpg);base64,...` URIs within `MAX_IMAGE_DATA_URI_LENGTH` (50,000 chars) and `MAX_IMAGE_BYTES` (37,500 bytes), checking `If-None-Match` against the SHA-256 `ETag` (`304`) before decoding Base64 (`404` otherwise). | | `GET` | `/:id` | any authenticated role | path: `id` | Single product; variant objects include `recipe_multiplier`. | | `POST` | `/fetch-url` | `ROLE_ACCESS.ownerManager` | body: `url` | Body `url` is fetched server-side and stored as the product image. Subject to the SSRF blocklist. | -| `POST` | `/` | `ROLE_ACCESS.ownerManager` | body: `category_id`, `name`, `sku`, `barcode`, `description`, `price`, `cost_price`, `sale_unit`, `allow_fractional_quantity`, `weight_precision`, `inventory_product_id`, `inventory_deduction_quantity`, `tax_category_id`, `tax_behavior`, `track_inventory`, `stock_quantity`, `low_stock_threshold`, `is_active`, `image_url`, `sort_order`, `cb_percent`, `tags`, `addon_group_ids`, `variants`, `reason` | `400` if `category_id` names a missing, soft-deleted, or inactive category or ancestor. | -| `PUT` | `/:id` | `ROLE_ACCESS.ownerManager` | path: `id`; body: `category_id`, `name`, `sku`, `barcode`, `description`, `price`, `cost_price`, `sale_unit`, `allow_fractional_quantity`, `weight_precision`, `inventory_product_id`, `inventory_deduction_quantity`, `tax_category_id`, `tax_behavior`, `track_inventory`, `stock_quantity`, `low_stock_threshold`, `is_active`, `image_url`, `sort_order`, `cb_percent`, `tags`, `addon_group_ids`, `variants`, `reason` | `400` if a new or changed `category_id` names a missing, soft-deleted, or inactive category or ancestor; retaining the product's current non-deleted `category_id` is allowed. | +| `POST` | `/` | `ROLE_ACCESS.ownerManager` | body: `category_id`, `name`, `sku`, `barcode`, `description`, `price`, `cost_price`, `sale_unit`, `allow_fractional_quantity`, `requires_kitchen`, `weight_precision`, `inventory_product_id`, `inventory_deduction_quantity`, `tax_category_id`, `tax_behavior`, `track_inventory`, `stock_quantity`, `low_stock_threshold`, `is_active`, `image_url`, `sort_order`, `cb_percent`, `tags`, `addon_group_ids`, `variants`, `reason` | `400` if `category_id` names a missing, soft-deleted, or inactive category or ancestor, or if `requires_kitchen` is not a boolean. | +| `PUT` | `/:id` | `ROLE_ACCESS.ownerManager` | path: `id`; body: `category_id`, `name`, `sku`, `barcode`, `description`, `price`, `cost_price`, `sale_unit`, `allow_fractional_quantity`, `requires_kitchen`, `weight_precision`, `inventory_product_id`, `inventory_deduction_quantity`, `tax_category_id`, `tax_behavior`, `track_inventory`, `stock_quantity`, `low_stock_threshold`, `is_active`, `image_url`, `sort_order`, `cb_percent`, `tags`, `addon_group_ids`, `variants`, `reason` | `400` if `requires_kitchen` is not a boolean, or if a new or changed `category_id` names a missing, soft-deleted, or inactive category or ancestor; retaining the product's current non-deleted `category_id` is allowed. | | `DELETE` | `/:id` | `ROLE_ACCESS.ownerManager` | path: `id` | - | | `POST` | `/:id/stock` | `ROLE_ACCESS.ownerManager` | path: `id`; body: `action`, `quantity`, `reason` | - | | `GET` | `/loyalty/global-rate-candidates` | `ROLE_ACCESS.ownerManager` | none | - | @@ -365,7 +365,7 @@ response. zero unpaid balance) and billed totals (accounting for `round_off`) to cover `order.total`. An unbilled positive-total order is not considered paid. When `require_kitchen_delivered_before_settlement` is enabled (`kds_enabled` not `false` and - `billing_type` not `prepaid`), any item still in `pending`, `preparing`, or `ready` also blocks + the order not prepaid), any item still in `pending`, `preparing`, or `ready` also blocks ordinary completion. - When unsettled payment or the applicable kitchen-delivery requirement blocks `completed`, an explicit `override_pin` from an active `owner` or `manager` holding `orders.status.update` (plus @@ -660,7 +660,7 @@ Router: `main/routes/settings.ts`. Full path: `/api/settings`. | `GET` | `/charges` | `settings.view`, `orders.create`, or `bills.discount.apply` | none | `{ charges }`; fee definitions only. | | `PUT` | `/charges` | `settings.manage` | body: `charges` or a charge-definition array | `{ charges }`; replaces the validated fee definitions. Fee amounts remain configured in Settings. | | `GET` | `/business` | `settings.view`, `bills.read`, `bills.print`, or `bills.generate` | none | - | -| `PUT` | `/business` | `ROLE_ACCESS.ownerManager` | body: `business_name`, `timezone`, `business_day_start_time`, `currency`, `country`, `language`, `tax_registration_number`, `state_code`, `business_address`, `business_phone`, `instagram_handle`, `billing_type`, `tables_required`, `tax_registered`, `bill_show_name`, `bill_show_address`, `bill_show_phone`, `bill_show_tax_id`, `bill_show_tax_breakdown`, `bill_show_customer_name`, `bill_show_customer_phone`, `bill_show_table_number`, `bill_show_large_order_number`, `bill_show_logo`, `receipt_logo`, `receipt_logo_raster`, `currency_display`, `number_digits`, `calendar`, `country_selected` | A `currency` that differs from the stored value returns `409` with `error: "currency_change_requires_reset"` plus `current_currency` and `requested_currency`. Currency changes go through the reset flow, not this route. | +| `PUT` | `/business` | `ROLE_ACCESS.ownerManager` | body: `business_name`, `timezone`, `business_day_start_time`, `currency`, `country`, `language`, `tax_registration_number`, `state_code`, `business_address`, `business_phone`, `instagram_handle`, `billing_type`, `service_model`, `tables_required`, `tax_registered`, `bill_show_name`, `bill_show_address`, `bill_show_phone`, `bill_show_tax_id`, `bill_show_tax_breakdown`, `bill_show_customer_name`, `bill_show_customer_phone`, `bill_show_table_number`, `bill_show_large_order_number`, `bill_show_logo`, `receipt_logo`, `receipt_logo_raster`, `currency_display`, `number_digits`, `calendar`, `country_selected` | A `currency` that differs from the stored value returns `409` with `error: "currency_change_requires_reset"` plus `current_currency` and `requested_currency`. Currency changes go through the reset flow, not this route. `service_model` is `qsr`, `finedine`, or `hybrid` (otherwise `400`); `hybrid` also stores `tables_required` as `true` and makes `billing_type` apply to no order type: only `dine_in` orders are paid after service. | | `GET` | `/tax` | `ROLE_ACCESS.allStaff` | none | - | | `PUT` | `/tax` | `ROLE_ACCESS.ownerManager` | body: `tax_registered`, `tax_registration_number`, `state_code`, `tax_scheme`, `country` | - | | `GET` | `/loyalty` | `ROLE_ACCESS.allStaff` | none | - | diff --git a/docs/reference/product-invariants.md b/docs/reference/product-invariants.md index b70f4a8605..47f300224c 100644 --- a/docs/reference/product-invariants.md +++ b/docs/reference/product-invariants.md @@ -586,6 +586,43 @@ rename catalog items or create duplicate categories and add-ons during CSV impor --- +## Ready-made items never reach the kitchen + +**Rule:** A catalog item can be marked as not going to the kitchen (`products.requires_kitchen = 0`). +Each order line copies the flag into `order_items.requires_kitchen` when it is created, and a +ready-made line is inserted as `served`. Such a line is priced, taxed, stock-tracked, receipted, +reported, and refundable like any other, but it never appears on the KDS or the kitchen board, never +prints on a kitchen ticket, never holds back kitchen-delivery settlement or order completion, and +never drives order-status derivation. An order made only of ready-made lines has no kitchen work and +is absent from the kitchen board and the customer display. Editing the catalog flag never changes an +existing line, and `requires_kitchen` defaults to `1`, so existing items behave as before. + +When `service_model` is `hybrid`, payment timing follows the order: `dine_in` orders are paid after +service and every other order type is prepaid. `billing_type` governs every other service model. + +**Reason:** A counter selling bottled drinks and a dining room serving cooked dishes run side by side. +Neither section may force the other into its mode, and an item that is handed over immediately must +not wait for a kitchen that never sees it. + +**Enforced by:** `main/routes/orders.ts` (`insertOrderItems` and `POST /api/orders` set the status and +the snapshot), `main/db.ts` (`orderHasKitchenWorkSql`, `ACTIVE_RELEASED_KDS_ORDER_IDS_SQL`), +`main/routes/kds.ts`, `main/services/kds.ts`, `main/routes/kitchen.ts`, +`main/services/customer-display-tokens.ts`, `shared/order-item-status.ts` (`isKitchenItem`), and +`main/services/service-model.ts` (`isOrderPrepaid`). + +**How to verify:** + +```sh +npm run test:hybrid-service-model +npm run test:upgrade-path +``` + +**Change policy:** a new consumer of kitchen work must filter on `requires_kitchen` or the item status. +Marking ready-made lines as anything other than `served` at creation requires re-checking every +kitchen consumer listed above. + +--- + ## Multi-counter ordering and prepayment lifecycle **Rule:** Multi-counter ordering separates order capture ("Send to payment") from cashier settlement: diff --git a/frontend/src/app/(dashboard)/pos/page.tsx b/frontend/src/app/(dashboard)/pos/page.tsx index 225a24b79f..0f6df566ca 100644 --- a/frontend/src/app/(dashboard)/pos/page.tsx +++ b/frontend/src/app/(dashboard)/pos/page.tsx @@ -7,7 +7,7 @@ import { useAuthStore } from '@/store/auth'; import { getSessionBoundaryEpoch } from '@/store/session-events'; import { useCartStore } from '@/store/cart'; import { useHeldOrdersStore } from '@/store/held-orders'; -import { usePosSettingsStore } from '@/store/pos-settings'; +import { isPrepaidBilling, normalizeServiceModel, usePosSettingsStore } from '@/store/pos-settings'; import { useSidebar } from '@/components/ui/sidebar'; import toast from 'react-hot-toast'; import { ShoppingCart, X } from 'lucide-react'; @@ -286,9 +286,11 @@ export default function POSPage() { autoPrintKot, autoPrintBill, billingType, + serviceModel, tablesRequired, kotPrintingEnabled, setBillingType, + setServiceModel, setTablesRequired, setKotPrintingEnabled, setAutoPrintKot, @@ -1226,7 +1228,7 @@ export default function POSPage() { getCountryByCode(currentTenant?.country ?? '')?.locale, ); const { printBill, printKot } = usePrinterStore(); - const billingIsPrepaid = billingType === 'prepaid'; + const billingIsPrepaid = isPrepaidBilling(billingType, serviceModel, cart.orderType); const shouldTakePaymentNow = billingIsPrepaid; const printKotIfEnabled = async (order: Order, originContext?: SupportErrorContextSnapshot) => { @@ -1617,6 +1619,7 @@ export default function POSPage() { setStoreTimezone(d.timezone.trim()); } setBillingType(d.billing_type === 'prepaid' ? 'prepaid' : 'postpaid'); + setServiceModel(normalizeServiceModel(d.service_model)); const isTablesRequired = typeof d.tables_required === 'boolean' ? d.tables_required : true; setTablesRequired(isTablesRequired); @@ -1694,6 +1697,7 @@ export default function POSPage() { }, [ isRestaurant, setBillingType, + setServiceModel, setTablesRequired, setKotPrintingEnabled, setAutoPrintKot, @@ -3952,7 +3956,7 @@ export default function POSPage() { cart.orderType === 'dine_in' && cart.tableId && cart.items.length > 0 && - billingType === 'postpaid' + !billingIsPrepaid ) { const tableName = tables.find((t) => t.id === cart.tableId)?.name || cart.tableId; heldOrders diff --git a/frontend/src/app/(dashboard)/products/page.tsx b/frontend/src/app/(dashboard)/products/page.tsx index 3624258130..b81d156592 100644 --- a/frontend/src/app/(dashboard)/products/page.tsx +++ b/frontend/src/app/(dashboard)/products/page.tsx @@ -200,6 +200,7 @@ export default function ProductsPage() { barcode: '', sale_unit: 'each' as Product['sale_unit'], allow_fractional_quantity: false, + requires_kitchen: true, weight_precision: '3', inventory_product_id: '', inventory_deduction_quantity: '1', @@ -419,6 +420,7 @@ export default function ProductsPage() { barcode: '', sale_unit: 'each', allow_fractional_quantity: false, + requires_kitchen: true, weight_precision: '3', inventory_product_id: '', inventory_deduction_quantity: '1', @@ -482,6 +484,7 @@ export default function ProductsPage() { barcode: product.barcode || '', sale_unit: product.sale_unit || 'each', allow_fractional_quantity: !!product.allow_fractional_quantity, + requires_kitchen: product.requires_kitchen !== false, weight_precision: String(product.weight_precision ?? 3), inventory_product_id: product.inventory_product_id || '', inventory_deduction_quantity: String(product.inventory_deduction_quantity ?? 1), @@ -596,6 +599,7 @@ export default function ProductsPage() { barcode: form.barcode || null, sale_unit: form.sale_unit, allow_fractional_quantity: form.allow_fractional_quantity, + requires_kitchen: form.requires_kitchen, weight_precision: Number(form.weight_precision), ...(form.inventory_product_id ? { @@ -1579,6 +1583,24 @@ export default function ProductsPage() { />

{t('fieldBarcodeHint')}

+ {isRestaurant && ( +
+ +

{t('fieldGoesToKitchenHint')}

+
+ )}
-
+
{SERVICE_MODELS.map((item) => { const selected = serviceModel === item.value; return ( diff --git a/frontend/src/components/pos/CartPanel.tsx b/frontend/src/components/pos/CartPanel.tsx index e07f1260be..dc260c159e 100644 --- a/frontend/src/components/pos/CartPanel.tsx +++ b/frontend/src/components/pos/CartPanel.tsx @@ -28,7 +28,7 @@ import type { CustomPaymentMethod } from '@/lib/payment-methods'; import { useCartStore } from '@/store/cart'; import { useHeldOrdersStore } from '@/store/held-orders'; import { useAuthStore } from '@/store/auth'; -import { usePosSettingsStore } from '@/store/pos-settings'; +import { isPrepaidBilling, usePosSettingsStore } from '@/store/pos-settings'; import { useTranslations } from 'use-intl'; import toast from 'react-hot-toast'; import type { Table, Order, OrderItem, CartItem } from '@/lib/types'; @@ -254,6 +254,7 @@ export default function CartPanel({ return () => onModalOpenChange?.(false); }, [priceOverrideOpen, effectiveDetailsDrawerOpen, onModalOpenChange]); const billingType = usePosSettingsStore((s) => s.billingType); + const serviceModel = usePosSettingsStore((s) => s.serviceModel); const t = useTranslations('pos'); const tCommon = useTranslations('common'); const tOrders = useTranslations('orders'); @@ -396,7 +397,7 @@ export default function CartPanel({ cart.orderType === 'dine_in' && cart.tableId && cart.items.length > 0 && - billingType === 'postpaid'; + !isPrepaidBilling(billingType, serviceModel, cart.orderType); const isDeliveryOrder = cart.orderType === 'delivery'; const [customPaymentMethods, setCustomPaymentMethods] = useState([]); @@ -952,6 +953,11 @@ export default function CartPanel({
+ {item.product.requires_kitchen === false && ( +

+ {t('readyMadeNoKitchen')} +

+ )} {item.price_override && (

{tOrders('priceOverriddenMenu', { diff --git a/frontend/src/components/pos/ProductGrid.tsx b/frontend/src/components/pos/ProductGrid.tsx index 7fc7a08d0f..a2257b32a6 100644 --- a/frontend/src/components/pos/ProductGrid.tsx +++ b/frontend/src/components/pos/ProductGrid.tsx @@ -614,6 +614,11 @@ export default function ProductGrid({

{product.name}

+ {product.requires_kitchen === false && ( +

+ {t('readyMadeNoKitchen')} +

+ )}

{fmt(Number(product.price))}

diff --git a/frontend/src/components/settings/GeneralSettingsTab.tsx b/frontend/src/components/settings/GeneralSettingsTab.tsx index b0dc82d0b2..f8d6a393ad 100644 --- a/frontend/src/components/settings/GeneralSettingsTab.tsx +++ b/frontend/src/components/settings/GeneralSettingsTab.tsx @@ -69,6 +69,7 @@ export interface BusinessForm { numberDigits: DigitMode; calendar: CalendarMode; billingType: 'postpaid' | 'prepaid'; + serviceModel: 'qsr' | 'finedine' | 'hybrid'; tablesRequired: boolean; taxRegistered: boolean; taxRegistrationNumber: string; @@ -371,45 +372,87 @@ export function GeneralSettingsTab({ }} />
- + {isAdmin ? ( - ) : ( -

{form.billingType}

- )} -
-
- - {isAdmin ? ( - ) : (

- {form.tablesRequired ? t('yes') : t('no')} + {t( + form.serviceModel === 'qsr' + ? 'serviceModelQsr' + : form.serviceModel === 'hybrid' + ? 'serviceModelHybrid' + : 'serviceModelFinedine', + )}

)} + {form.serviceModel === 'hybrid' && ( +

{t('serviceModelHybridHint')}

+ )}
+ {form.serviceModel !== 'hybrid' && ( + <> +
+ + {isAdmin ? ( + + ) : ( +

{form.billingType}

+ )} +
+
+ + {isAdmin ? ( + + ) : ( +

+ {form.tablesRequired ? t('yes') : t('no')} +

+ )} +
+ + )}
{isAdmin ? ( diff --git a/frontend/src/lib/customer-display.ts b/frontend/src/lib/customer-display.ts index ca0adfc627..4d3a3d0da8 100644 --- a/frontend/src/lib/customer-display.ts +++ b/frontend/src/lib/customer-display.ts @@ -1,5 +1,6 @@ import { isWithinCompletedKdsProjectionWindow, + isKitchenItem, projectBoardStatusFromItems, type OrderItemStatusLike, } from '../../../shared/order-item-status'; @@ -144,6 +145,9 @@ export function resolveOrderBoardStatus( return projectBoardStatusFromItems(order.items); } if (order.status === 'pending' || order.status === 'preparing' || order.status === 'ready') { + const items = order.items ?? []; + const hasReadyMadeLine = items.some((item) => !isKitchenItem(item)); + if (hasReadyMadeLine && !items.some((item) => isKitchenItem(item))) return null; return order.status; } return null; diff --git a/frontend/src/lib/i18n/messages/ar.json b/frontend/src/lib/i18n/messages/ar.json index f5f4d371de..f8ba8bc9a0 100644 --- a/frontend/src/lib/i18n/messages/ar.json +++ b/frontend/src/lib/i18n/messages/ar.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "لا تتواصل مع الدعم إلا إذا كانت الوردية مفتوحة بالفعل على هذا الجهاز واستمر هذا الخطأ.", "validationClosedBooksGuidance": "تم إغلاق يوم العمل الحالي ولا يمكن إعادة فتحه. تُستأنف الطلبات الجديدة وحركة النقد في يوم العمل التالي.", "validationClosedBooksEvidenceHint": "لا تتواصل مع الدعم إلا إذا ظهر يوم العمل الحالي مغلقًا في تاريخ أو منطقة زمنية خاطئة للمتجر.", - "validationGenericEvidenceHint": "لا تتواصل مع الدعم إلا إذا كنت تعتقد أن فحص التحقق هذا رفض طلبًا صالحًا." + "validationGenericEvidenceHint": "لا تتواصل مع الدعم إلا إذا كنت تعتقد أن فحص التحقق هذا رفض طلبًا صالحًا.", + "readyMadeNoKitchen": "جاهز، دون مطبخ" }, "printTest": { "amt": "المبلغ", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "سيتم تعطيل هذا الخيار عند الحفظ ولا يمكن استعادته من هذه الشاشة.", "variantRemoveAllConfirm": "سيؤدي إيقاف هذا إلى تعطيل جميع خيارات المنتج. تحتفظ الطلبات السابقة بها.", "parentCategory": "الفئة الرئيسية", - "parentCategoryNone": "بدون (فئة رئيسية)" + "parentCategoryNone": "بدون (فئة رئيسية)", + "fieldGoesToKitchen": "يذهب إلى المطبخ", + "fieldGoesToKitchenHint": "أوقفه للمنتجات الجاهزة مثل المشروبات المعبأة. تُباع وتُحتسب ضريبتها وتُطبع فاتورتها كالمعتاد، لكنها لا تظهر على شاشة المطبخ ولا في تذاكر المطبخ." }, "productAnalytics": { "title": "ساعدنا في تحديد ما نبنيه بعد ذلك", @@ -2795,7 +2798,12 @@ "refundWindow2h": "ساعتان", "refundWindow4h": "4 ساعات", "refundWindowSameDay": "نفس يوم العمل", - "refundOwnerUnlimitedNote": "يمكن للمالكين دائماً الموافقة على استرداد أي طلب سابق باستخدام رمز PIN للموافقة الخاص بهم." + "refundOwnerUnlimitedNote": "يمكن للمالكين دائماً الموافقة على استرداد أي طلب سابق باستخدام رمز PIN للموافقة الخاص بهم.", + "serviceModel": "نموذج الخدمة", + "serviceModelQsr": "خدمة سريعة", + "serviceModelFinedine": "مطعم راقٍ", + "serviceModelHybridHint": "تُدفع طلبات المنضدة والسفري أولًا وطلبات الطاولات بعد الخدمة. تلزم الطاولة لطلبات تناول الطعام في المكان فقط.", + "serviceModelHybrid": "خدمة سريعة + مطعم راقٍ" }, "setup": { "alreadyCompleted": "تم الانتهاء من عملية الإعداد في هذا التثبيت. يتم إعادة التوجيه إلى صفحة تسجيل الدخول…", @@ -2892,7 +2900,10 @@ "termsIntro": "أوافق على شروط FloPOS", "timezoneHint": "يتم ملؤها مسبقًا من بلدك. يمكن للمتاجر الموجودة في البلدان التي تضم مناطق زمنية متعددة اختيار المنطقة الزمنية المحلية الفعلية الخاصة بها.", "timezoneLabel": "المنطقة الزمنية", - "welcome": "مرحبًا بكم في FloCafe" + "welcome": "مرحبًا بكم في FloCafe", + "hybridLabel": "خدمة سريعة + مطعم راقٍ", + "hybridDesc": "المنضدة وقاعة الطعام معًا", + "hybridDetails": "الأنسب للأماكن التي تبيع منتجات جاهزة عند المنضدة وتستقبل ضيوفًا على الطاولات. تُدفع طلبات المنضدة والسفري أولًا، وطلبات الطاولات بعد الخدمة." }, "staff": { "addButton": "إضافة موظف", diff --git a/frontend/src/lib/i18n/messages/bn.json b/frontend/src/lib/i18n/messages/bn.json index 12e325bb23..412ac225bf 100644 --- a/frontend/src/lib/i18n/messages/bn.json +++ b/frontend/src/lib/i18n/messages/bn.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "এই টার্মিনালে ইতিমধ্যে একটি শিফট খোলা থাকা সত্ত্বেও ত্রুটিটি চলতে থাকলে তবেই সাপোর্টে যোগাযোগ করুন।", "validationClosedBooksGuidance": "আজকের ব্যবসায়িক দিন বন্ধ হয়ে গেছে এবং তা পুনরায় খোলা যাবে না। পরবর্তী ব্যবসায়িক দিনে নতুন অর্ডার ও নগদ লেনদেন শুরু হবে।", "validationClosedBooksEvidenceHint": "দোকানের ভুল তারিখ বা টাইমজোনে আজকের ব্যবসায়িক দিন বন্ধ দেখালে তবেই সাপোর্টে যোগাযোগ করুন।", - "validationGenericEvidenceHint": "আপনি যদি মনে করেন এই যাচাইকরণটি একটি বৈধ অনুরোধ প্রত্যাখ্যান করেছে, তবেই সাপোর্টে যোগাযোগ করুন।" + "validationGenericEvidenceHint": "আপনি যদি মনে করেন এই যাচাইকরণটি একটি বৈধ অনুরোধ প্রত্যাখ্যান করেছে, তবেই সাপোর্টে যোগাযোগ করুন।", + "readyMadeNoKitchen": "তৈরি, রান্নাঘর লাগে না" }, "printTest": { "amt": "এএমটি", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "এই ভ্যারিয়েন্টটি সংরক্ষণের সময় নিষ্ক্রিয় হবে এবং এই স্ক্রিন থেকে ফিরিয়ে আনা যাবে না।", "variantRemoveAllConfirm": "এটি বন্ধ করলে এই পণ্যের সব ভ্যারিয়েন্ট নিষ্ক্রিয় হয়ে যাবে। পুরোনো অর্ডারে সেগুলো থাকবে।", "parentCategory": "মূল বিভাগ", - "parentCategoryNone": "কোনোটি নয় (মূল স্তর)" + "parentCategoryNone": "কোনোটি নয় (মূল স্তর)", + "fieldGoesToKitchen": "রান্নাঘরে যায়", + "fieldGoesToKitchenHint": "বোতলজাত পানীয়ের মতো তৈরি-করা পণ্যের জন্য বন্ধ করুন। এগুলো যথারীতি বিক্রি, করযুক্ত ও রসিদভুক্ত হয়, কিন্তু রান্নাঘরের ডিসপ্লে বা কিচেন টিকিটে আসে না।" }, "productAnalytics": { "title": "এরপর কী বানাব, তা ঠিক করতে আমাদের সাহায্য করুন", @@ -2795,7 +2798,12 @@ "refundWindow2h": "২ ঘণ্টা", "refundWindow4h": "৪ ঘণ্টা", "refundWindowSameDay": "একই ব্যবসায়িক দিন", - "refundOwnerUnlimitedNote": "মালিকরা তাদের স্টাফ অনুমোদন পিন দিয়ে যেকোনো পুরনো অর্ডারের রিফান্ড সর্বদা অনুমোদন করতে পারেন।" + "refundOwnerUnlimitedNote": "মালিকরা তাদের স্টাফ অনুমোদন পিন দিয়ে যেকোনো পুরনো অর্ডারের রিফান্ড সর্বদা অনুমোদন করতে পারেন।", + "serviceModel": "পরিষেবার ধরন", + "serviceModelQsr": "দ্রুত পরিষেবা", + "serviceModelFinedine": "ফাইন ডাইনিং", + "serviceModelHybridHint": "কাউন্টার ও টেকঅ্যাওয়ে অর্ডারের মূল্য আগে, টেবিলের অর্ডারের মূল্য পরিষেবার পরে নেওয়া হয়। শুধু ডাইন-ইন অর্ডারে টেবিল লাগে।", + "serviceModelHybrid": "দ্রুত পরিষেবা + ফাইন ডাইনিং" }, "setup": { "alreadyCompleted": "এই ইনস্টলে সেটআপ ইতিমধ্যেই সম্পন্ন হয়েছে। লগইন করার জন্য পুনঃনির্দেশ করা হচ্ছে...", @@ -2892,7 +2900,10 @@ "termsIntro": "আমি FloPOS-এ সম্মত", "timezoneHint": "আপনার দেশ থেকে প্রাক-ভরা। মাল্টি-টাইমজোন দেশগুলিতে স্টোরগুলি তাদের প্রকৃত স্থানীয় সময় অঞ্চল বেছে নিতে পারে।", "timezoneLabel": "টাইমজোন", - "welcome": "FloCafe স্বাগতম" + "welcome": "FloCafe স্বাগতম", + "hybridLabel": "দ্রুত পরিষেবা + ফাইন ডাইনিং", + "hybridDesc": "কাউন্টার ও ডাইনিং রুম একসাথে", + "hybridDetails": "যেসব জায়গায় কাউন্টারে তৈরি-করা পণ্য বিক্রি হয় এবং অতিথিদেরও বসানো হয়, তাদের জন্য সেরা। কাউন্টার ও টেকঅ্যাওয়ে অর্ডারের মূল্য আগে, টেবিলের অর্ডারের মূল্য পরিষেবার পরে নেওয়া হয়।" }, "staff": { "addButton": "স্টাফ যোগ করুন", diff --git a/frontend/src/lib/i18n/messages/de.json b/frontend/src/lib/i18n/messages/de.json index 0c24a5d7b7..1c74b742d2 100644 --- a/frontend/src/lib/i18n/messages/de.json +++ b/frontend/src/lib/i18n/messages/de.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Kontaktieren Sie den Support nur, wenn an diesem Terminal bereits eine Schicht geöffnet ist und dieser Fehler weiterhin auftritt.", "validationClosedBooksGuidance": "Der heutige Geschäftstag ist abgeschlossen und kann nicht wieder geöffnet werden. Neue Bestellungen und Bargeldbewegungen sind am nächsten Geschäftstag wieder möglich.", "validationClosedBooksEvidenceHint": "Kontaktieren Sie den Support nur, wenn der heutige Geschäftstag zum falschen Geschäftsdatum oder in der falschen Zeitzone als geschlossen angezeigt wird.", - "validationGenericEvidenceHint": "Kontaktieren Sie den Support nur, wenn diese Prüfung Ihrer Ansicht nach eine gültige Anfrage abgelehnt hat." + "validationGenericEvidenceHint": "Kontaktieren Sie den Support nur, wenn diese Prüfung Ihrer Ansicht nach eine gültige Anfrage abgelehnt hat.", + "readyMadeNoKitchen": "Fertigprodukt, keine Küche" }, "printTest": { "amt": "Betrag", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Diese Variante wird beim Speichern deaktiviert und kann auf diesem Bildschirm nicht wiederhergestellt werden.", "variantRemoveAllConfirm": "Wenn Sie dies abschalten, werden alle Varianten dieses Produkts deaktiviert. Frühere Bestellungen behalten sie.", "parentCategory": "Übergeordnete Kategorie", - "parentCategoryNone": "Keine (Hauptkategorie)" + "parentCategoryNone": "Keine (Hauptkategorie)", + "fieldGoesToKitchen": "Geht in die Küche", + "fieldGoesToKitchenHint": "Für Fertigprodukte wie Flaschengetränke ausschalten. Sie werden wie gewohnt verkauft, versteuert und quittiert, erscheinen aber weder auf dem Küchenmonitor noch auf Küchenbons." }, "productAnalytics": { "title": "Hilf uns zu entscheiden, was wir als Nächstes bauen", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 Stunden", "refundWindow4h": "4 Stunden", "refundWindowSameDay": "Gleicher Geschäftstag", - "refundOwnerUnlimitedNote": "Inhaber können Rückerstattungen für jede vergangene Bestellung jederzeit mit ihrer Personal-Genehmigungs-PIN genehmigen." + "refundOwnerUnlimitedNote": "Inhaber können Rückerstattungen für jede vergangene Bestellung jederzeit mit ihrer Personal-Genehmigungs-PIN genehmigen.", + "serviceModel": "Servicemodell", + "serviceModelQsr": "Schnellservice", + "serviceModelFinedine": "Gehobene Gastronomie", + "serviceModelHybridHint": "Theken- und Außer-Haus-Bestellungen werden vorab bezahlt, Tischbestellungen nach dem Service. Ein Tisch ist nur für Bestellungen vor Ort nötig.", + "serviceModelHybrid": "Schnellservice + gehobene Gastronomie" }, "setup": { "alreadyCompleted": "Die Ersteinrichtung wurde bereits abgeschlossen. Weiterleitung zur Anmeldung…", @@ -2892,7 +2900,10 @@ "termsIntro": "Ich stimme den Nutzungsbedingungen von FloPOS zu", "timezoneHint": "Aus Ihrem Land vorausgefüllt. Geschäfte in Ländern mit mehreren Zeitzonen können ihre tatsächliche lokale Zeitzone auswählen.", "timezoneLabel": "Zeitzone", - "welcome": "Willkommen" + "welcome": "Willkommen", + "hybridLabel": "Schnellservice + gehobene Gastronomie", + "hybridDesc": "Theke und Gastraum zusammen", + "hybridDetails": "Ideal für Betriebe, die an der Theke Fertigprodukte verkaufen und zusätzlich Gäste bedienen. Theken- und Außer-Haus-Bestellungen werden vorab bezahlt, Tischbestellungen nach dem Service." }, "staff": { "addButton": "Personal hinzufügen", diff --git a/frontend/src/lib/i18n/messages/en.json b/frontend/src/lib/i18n/messages/en.json index 1cca982860..28c6217462 100644 --- a/frontend/src/lib/i18n/messages/en.json +++ b/frontend/src/lib/i18n/messages/en.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Only contact support if a shift is already open on this terminal and this error continues.", "validationClosedBooksGuidance": "Today's business day is closed and cannot be reopened. New orders and cash activity resume on the next business day.", "validationClosedBooksEvidenceHint": "Only contact support if today's business day appears closed at the wrong store date or timezone.", - "validationGenericEvidenceHint": "Only contact support if you believe this validation check rejected a valid request." + "validationGenericEvidenceHint": "Only contact support if you believe this validation check rejected a valid request.", + "readyMadeNoKitchen": "Ready-made, no kitchen" }, "printTest": { "amt": "Amt", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "This variant is deactivated on save and cannot be restored from this screen.", "variantRemoveAllConfirm": "Turning this off deactivates every variant of this product. Historical orders keep them.", "parentCategory": "Parent Category", - "parentCategoryNone": "None (Top-level)" + "parentCategoryNone": "None (Top-level)", + "fieldGoesToKitchen": "Goes to kitchen", + "fieldGoesToKitchenHint": "Turn off for ready-made items like bottled drinks. They are sold, taxed and receipted as usual but never appear on the kitchen display or kitchen tickets." }, "productAnalytics": { "title": "Help us decide what to build next", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 hours", "refundWindow4h": "4 hours", "refundWindowSameDay": "Same business day", - "refundOwnerUnlimitedNote": "Owners can always approve refunds for any past order with their Staff Approval PIN." + "refundOwnerUnlimitedNote": "Owners can always approve refunds for any past order with their Staff Approval PIN.", + "serviceModel": "Service model", + "serviceModelQsr": "Quick service", + "serviceModelFinedine": "Fine dining", + "serviceModelHybridHint": "Counter and takeaway orders are paid first, table orders after service. A table is required only for dine-in orders.", + "serviceModelHybrid": "Quick service + fine dining" }, "setup": { "alreadyCompleted": "Setup has already been completed on this install. Redirecting to login…", @@ -2892,7 +2900,10 @@ "termsIntro": "I agree to the FloPOS", "timezoneHint": "Pre-filled from your country. Stores in multi-timezone countries can choose their actual local timezone.", "timezoneLabel": "Timezone", - "welcome": "Welcome to FloCafe" + "welcome": "Welcome to FloCafe", + "hybridLabel": "Quick service + fine dining", + "hybridDesc": "Counter and dining room together", + "hybridDetails": "Best for venues that sell ready-made items at a counter and also seat guests. Counter and takeaway orders are paid first; table orders are paid after service." }, "staff": { "addButton": "Add Staff", diff --git a/frontend/src/lib/i18n/messages/es.json b/frontend/src/lib/i18n/messages/es.json index 1171b8f789..65de6103fb 100644 --- a/frontend/src/lib/i18n/messages/es.json +++ b/frontend/src/lib/i18n/messages/es.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Contacte a soporte solo si ya hay un turno abierto en este terminal y el error continúa.", "validationClosedBooksGuidance": "La jornada comercial de hoy está cerrada y no se puede reabrir. Los nuevos pedidos y movimientos de efectivo se reanudan en la siguiente jornada comercial.", "validationClosedBooksEvidenceHint": "Contacte a soporte solo si la jornada comercial de hoy aparece cerrada con una fecha o zona horaria incorrecta.", - "validationGenericEvidenceHint": "Contacte a soporte solo si cree que esta validación rechazó una solicitud válida." + "validationGenericEvidenceHint": "Contacte a soporte solo si cree que esta validación rechazó una solicitud válida.", + "readyMadeNoKitchen": "Listo, sin cocina" }, "printTest": { "amt": "Total", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Esta variante se desactivará al guardar y no se podrá restaurar desde esta pantalla.", "variantRemoveAllConfirm": "Al desactivarlo se desactivarán todas las variantes de este producto. Los pedidos anteriores las conservan.", "parentCategory": "Categoría principal", - "parentCategoryNone": "Ninguna (nivel superior)" + "parentCategoryNone": "Ninguna (nivel superior)", + "fieldGoesToKitchen": "Va a la cocina", + "fieldGoesToKitchenHint": "Desactívalo para productos listos como bebidas embotelladas. Se venden, gravan y facturan como siempre, pero nunca aparecen en la pantalla ni en los tickets de cocina." }, "productAnalytics": { "title": "Ayúdanos a decidir qué construir después", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 horas", "refundWindow4h": "4 horas", "refundWindowSameDay": "Mismo día comercial", - "refundOwnerUnlimitedNote": "Los propietarios siempre pueden aprobar reembolsos de cualquier pedido anterior con su PIN de aprobación de personal." + "refundOwnerUnlimitedNote": "Los propietarios siempre pueden aprobar reembolsos de cualquier pedido anterior con su PIN de aprobación de personal.", + "serviceModel": "Modelo de servicio", + "serviceModelQsr": "Servicio rápido", + "serviceModelFinedine": "Restaurante", + "serviceModelHybridHint": "Los pedidos de mostrador y para llevar se pagan primero y los de mesa después del servicio. La mesa solo es obligatoria en pedidos para consumir en el local.", + "serviceModelHybrid": "Servicio rápido + restaurante" }, "setup": { "alreadyCompleted": "La configuración ya se completó en esta instalación. Redirigiendo al inicio de sesión…", @@ -2892,7 +2900,10 @@ "termsIntro": "Acepto los", "timezoneHint": "Se completa con tu país. Los locales en países con varias zonas horarias pueden elegir su zona horaria real.", "timezoneLabel": "Zona horaria", - "welcome": "Bienvenido a FloCafe" + "welcome": "Bienvenido a FloCafe", + "hybridLabel": "Servicio rápido + restaurante", + "hybridDesc": "Mostrador y comedor juntos", + "hybridDetails": "Ideal para locales que venden productos listos en el mostrador y además atienden mesas. Los pedidos de mostrador y para llevar se pagan primero; los de mesa, tras el servicio." }, "staff": { "addButton": "Agregar Personal", diff --git a/frontend/src/lib/i18n/messages/fa.json b/frontend/src/lib/i18n/messages/fa.json index 3d6b2243e8..a367a4e3df 100644 --- a/frontend/src/lib/i18n/messages/fa.json +++ b/frontend/src/lib/i18n/messages/fa.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "تنها در صورتی با پشتیبانی تماس بگیرید که در این پایانه شیفت باز وجود دارد و این خطا ادامه دارد.", "validationClosedBooksGuidance": "روز کاری امروز بسته شده است و امکان بازگشایی آن وجود ندارد. سفارش جدید و گردش نقدی در روز کاری بعدی از سر گرفته خواهد شد.", "validationClosedBooksEvidenceHint": "تنها در صورتی با پشتیبانی تماس بگیرید که روز کاری امروز در تاریخ یا منطقه زمانی نادرست فروشگاه بسته نمایش داده شود.", - "validationGenericEvidenceHint": "تنها در صورتی با پشتیبانی تماس بگیرید که مطمئن هستید این اعتبارسنجی یک درخواست معتبر را رد کرده است." + "validationGenericEvidenceHint": "تنها در صورتی با پشتیبانی تماس بگیرید که مطمئن هستید این اعتبارسنجی یک درخواست معتبر را رد کرده است.", + "readyMadeNoKitchen": "آماده، بدون آشپزخانه" }, "printTest": { "amt": "مبلغ", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "این گزینه هنگام ذخیره غیرفعال می‌شود و از این صفحه قابل بازگردانی نیست.", "variantRemoveAllConfirm": "با خاموش کردن این، همه گزینه‌های این محصول غیرفعال می‌شوند. سفارش‌های قبلی آن‌ها را نگه می‌دارند.", "parentCategory": "دسته‌بندی والد", - "parentCategoryNone": "هیچ‌کدام (سطح اصلی)" + "parentCategoryNone": "هیچ‌کدام (سطح اصلی)", + "fieldGoesToKitchen": "به آشپزخانه میرود", + "fieldGoesToKitchenHint": "برای کالاهای آماده مانند نوشیدنیهای بطریشده خاموش کنید. این کالاها مثل همیشه فروخته و مالیاتگذاری و رسید میشوند، اما هرگز در نمایشگر یا برگههای آشپزخانه دیده نمیشوند." }, "productAnalytics": { "title": "کمک کنید تصمیم بگیریم بعداً چه بسازیم", @@ -2795,7 +2798,12 @@ "refundWindow2h": "۲ ساعت", "refundWindow4h": "۴ ساعت", "refundWindowSameDay": "همان روز کاری", - "refundOwnerUnlimitedNote": "مالکان همیشه میتوانند استرداد هر سفارش قبلی را با پین تأیید خود تأیید کنند." + "refundOwnerUnlimitedNote": "مالکان همیشه میتوانند استرداد هر سفارش قبلی را با پین تأیید خود تأیید کنند.", + "serviceModel": "مدل سرویس", + "serviceModelQsr": "سرویس سریع", + "serviceModelFinedine": "رستوران", + "serviceModelHybridHint": "سفارشهای پیشخوان و بیرونبر ابتدا و سفارشهای میز پس از سرویس پرداخت میشوند. میز فقط برای سفارشهای سالن لازم است.", + "serviceModelHybrid": "سرویس سریع + رستوران" }, "setup": { "alreadyCompleted": "راه‌اندازی در این نصب پیش‌تر انجام شده است. در حال بازگشت به ورود…", @@ -2892,7 +2900,10 @@ "termsIntro": "من با FloPOS موافقم", "timezoneHint": "بر اساس کشور شما از پیش پر شده است. فروشگاه‌ها در کشورهای چندمنطقه‌ای می‌توانند منطقه زمانی واقعی خود را انتخاب کنند.", "timezoneLabel": "منطقه زمانی", - "welcome": "به FloCafe خوش آمدید" + "welcome": "به FloCafe خوش آمدید", + "hybridLabel": "سرویس سریع + رستوران", + "hybridDesc": "پیشخوان و سالن غذاخوری با هم", + "hybridDetails": "مناسب مکانهایی که در پیشخوان کالای آماده میفروشند و مهمان هم سر میز مینشانند. سفارشهای پیشخوان و بیرونبر ابتدا و سفارشهای میز پس از سرویس پرداخت میشوند." }, "staff": { "addButton": "افزودن کارمند", diff --git a/frontend/src/lib/i18n/messages/fil.json b/frontend/src/lib/i18n/messages/fil.json index 47435788d5..610934345d 100644 --- a/frontend/src/lib/i18n/messages/fil.json +++ b/frontend/src/lib/i18n/messages/fil.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Makipag-ugnayan lang sa support kung may bukas nang shift sa terminal na ito at nagpapatuloy pa rin ang error.", "validationClosedBooksGuidance": "Sarado na ang araw ng negosyo ngayon at hindi na maaaring buksan muli. Magpapatuloy ang mga bagong order at galaw ng pera sa susunod na araw ng negosyo.", "validationClosedBooksEvidenceHint": "Makipag-ugnayan lang sa support kung lumalabas na sarado ang araw ng negosyo sa maling petsa o timezone ng tindahan.", - "validationGenericEvidenceHint": "Makipag-ugnayan lang sa support kung naniniwala kang tinanggihan ng pagsusuring ito ang isang wastong kahilingan." + "validationGenericEvidenceHint": "Makipag-ugnayan lang sa support kung naniniwala kang tinanggihan ng pagsusuring ito ang isang wastong kahilingan.", + "readyMadeNoKitchen": "Handa na, walang kusina" }, "printTest": { "amt": "Halaga", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "I-deactivate ang variant na ito kapag nai-save at hindi ito maibabalik mula sa screen na ito.", "variantRemoveAllConfirm": "Kapag pinatay ito, made-deactivate ang lahat ng variant ng produktong ito. Nananatili ang dating mga order.", "parentCategory": "Pangunahing Kategorya", - "parentCategoryNone": "Wala (Nangungunang antas)" + "parentCategoryNone": "Wala (Nangungunang antas)", + "fieldGoesToKitchen": "Pupunta sa kusina", + "fieldGoesToKitchenHint": "I-off para sa handa nang produkto tulad ng nakabotelyang inumin. Ibinebenta, binubuwisan at nire-resibo ito gaya ng dati, pero hindi lalabas sa display o ticket ng kusina." }, "productAnalytics": { "title": "Tulungan kaming magpasya kung ano ang susunod naming gagawin", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 oras", "refundWindow4h": "4 na oras", "refundWindowSameDay": "Parehong araw ng negosyo", - "refundOwnerUnlimitedNote": "Maaaring aprubahan palagi ng mga may-ari ang refund para sa anumang nakaraang order gamit ang kanilang Staff Approval PIN." + "refundOwnerUnlimitedNote": "Maaaring aprubahan palagi ng mga may-ari ang refund para sa anumang nakaraang order gamit ang kanilang Staff Approval PIN.", + "serviceModel": "Modelo ng serbisyo", + "serviceModelQsr": "Mabilis na serbisyo", + "serviceModelFinedine": "Mataas na uri ng kainan", + "serviceModelHybridHint": "Binabayaran muna ang counter at takeaway na order, pagkatapos ng serbisyo ang order sa mesa. Kailangan lang ng mesa sa dine-in na order.", + "serviceModelHybrid": "Mabilis na serbisyo + fine dining" }, "setup": { "alreadyCompleted": "Nakumpleto na ang setup sa installation na ito. Nireredirect sa pag-login…", @@ -2892,7 +2900,10 @@ "termsIntro": "Sumasang-ayon ako sa FloPOS", "timezoneHint": "Kusang napunan mula sa iyong bansa.", "timezoneLabel": "Timezone", - "welcome": "Maligayang Pagdating sa FloCafe" + "welcome": "Maligayang Pagdating sa FloCafe", + "hybridLabel": "Mabilis na serbisyo + fine dining", + "hybridDesc": "Counter at dining room nang magkasama", + "hybridDetails": "Pinakamainam para sa mga lugar na nagbebenta ng handa nang produkto sa counter at may pinaupo ring bisita. Binabayaran muna ang counter at takeaway na order; pagkatapos ng serbisyo ang order sa mesa." }, "staff": { "addButton": "Magdagdag ng Staff", diff --git a/frontend/src/lib/i18n/messages/fr.json b/frontend/src/lib/i18n/messages/fr.json index 0d42237993..b61eaae22e 100644 --- a/frontend/src/lib/i18n/messages/fr.json +++ b/frontend/src/lib/i18n/messages/fr.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Contactez l'assistance uniquement si un poste est déjà ouvert sur ce terminal et que cette erreur persiste.", "validationClosedBooksGuidance": "La journée comptable d'aujourd'hui est clôturée et ne peut pas être rouverte. Les nouvelles commandes et opérations espèces reprendront à la prochaine journée comptable.", "validationClosedBooksEvidenceHint": "Contactez l'assistance uniquement si la journée d'aujourd'hui apparaît clôturée à une date ou un fuseau horaire erronés.", - "validationGenericEvidenceHint": "Contactez l'assistance uniquement si vous pensez que ce contrôle de validation a rejeté une demande valide." + "validationGenericEvidenceHint": "Contactez l'assistance uniquement si vous pensez que ce contrôle de validation a rejeté une demande valide.", + "readyMadeNoKitchen": "Prêt, sans cuisine" }, "printTest": { "amt": "Montant", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Cette variante sera désactivée à l’enregistrement et ne pourra pas être restaurée depuis cet écran.", "variantRemoveAllConfirm": "Si vous le désactivez, toutes les variantes de ce produit seront désactivées. Les commandes passées les conservent.", "parentCategory": "Catégorie parente", - "parentCategoryNone": "Aucune (niveau principal)" + "parentCategoryNone": "Aucune (niveau principal)", + "fieldGoesToKitchen": "Va en cuisine", + "fieldGoesToKitchenHint": "Désactivez pour les produits prêts comme les boissons en bouteille. Ils sont vendus, taxés et ticketés comme d'habitude, mais n'apparaissent jamais sur l'écran ni sur les bons de cuisine." }, "productAnalytics": { "title": "Aidez-nous à décider quoi construire ensuite", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 heures", "refundWindow4h": "4 heures", "refundWindowSameDay": "Même journée commerciale", - "refundOwnerUnlimitedNote": "Les propriétaires peuvent toujours approuver les remboursements de toute commande passée avec leur code PIN d’approbation." + "refundOwnerUnlimitedNote": "Les propriétaires peuvent toujours approuver les remboursements de toute commande passée avec leur code PIN d’approbation.", + "serviceModel": "Modèle de service", + "serviceModelQsr": "Service rapide", + "serviceModelFinedine": "Restauration gastronomique", + "serviceModelHybridHint": "Les commandes au comptoir et à emporter sont payées d'abord, celles des tables après le service. Une table n'est requise que pour les commandes sur place.", + "serviceModelHybrid": "Service rapide + restauration gastronomique" }, "setup": { "alreadyCompleted": "La configuration a déjà été effectuée sur cette installation. Redirection vers la connexion…", @@ -2892,7 +2900,10 @@ "termsIntro": "J’accepte les documents FloPOS suivants :", "timezoneHint": "Prérempli à partir de votre pays. Les établissements situés dans un pays couvrant plusieurs fuseaux horaires peuvent choisir leur fuseau local réel.", "timezoneLabel": "Fuseau horaire", - "welcome": "Bienvenue dans FloCafe" + "welcome": "Bienvenue dans FloCafe", + "hybridLabel": "Service rapide + restauration gastronomique", + "hybridDesc": "Comptoir et salle ensemble", + "hybridDetails": "Idéal pour les établissements qui vendent des produits prêts au comptoir et accueillent aussi des convives. Les commandes au comptoir et à emporter sont payées d'abord, celles des tables après le service." }, "staff": { "addButton": "Ajouter un employé", diff --git a/frontend/src/lib/i18n/messages/ha.json b/frontend/src/lib/i18n/messages/ha.json index 7604cc7c9c..f58939aeec 100644 --- a/frontend/src/lib/i18n/messages/ha.json +++ b/frontend/src/lib/i18n/messages/ha.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Tuntuɓi tallafi kawai idan an riga an buɗe shift a wannan na'urar kuma wannan kuskuren ya ci gaba.", "validationClosedBooksGuidance": "An rufe ranar kasuwanci ta yau kuma ba za a iya sake buɗe ta ba. Sabbin ododi da hada-hadar tsabar kuɗi za su ci gaba a ranar kasuwanci ta gaba.", "validationClosedBooksEvidenceHint": "Tuntuɓi tallafi kawai idan ranar kasuwanci ta yau ta nuna a rufe a kwanan wata ko yankin lokaci marar daidai.", - "validationGenericEvidenceHint": "Tuntuɓi tallafi kawai idan kuna ganin wannan tantancewar ta ƙi amsar ingantacciyar buƙata." + "validationGenericEvidenceHint": "Tuntuɓi tallafi kawai idan kuna ganin wannan tantancewar ta ƙi amsar ingantacciyar buƙata.", + "readyMadeNoKitchen": "An shirya, babu kicin" }, "printTest": { "amt": "Kuɗi", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Za a kashe wannan nau'in idan an adana kuma ba za a iya maido da shi daga wannan allon ba.", "variantRemoveAllConfirm": "Kashe wannan yana kashe kowane nau'i na wannan samfurin. Ododin baya za su ci gaba da riƙe su.", "parentCategory": "Babban Rukuni", - "parentCategoryNone": "Babu (Matakin farko)" + "parentCategoryNone": "Babu (Matakin farko)", + "fieldGoesToKitchen": "Yana zuwa kicin", + "fieldGoesToKitchenHint": "Kashe wannan ga kayan da aka riga aka shirya kamar abin sha na kwalba. Ana sayar da su, a ƙaddamar da haraji da rasit kamar yadda aka saba, amma ba sa fitowa a allon kicin ko takardun kicin." }, "productAnalytics": { "title": "Taimaka mana mu yanke shawarar abin da za mu gina na gaba", @@ -2795,7 +2798,12 @@ "refundWindow2h": "Awanni 2", "refundWindow4h": "Awanni 4", "refundWindowSameDay": "Rana ɗaya ta kasuwanci", - "refundOwnerUnlimitedNote": "Masu shago za su iya amincewa da mayar da kuɗi a kowane lokaci don kowace tsohuwar oda da PIN ɗinsu na amincewa." + "refundOwnerUnlimitedNote": "Masu shago za su iya amincewa da mayar da kuɗi a kowane lokaci don kowace tsohuwar oda da PIN ɗinsu na amincewa.", + "serviceModel": "Tsarin sabis", + "serviceModelQsr": "Sabis mai sauri", + "serviceModelFinedine": "Cin abinci mai daraja", + "serviceModelHybridHint": "Ana biyan odar kanta da ta ɗauka tukuna, odar tebur kuma bayan hidima. Ana buƙatar tebur ne kawai ga odar cin abinci a wurin.", + "serviceModelHybrid": "Sabis mai sauri + cin abinci mai daraja" }, "setup": { "alreadyCompleted": "An riga an kammala saitin farko a wannan manhajar da aka girka. Ana turawa zuwa shafin shiga…", @@ -2892,7 +2900,10 @@ "termsIntro": "Na amince da na FloPOS", "timezoneHint": "An cika tun farko daga ƙasarka. Shaguna a ƙasashe masu yankunan lokaci da yawa suna iya zaɓar ainihin yankin lokacinsu.", "timezoneLabel": "Yankin lokaci", - "welcome": "Barka da zuwa FloCafe" + "welcome": "Barka da zuwa FloCafe", + "hybridLabel": "Sabis mai sauri + cin abinci mai daraja", + "hybridDesc": "Kanta da dakin cin abinci tare", + "hybridDetails": "Ya fi dacewa da wuraren da ke sayar da kayan da aka riga aka shirya a kanta kuma suna zaunar da baƙi. Ana biyan odar kanta da ta ɗauka tukuna; ana biyan odar tebur bayan hidima." }, "staff": { "addButton": "Ƙara Ma'aikaci", diff --git a/frontend/src/lib/i18n/messages/hi.json b/frontend/src/lib/i18n/messages/hi.json index fca4446c01..5546c51169 100644 --- a/frontend/src/lib/i18n/messages/hi.json +++ b/frontend/src/lib/i18n/messages/hi.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "यदि इस टर्मिनल पर पहले से शिफ्ट खुली है और यह त्रुटि बनी रहती है तभी सहायता से संपर्क करें।", "validationClosedBooksGuidance": "आज का व्यावसायिक दिन बंद हो चुका है और इसे दोबारा नहीं खोला जा सकता। नए ऑर्डर और नकद लेनदेन अगले व्यावसायिक दिन से शुरू होंगे।", "validationClosedBooksEvidenceHint": "यदि आज का व्यावसायिक दिन गलत स्टोर तिथि या समय क्षेत्र पर बंद दिख रहा हो तभी सहायता से संपर्क करें।", - "validationGenericEvidenceHint": "यदि आपको लगता है कि इस सत्यापन जांच ने किसी वैध अनुरोध को अस्वीकार किया है तभी सहायता से संपर्क करें।" + "validationGenericEvidenceHint": "यदि आपको लगता है कि इस सत्यापन जांच ने किसी वैध अनुरोध को अस्वीकार किया है तभी सहायता से संपर्क करें।", + "readyMadeNoKitchen": "तैयार, रसोई नहीं" }, "printTest": { "amt": "राशि", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "सहेजने पर यह वेरिएंट निष्क्रिय हो जाएगा और इसे इस स्क्रीन से वापस नहीं लाया जा सकता।", "variantRemoveAllConfirm": "इसे बंद करने पर इस उत्पाद के सभी वेरिएंट निष्क्रिय हो जाएँगे। पुराने ऑर्डर उन्हें बनाए रखेंगे।", "parentCategory": "मुख्य श्रेणी", - "parentCategoryNone": "कोई नहीं (शीर्ष स्तर)" + "parentCategoryNone": "कोई नहीं (शीर्ष स्तर)", + "fieldGoesToKitchen": "रसोई में जाता है", + "fieldGoesToKitchenHint": "बोतलबंद पेय जैसे तैयार सामान के लिए बंद करें। ये हमेशा की तरह बिकते, कर-युक्त और रसीदित होते हैं, पर रसोई डिस्प्ले या किचन टिकट पर नहीं आते।" }, "productAnalytics": { "title": "आगे क्या बनाएं, यह तय करने में हमारी मदद करें", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 घंटे", "refundWindow4h": "4 घंटे", "refundWindowSameDay": "उसी कारोबारी दिन", - "refundOwnerUnlimitedNote": "मालिक अपने स्टाफ स्वीकृति पिन के साथ किसी भी पुराने ऑर्डर के रिफंड को हमेशा स्वीकृत कर सकते हैं।" + "refundOwnerUnlimitedNote": "मालिक अपने स्टाफ स्वीकृति पिन के साथ किसी भी पुराने ऑर्डर के रिफंड को हमेशा स्वीकृत कर सकते हैं।", + "serviceModel": "सेवा मॉडल", + "serviceModelQsr": "त्वरित सेवा", + "serviceModelFinedine": "फ़ाइन डाइनिंग", + "serviceModelHybridHint": "काउंटर और टेकअवे ऑर्डर का भुगतान पहले, टेबल ऑर्डर का सेवा के बाद होता है। टेबल केवल डाइन-इन ऑर्डर के लिए ज़रूरी है।", + "serviceModelHybrid": "त्वरित सेवा + फ़ाइन डाइनिंग" }, "setup": { "alreadyCompleted": "इस इंस्टाल पर सेटअप पहले ही पूरा हो चुका है. लॉगिन करने के लिए पुनः निर्देशित किया जा रहा है...", @@ -2892,7 +2900,10 @@ "termsIntro": "मैं FloPOS से सहमत हूं", "timezoneHint": "आपके देश से पहले से भरा हुआ. बहु-समयक्षेत्र वाले देशों में स्टोर अपना वास्तविक स्थानीय समयक्षेत्र चुन सकते हैं।", "timezoneLabel": "समयक्षेत्र", - "welcome": "FloCafe में आपका स्वागत है" + "welcome": "FloCafe में आपका स्वागत है", + "hybridLabel": "त्वरित सेवा + फ़ाइन डाइनिंग", + "hybridDesc": "काउंटर और डाइनिंग रूम साथ-साथ", + "hybridDetails": "उन जगहों के लिए सबसे अच्छा जो काउंटर पर तैयार सामान बेचती हैं और मेहमानों को भी बैठाती हैं। काउंटर और टेकअवे ऑर्डर का भुगतान पहले, टेबल ऑर्डर का भुगतान सेवा के बाद होता है।" }, "staff": { "addButton": "स्टाफ़ जोड़ें", diff --git a/frontend/src/lib/i18n/messages/id.json b/frontend/src/lib/i18n/messages/id.json index fa7221aaa2..d1c7887889 100644 --- a/frontend/src/lib/i18n/messages/id.json +++ b/frontend/src/lib/i18n/messages/id.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Hubungi dukungan hanya jika shift sudah dibuka di terminal ini dan kesalahan tetap muncul.", "validationClosedBooksGuidance": "Hari bisnis hari ini sudah ditutup dan tidak dapat dibuka kembali. Pesanan baru dan transaksi tunai dilanjutkan pada hari bisnis berikutnya.", "validationClosedBooksEvidenceHint": "Hubungi dukungan hanya jika hari bisnis hari ini tampak tertutup pada tanggal atau zona waktu toko yang salah.", - "validationGenericEvidenceHint": "Hubungi dukungan hanya jika Anda yakin pemeriksaan validasi ini menolak permintaan yang sah." + "validationGenericEvidenceHint": "Hubungi dukungan hanya jika Anda yakin pemeriksaan validasi ini menolak permintaan yang sah.", + "readyMadeNoKitchen": "Siap jual, tanpa dapur" }, "printTest": { "amt": "Jml", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Varian ini akan dinonaktifkan saat disimpan dan tidak dapat dipulihkan dari layar ini.", "variantRemoveAllConfirm": "Mematikannya akan menonaktifkan semua varian produk ini. Pesanan lama tetap menyimpannya.", "parentCategory": "Kategori Induk", - "parentCategoryNone": "Tidak ada (Tingkat atas)" + "parentCategoryNone": "Tidak ada (Tingkat atas)", + "fieldGoesToKitchen": "Masuk ke dapur", + "fieldGoesToKitchenHint": "Matikan untuk barang siap jual seperti minuman botol. Barang tetap dijual, dikenai pajak, dan dicetak struk seperti biasa, tetapi tidak muncul di layar atau tiket dapur." }, "productAnalytics": { "title": "Bantu kami memutuskan apa yang dibuat berikutnya", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 jam", "refundWindow4h": "4 jam", "refundWindowSameDay": "Hari kerja yang sama", - "refundOwnerUnlimitedNote": "Pemilik selalu dapat menyetujui pengembalian dana untuk pesanan lama mana pun dengan PIN Persetujuan Staf mereka." + "refundOwnerUnlimitedNote": "Pemilik selalu dapat menyetujui pengembalian dana untuk pesanan lama mana pun dengan PIN Persetujuan Staf mereka.", + "serviceModel": "Model layanan", + "serviceModelQsr": "Layanan cepat", + "serviceModelFinedine": "Restoran mewah", + "serviceModelHybridHint": "Pesanan konter dan bawa pulang dibayar di awal, pesanan meja setelah layanan. Meja hanya wajib untuk pesanan makan di tempat.", + "serviceModelHybrid": "Layanan cepat + fine dining" }, "setup": { "alreadyCompleted": "Pengaturan awal sudah selesai dilakukan pada instalasi ini. Mengalihkan ke layar masuk…", @@ -2892,7 +2900,10 @@ "termsIntro": "Saya menyetujui FloPOS", "timezoneHint": "Terisi awal dari negara Anda. Toko di negara dengan lebih dari satu zona waktu dapat memilih zona waktu setempat yang sebenarnya.", "timezoneLabel": "Zona waktu", - "welcome": "Selamat Datang di FloCafe" + "welcome": "Selamat Datang di FloCafe", + "hybridLabel": "Layanan cepat + fine dining", + "hybridDesc": "Konter dan ruang makan sekaligus", + "hybridDetails": "Paling cocok untuk tempat yang menjual barang siap saji di konter sekaligus melayani tamu di meja. Pesanan konter dan bawa pulang dibayar di awal; pesanan meja dibayar setelah layanan." }, "staff": { "addButton": "Tambah Staf", diff --git a/frontend/src/lib/i18n/messages/it.json b/frontend/src/lib/i18n/messages/it.json index ce683e649c..557cf8fb21 100644 --- a/frontend/src/lib/i18n/messages/it.json +++ b/frontend/src/lib/i18n/messages/it.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Contatta il supporto solo se un turno è già aperto su questo terminale e l'errore persiste.", "validationClosedBooksGuidance": "La giornata lavorativa di oggi è chiusa e non può essere riaperta. I nuovi ordini e i movimenti di cassa riprenderanno il prossimo giorno lavorativo.", "validationClosedBooksEvidenceHint": "Contatta il supporto solo se la giornata lavorativa di oggi risulta chiusa con data o fuso orario del punto vendita errati.", - "validationGenericEvidenceHint": "Contatta il supporto solo se ritieni che questo controllo di convalida abbia rifiutato una richiesta valida." + "validationGenericEvidenceHint": "Contatta il supporto solo se ritieni che questo controllo di convalida abbia rifiutato una richiesta valida.", + "readyMadeNoKitchen": "Pronto, senza cucina" }, "printTest": { "amt": "Importo", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Questa variante verrà disattivata al salvataggio e non potrà essere ripristinata da questa schermata.", "variantRemoveAllConfirm": "Disattivandolo verranno disattivate tutte le varianti di questo prodotto. Gli ordini passati le conservano.", "parentCategory": "Categoria principale", - "parentCategoryNone": "Nessuna (livello principale)" + "parentCategoryNone": "Nessuna (livello principale)", + "fieldGoesToKitchen": "Va in cucina", + "fieldGoesToKitchenHint": "Disattiva per i prodotti pronti, come le bevande in bottiglia. Si vendono, tassano e scontrinano come sempre, ma non compaiono mai sul display né sulle comande di cucina." }, "productAnalytics": { "title": "Aiutaci a decidere cosa costruire dopo", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 ore", "refundWindow4h": "4 ore", "refundWindowSameDay": "Stesso giorno lavorativo", - "refundOwnerUnlimitedNote": "I titolari possono sempre approvare i rimborsi per qualsiasi ordine passato con il proprio PIN di approvazione." + "refundOwnerUnlimitedNote": "I titolari possono sempre approvare i rimborsi per qualsiasi ordine passato con il proprio PIN di approvazione.", + "serviceModel": "Modello di servizio", + "serviceModelQsr": "Servizio rapido", + "serviceModelFinedine": "Ristorazione", + "serviceModelHybridHint": "Gli ordini al banco e da asporto si pagano subito, quelli ai tavoli dopo il servizio. Il tavolo serve solo per gli ordini da consumare sul posto.", + "serviceModelHybrid": "Servizio rapido + ristorazione" }, "setup": { "alreadyCompleted": "La configurazione è già stata completata su questa installazione. Reindirizzamento all'accesso…", @@ -2892,7 +2900,10 @@ "termsIntro": "Accetto il FloPOS", "timezoneHint": "Precompilato dal tuo paese. I negozio in paesi con più fusi orari possono scegliere il loro fuso orario locale effettivo.", "timezoneLabel": "Fuso orario", - "welcome": "Benvenuto in FloCafe" + "welcome": "Benvenuto in FloCafe", + "hybridLabel": "Servizio rapido + ristorazione", + "hybridDesc": "Banco e sala insieme", + "hybridDetails": "Ideale per locali che vendono prodotti pronti al banco e servono anche ai tavoli. Gli ordini al banco e da asporto si pagano subito; quelli ai tavoli dopo il servizio." }, "staff": { "addButton": "Aggiungi personale", diff --git a/frontend/src/lib/i18n/messages/ja.json b/frontend/src/lib/i18n/messages/ja.json index aadd787fde..2ebff9ba5f 100644 --- a/frontend/src/lib/i18n/messages/ja.json +++ b/frontend/src/lib/i18n/messages/ja.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "この端末でシフトがすでに開始されているのにエラーが続く場合のみサポートへご連絡ください。", "validationClosedBooksGuidance": "本日の営業日は締め処理済みのため再開できません。新規注文および現金取引は翌営業日に再開されます。", "validationClosedBooksEvidenceHint": "店舗の日付またはタイムゾーンが誤っていて本日の営業日が締められている場合のみサポートへご連絡ください。", - "validationGenericEvidenceHint": "この入力確認によって正しい操作が拒否されたと思われる場合のみサポートへご連絡ください。" + "validationGenericEvidenceHint": "この入力確認によって正しい操作が拒否されたと思われる場合のみサポートへご連絡ください。", + "readyMadeNoKitchen": "既製品・厨房不要" }, "printTest": { "amt": "金額", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "保存するとこのバリアントは無効になり、この画面から復元できません。", "variantRemoveAllConfirm": "オフにするとこの商品のすべてのバリアントが無効になります。過去の注文には残ります。", "parentCategory": "親カテゴリー", - "parentCategoryNone": "なし(最上位)" + "parentCategoryNone": "なし(最上位)", + "fieldGoesToKitchen": "キッチンに送る", + "fieldGoesToKitchenHint": "瓶入り飲料などの既製品はオフにしてください。通常どおり販売・課税・レシート発行されますが、キッチンディスプレイや厨房伝票には表示されません。" }, "productAnalytics": { "title": "次に何を作るか、一緒に決めてください", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2時間", "refundWindow4h": "4時間", "refundWindowSameDay": "同一営業日内", - "refundOwnerUnlimitedNote": "オーナーはスタッフ承認PINを使用して、過去のどの注文の返金でも常に承認できます。" + "refundOwnerUnlimitedNote": "オーナーはスタッフ承認PINを使用して、過去のどの注文の返金でも常に承認できます。", + "serviceModel": "サービス形態", + "serviceModelQsr": "クイックサービス", + "serviceModelFinedine": "ファインダイニング", + "serviceModelHybridHint": "カウンターとテイクアウトの注文は先払い、テーブルの注文はサービス後に支払います。テーブルが必要なのは店内飲食の注文のみです。", + "serviceModelHybrid": "クイックサービス+ファインダイニング" }, "setup": { "alreadyCompleted": "このインストールではセットアップが完了しています。ログインへ移動します…", @@ -2892,7 +2900,10 @@ "termsIntro": "FloPOSに同意します", "timezoneHint": "国から事前入力されます。複数のタイムゾーンがある国の店舗では、実際の現地タイムゾーンを選択できます。", "timezoneLabel": "タイムゾーン", - "welcome": "FloCafeへようこそ" + "welcome": "FloCafeへようこそ", + "hybridLabel": "クイックサービス+ファインダイニング", + "hybridDesc": "カウンターとダイニングを併用", + "hybridDetails": "カウンターで既製品を販売しつつ、テーブル席でも接客する店舗に最適です。カウンターとテイクアウトの注文は先払い、テーブルの注文はサービス後の支払いです。" }, "staff": { "addButton": "スタッフを追加", diff --git a/frontend/src/lib/i18n/messages/jv.json b/frontend/src/lib/i18n/messages/jv.json index dbb170c36a..5e1301e5f1 100644 --- a/frontend/src/lib/i18n/messages/jv.json +++ b/frontend/src/lib/i18n/messages/jv.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Hubungi dhukungan mung yen shift wis dibukak ing terminal iki nanging masalah iki isih ana.", "validationClosedBooksGuidance": "Dina bisnis dina iki wis ditutup lan ora bisa dibukak maneh. Pesenan anyar lan transaksi tunai bakal dilanjutake ing dina bisnis sabanjure.", "validationClosedBooksEvidenceHint": "Hubungi dhukungan mung yen dina bisnis dina iki katon ditutup ing tanggal utawa zona wektu toko sing salah.", - "validationGenericEvidenceHint": "Hubungi dhukungan mung yen sampeyan yakin pamriksan validasi iki nolak panjalukan sing bener." + "validationGenericEvidenceHint": "Hubungi dhukungan mung yen sampeyan yakin pamriksan validasi iki nolak panjalukan sing bener.", + "readyMadeNoKitchen": "Siap adol, tanpa pawon" }, "printTest": { "amt": "Gng", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Varian iki bakal dipateni nalika disimpen lan ora bisa dipulihake saka layar iki.", "variantRemoveAllConfirm": "Mateni iku bakal mateni kabeh varian produk iki. Pesenan lawas tetep nyimpen iku.", "parentCategory": "Kategori Babon", - "parentCategoryNone": "Ora ana (Tataran dhuwur)" + "parentCategoryNone": "Ora ana (Tataran dhuwur)", + "fieldGoesToKitchen": "Menyang pawon", + "fieldGoesToKitchenHint": "Pateni kanggo barang siap adol kaya omben-omben botol. Tetep didol, dipajegi, lan dicithak struk kaya biasane, nanging ora tau metu ing layar utawa tiket pawon." }, "productAnalytics": { "title": "Bantu kita nemtokake apa sing digawe sabanjure", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 jam", "refundWindow4h": "4 jam", "refundWindowSameDay": "Dina kerja sing padha", - "refundOwnerUnlimitedNote": "Sing duwe toko tansah bisa nyetujoni bali dhuwit kanggo pesanan lawas apa wae nganggo PIN Persetujuan Staf dheweke." + "refundOwnerUnlimitedNote": "Sing duwe toko tansah bisa nyetujoni bali dhuwit kanggo pesanan lawas apa wae nganggo PIN Persetujuan Staf dheweke.", + "serviceModel": "Model layanan", + "serviceModelQsr": "Layanan cepet", + "serviceModelFinedine": "Restoran mewah", + "serviceModelHybridHint": "Pesenan konter lan gawa mulih dibayar luwih dhisik, pesenan meja sawise layanan. Meja mung dibutuhake kanggo pesenan mangan ing panggonan.", + "serviceModelHybrid": "Layanan cepet + fine dining" }, "setup": { "alreadyCompleted": "Pangaturan wiwitan wis rampung ditindakake ing pamasangan iki. Ngalihake menyang layar mlebu…", @@ -2892,7 +2900,10 @@ "termsIntro": "Aku nyarujuki FloPOS", "timezoneHint": "Kaisi wiwitan saka negara Panjenengan. Warung ing negara kanthi luwih saka siji zona wektu bisa milih zona wektu lokal sing sajatine.", "timezoneLabel": "Zona wektu", - "welcome": "Sugeng Teka ing FloCafe" + "welcome": "Sugeng Teka ing FloCafe", + "hybridLabel": "Layanan cepet + fine dining", + "hybridDesc": "Konter lan ruang makan bareng", + "hybridDetails": "Paling cocok kanggo panggonan sing adol barang siap konter lan uga nglayani tamu ing meja. Pesenan konter lan gawa mulih dibayar luwih dhisik; pesenan meja dibayar sawise layanan." }, "staff": { "addButton": "Tambah Staf", diff --git a/frontend/src/lib/i18n/messages/ko.json b/frontend/src/lib/i18n/messages/ko.json index b27da8c304..832f02b726 100644 --- a/frontend/src/lib/i18n/messages/ko.json +++ b/frontend/src/lib/i18n/messages/ko.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "이 단말기에서 이미 근무가 시작되었는데도 오류가 계속되는 경우에만 지원팀에 문의하세요.", "validationClosedBooksGuidance": "오늘 영업일은 마감되었으며 다시 열 수 없습니다. 새 주문과 현금 거래는 다음 영업일에 재개됩니다.", "validationClosedBooksEvidenceHint": "매장 날짜나 시간대가 잘못되어 오늘 영업일이 마감된 것으로 표시되는 경우에만 지원팀에 문의하세요.", - "validationGenericEvidenceHint": "이 유효성 검사가 정상적인 요청을 거부했다고 판단되는 경우에만 지원팀에 문의하세요." + "validationGenericEvidenceHint": "이 유효성 검사가 정상적인 요청을 거부했다고 판단되는 경우에만 지원팀에 문의하세요.", + "readyMadeNoKitchen": "완제품, 주방 없음" }, "printTest": { "amt": "금액", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "저장하면 이 옵션이 비활성화되며 이 화면에서 복원할 수 없습니다.", "variantRemoveAllConfirm": "끄면 이 상품의 모든 옵션이 비활성화됩니다. 기존 주문에는 그대로 남습니다.", "parentCategory": "상위 카테고리", - "parentCategoryNone": "없음 (최상위)" + "parentCategoryNone": "없음 (최상위)", + "fieldGoesToKitchen": "주방으로 전달", + "fieldGoesToKitchenHint": "병 음료 같은 완제품은 끄세요. 평소처럼 판매·과세·영수증 처리되지만 주방 디스플레이와 주방 티켓에는 나타나지 않습니다." }, "productAnalytics": { "title": "다음에 무엇을 만들지 함께 정해 주세요", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2시간", "refundWindow4h": "4시간", "refundWindowSameDay": "동일 영업일", - "refundOwnerUnlimitedNote": "점주는 직원 승인 PIN으로 과거 모든 주문의 환불을 언제든지 승인할 수 있습니다." + "refundOwnerUnlimitedNote": "점주는 직원 승인 PIN으로 과거 모든 주문의 환불을 언제든지 승인할 수 있습니다.", + "serviceModel": "서비스 방식", + "serviceModelQsr": "퀵서비스", + "serviceModelFinedine": "파인 다이닝", + "serviceModelHybridHint": "카운터·포장 주문은 선결제, 테이블 주문은 서비스 후 결제합니다. 테이블은 매장 식사 주문에만 필요합니다.", + "serviceModelHybrid": "퀵서비스 + 파인 다이닝" }, "setup": { "alreadyCompleted": "이 설치에서는 초기 설정이 이미 완료되었습니다. 로그인으로 이동합니다…", @@ -2892,7 +2900,10 @@ "termsIntro": "FloPOS에 동의합니다", "timezoneHint": "국가에 따라 미리 채워집니다. 다중 시간대 국가의 매장은 실제 현지 시간대를 선택할 수 있습니다.", "timezoneLabel": "시간대", - "welcome": "FloCafe에 오신 것을 환영합니다" + "welcome": "FloCafe에 오신 것을 환영합니다", + "hybridLabel": "퀵서비스 + 파인 다이닝", + "hybridDesc": "카운터와 다이닝룸을 함께", + "hybridDetails": "카운터에서 완제품을 판매하면서 테이블 손님도 받는 매장에 적합합니다. 카운터·포장 주문은 선결제, 테이블 주문은 서비스 후 결제합니다." }, "staff": { "addButton": "직원 추가", diff --git a/frontend/src/lib/i18n/messages/mr.json b/frontend/src/lib/i18n/messages/mr.json index 588a93bd4e..05c19eaeba 100644 --- a/frontend/src/lib/i18n/messages/mr.json +++ b/frontend/src/lib/i18n/messages/mr.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "या टर्मिनलवर शिफ्ट आधीच सुरू असूनही ही त्रुटी कायम राहिल्यासच मदतीशी संपर्क साधा.", "validationClosedBooksGuidance": "आजचा व्यवसाय दिवस बंद झाला असून तो पुन्हा उघडता येत नाही. नवीन ऑर्डर आणि रोख व्यवहार पुढील व्यवसाय दिवशी सुरू होतील.", "validationClosedBooksEvidenceHint": "चुकीची स्टोअर तारीख किंवा टाइमझोनमुळे आजचा व्यवसाय दिवस बंद दिसत असल्यासच मदतीशी संपर्क साधा.", - "validationGenericEvidenceHint": "या पडताळणीने वैध विनंती नाकारली आहे असे वाटत असल्यासच मदतीशी संपर्क साधा." + "validationGenericEvidenceHint": "या पडताळणीने वैध विनंती नाकारली आहे असे वाटत असल्यासच मदतीशी संपर्क साधा.", + "readyMadeNoKitchen": "तयार, स्वयंपाकघर नाही" }, "printTest": { "amt": "रक्कम", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "जतन केल्यावर हा व्हेरिएंट निष्क्रिय केला जातो आणि या स्क्रीनवरून पूर्ववत करता येत नाही.", "variantRemoveAllConfirm": "हे बंद केल्यास या उत्पादनाचे सर्व व्हेरिएंट्स निष्क्रिय होतील. जुन्या ऑर्डर्समध्ये ते कायम राहतील.", "parentCategory": "मुख्य श्रेणी (Parent Category)", - "parentCategoryNone": "काहीही नाही (मुख्य स्तर)" + "parentCategoryNone": "काहीही नाही (मुख्य स्तर)", + "fieldGoesToKitchen": "स्वयंपाकघरात जाते", + "fieldGoesToKitchenHint": "बाटलीबंद पेयांसारख्या तयार वस्तूंसाठी बंद करा. त्या नेहमीप्रमाणे विकल्या, करपात्र आणि पावती केल्या जातात, पण किचन डिस्प्ले किंवा किचन तिकिटांवर दिसत नाहीत." }, "productAnalytics": { "title": "पुढे काय तयार करायचे हे ठरवण्यात आम्हाला मदत करा", @@ -2795,7 +2798,12 @@ "refundWindow2h": "२ तास", "refundWindow4h": "४ तास", "refundWindowSameDay": "तोच व्यावसायिक दिवस", - "refundOwnerUnlimitedNote": "मालक त्यांच्या स्टाफ मंजुरी पिनने कोणत्याही जुन्या ऑर्डरचा परतावा नेहमी मंजूर करू शकतात." + "refundOwnerUnlimitedNote": "मालक त्यांच्या स्टाफ मंजुरी पिनने कोणत्याही जुन्या ऑर्डरचा परतावा नेहमी मंजूर करू शकतात.", + "serviceModel": "सेवा मॉडेल", + "serviceModelQsr": "जलद सेवा", + "serviceModelFinedine": "फाइन डाइनिंग", + "serviceModelHybridHint": "काउंटर आणि टेकअवे ऑर्डरचे पैसे आधी, टेबल ऑर्डरचे सेवेनंतर घेतले जातात. टेबल फक्त डाइन-इन ऑर्डरसाठी आवश्यक आहे.", + "serviceModelHybrid": "जलद सेवा + फाइन डाइनिंग" }, "setup": { "alreadyCompleted": "या इन्स्टॉलवर सेटअप आधीच पूर्ण झाला आहे. लॉगिनवर रीडायरेक्ट करत आहे…", @@ -2892,7 +2900,10 @@ "termsIntro": "मी FloPOS च्या खालील बाबींशी सहमत आहे:", "timezoneHint": "तुमच्या देशावरून आधीच भरलेले. एकापेक्षा जास्त टाइमझोन असलेल्या देशांमधील स्टोअर्स त्यांचा प्रत्यक्ष स्थानिक टाइमझोन निवडू शकतात.", "timezoneLabel": "टाइमझोन", - "welcome": "FloCafe मध्ये तुमचे स्वागत आहे" + "welcome": "FloCafe मध्ये तुमचे स्वागत आहे", + "hybridLabel": "जलद सेवा + फाइन डाइनिंग", + "hybridDesc": "काउंटर आणि डायनिंग रूम एकत्र", + "hybridDetails": "काउंटरवर तयार वस्तू विकणाऱ्या आणि पाहुण्यांना बसवणाऱ्या ठिकाणांसाठी सर्वोत्तम. काउंटर आणि टेकअवे ऑर्डरचे पैसे आधी, टेबल ऑर्डरचे सेवेनंतर घेतले जातात." }, "staff": { "addButton": "कर्मचारी जोडा", diff --git a/frontend/src/lib/i18n/messages/ne.json b/frontend/src/lib/i18n/messages/ne.json index f4aaf2b3d9..838ff051d1 100644 --- a/frontend/src/lib/i18n/messages/ne.json +++ b/frontend/src/lib/i18n/messages/ne.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "यस टर्मिनलमा शिफ्ट पहिले नै खुला हुँदा पनि यो त्रुटि रहिरहेमा मात्र सहायतामा सम्पर्क गर्नुहोस्।", "validationClosedBooksGuidance": "आजको व्यावसायिक दिन बन्द भइसकेको छ र फेरि खोल्न सकिँदैन। नयाँ अर्डर र नगद कारोबार अर्को व्यावसायिक दिनमा सुरु हुनेछ।", "validationClosedBooksEvidenceHint": "गलत स्टोर मिति वा समय क्षेत्रका कारण आजको व्यावसायिक दिन बन्द देखिएमा मात्र सहायतामा सम्पर्क गर्नुहोस्।", - "validationGenericEvidenceHint": "यो प्रमाणीकरण जाँचले मान्य अनुरोध अस्वीकार गरेको लाग्छ भने मात्र सहायतामा सम्पर्क गर्नुहोस्।" + "validationGenericEvidenceHint": "यो प्रमाणीकरण जाँचले मान्य अनुरोध अस्वीकार गरेको लाग्छ भने मात्र सहायतामा सम्पर्क गर्नुहोस्।", + "readyMadeNoKitchen": "तयार, भान्छा चाहिँदैन" }, "printTest": { "amt": "रकम", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "यो भेरियन्ट सेव गर्दा निष्क्रिय हुन्छ र यो स्क्रिनबाट पुनःस्थापना गर्न मिल्दैन।", "variantRemoveAllConfirm": "यसलाई बन्द गर्दा यो उत्पादनका सबै भेरियन्टहरू निष्क्रिय हुन्छन्। पुराना अर्डरहरूमा तिनीहरू कायमै रहन्छन्।", "parentCategory": "मुख्य श्रेणी", - "parentCategoryNone": "कुनै पनि होइन (शीर्ष तह)" + "parentCategoryNone": "कुनै पनि होइन (शीर्ष तह)", + "fieldGoesToKitchen": "भान्छामा जान्छ", + "fieldGoesToKitchenHint": "बोतलका पेयजस्ता तयार सामानका लागि बन्द गर्नुहोस्। यी सधैंझैं बिक्री, कर र रसिद हुन्छन्, तर किचन डिस्प्ले वा किचन टिकटमा देखिँदैनन्।" }, "productAnalytics": { "title": "अब के बनाउने भनेर निर्णय गर्न हामीलाई मद्दत गर्नुहोस्", @@ -2795,7 +2798,12 @@ "refundWindow2h": "२ घण्टा", "refundWindow4h": "४ घण्टा", "refundWindowSameDay": "सोही व्यावसायिक दिन", - "refundOwnerUnlimitedNote": "मालिकहरूले आफ्नो स्टाफ स्वीकृति पिन प्रयोग गरी जुनसुकै पुरानो अर्डरको रिफन्ड सधैं स्वीकृत गर्न सक्छन्।" + "refundOwnerUnlimitedNote": "मालिकहरूले आफ्नो स्टाफ स्वीकृति पिन प्रयोग गरी जुनसुकै पुरानो अर्डरको रिफन्ड सधैं स्वीकृत गर्न सक्छन्।", + "serviceModel": "सेवा मोडेल", + "serviceModelQsr": "छिटो सेवा", + "serviceModelFinedine": "फाइन डाइनिङ", + "serviceModelHybridHint": "काउन्टर र टेकअवे अर्डरको भुक्तानी पहिले, टेबल अर्डरको सेवापछि हुन्छ। टेबल डाइन-इन अर्डरमा मात्र चाहिन्छ।", + "serviceModelHybrid": "छिटो सेवा + फाइन डाइनिङ" }, "setup": { "alreadyCompleted": "यस स्थापनामा सेटअप पहिले नै पूरा भइसकेको छ। लगइन गर्न रिडिरेक्ट गर्दै...", @@ -2892,7 +2900,10 @@ "termsIntro": "म FloPOS मा सहमत छु", "timezoneHint": "तपाईंको देशबाट पूर्व भरिएको। बहु-समय क्षेत्र देशहरूमा पसलहरूले तिनीहरूको वास्तविक स्थानीय समय क्षेत्र रोज्न सक्छन्।", "timezoneLabel": "समय क्षेत्र", - "welcome": "FloCafe मा स्वागत छ" + "welcome": "FloCafe मा स्वागत छ", + "hybridLabel": "छिटो सेवा + फाइन डाइनिङ", + "hybridDesc": "काउन्टर र डाइनिङ रूम सँगै", + "hybridDetails": "काउन्टरमा तयार सामान बेच्ने र पाहुनालाई टेबलमा बसाल्ने ठाउँका लागि उत्तम। काउन्टर र टेकअवे अर्डरको भुक्तानी पहिले, टेबल अर्डरको सेवापछि हुन्छ।" }, "staff": { "addButton": "कर्मचारी थप्नुहोस्", diff --git a/frontend/src/lib/i18n/messages/nl.json b/frontend/src/lib/i18n/messages/nl.json index f3df6f0706..cfef279749 100644 --- a/frontend/src/lib/i18n/messages/nl.json +++ b/frontend/src/lib/i18n/messages/nl.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Neem alleen contact op met support als er al een dienst open is op deze terminal en deze fout blijft optreden.", "validationClosedBooksGuidance": "De werkdag van vandaag is afgesloten en kan niet worden heropend. Nieuwe bestellingen en contante betalingen worden op de volgende werkdag hervat.", "validationClosedBooksEvidenceHint": "Neem alleen contact op met support als de werkdag van vandaag op een verkeerde winkeldatum of tijdzone als gesloten wordt weergegeven.", - "validationGenericEvidenceHint": "Neem alleen contact op met support als u denkt dat deze validatiecontrole een geldig verzoek heeft geweigerd." + "validationGenericEvidenceHint": "Neem alleen contact op met support als u denkt dat deze validatiecontrole een geldig verzoek heeft geweigerd.", + "readyMadeNoKitchen": "Kant-en-klaar, geen keuken" }, "printTest": { "amt": "Bedrag", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Deze variant wordt bij opslaan gedeactiveerd en kan vanaf dit scherm niet worden hersteld.", "variantRemoveAllConfirm": "Als u dit uitschakelt, worden alle varianten van dit product gedeactiveerd. Eerdere bestellingen behouden ze.", "parentCategory": "Bovenliggende categorie", - "parentCategoryNone": "Geen (hoofdniveau)" + "parentCategoryNone": "Geen (hoofdniveau)", + "fieldGoesToKitchen": "Gaat naar de keuken", + "fieldGoesToKitchenHint": "Zet uit voor kant-en-klare producten zoals flesjes drinken. Ze worden gewoon verkocht, belast en gekassabonneerd, maar verschijnen nooit op het keukenscherm of de keukenbonnen." }, "productAnalytics": { "title": "Help ons bepalen wat we hierna bouwen", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 uur", "refundWindow4h": "4 uur", "refundWindowSameDay": "Zelfde werkdag", - "refundOwnerUnlimitedNote": "Eigenaren kunnen terugbetalingen voor elke eerdere bestelling altijd goedkeuren met hun goedkeuringspincode." + "refundOwnerUnlimitedNote": "Eigenaren kunnen terugbetalingen voor elke eerdere bestelling altijd goedkeuren met hun goedkeuringspincode.", + "serviceModel": "Servicemodel", + "serviceModelQsr": "Snelle service", + "serviceModelFinedine": "Restaurant met bediening", + "serviceModelHybridHint": "Balie- en afhaalbestellingen worden vooraf betaald, tafelbestellingen na de service. Een tafel is alleen nodig bij bestellingen ter plaatse.", + "serviceModelHybrid": "Snelle service + fine dining" }, "setup": { "alreadyCompleted": "De installatie is bij deze installatie al voltooid. Omleiden naar inloggen…", @@ -2892,7 +2900,10 @@ "termsIntro": "Ik ga akkoord met de FloPOS", "timezoneHint": "Vooraf ingevuld vanuit uw land. Winkels in landen met meerdere tijdzones kunnen hun werkelijke lokale tijdzone kiezen.", "timezoneLabel": "Tijdzone", - "welcome": "Welkom bij FloCafe" + "welcome": "Welkom bij FloCafe", + "hybridLabel": "Snelle service + fine dining", + "hybridDesc": "Balie en restaurant samen", + "hybridDetails": "Ideaal voor zaken die kant-en-klare producten aan de balie verkopen en ook gasten aan tafel bedienen. Balie- en afhaalbestellingen worden vooraf betaald, tafelbestellingen na afloop." }, "staff": { "addButton": "Personeel toevoegen", diff --git a/frontend/src/lib/i18n/messages/pa.json b/frontend/src/lib/i18n/messages/pa.json index 58db66cf92..7d416b4453 100644 --- a/frontend/src/lib/i18n/messages/pa.json +++ b/frontend/src/lib/i18n/messages/pa.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "ਜੇ ਇਸ ਟਰਮੀਨਲ ਤੇ ਸ਼ਿਫਟ ਪਹਿਲਾਂ ਹੀ ਖੁੱਲ੍ਹੀ ਹੈ ਅਤੇ ਇਹ ਗਲਤੀ ਜਾਰੀ ਰਹਿੰਦੀ ਹੈ ਤਾਂ ਹੀ ਸਹਾਇਤਾ ਨਾਲ ਸੰਪਰਕ ਕਰੋ।", "validationClosedBooksGuidance": "ਅੱਜ ਦਾ ਕਾਰੋਬਾਰੀ ਦਿਨ ਬੰਦ ਹੋ ਚੁੱਕਾ ਹੈ ਅਤੇ ਦੁਬਾਰਾ ਨਹੀਂ ਖੋਲ੍ਹਿਆ ਜਾ ਸਕਦਾ। ਨਵੇਂ ਆਰਡਰ ਅਤੇ ਨਕਦ ਲੈਣ-ਦੇਣ ਅਗਲੇ ਕਾਰੋਬਾਰੀ ਦਿਨ ਮੁੜ ਸ਼ੁਰੂ ਹੋਣਗੇ।", "validationClosedBooksEvidenceHint": "ਜੇ ਅੱਜ ਦਾ ਕਾਰੋਬਾਰੀ ਦਿਨ ਗਲਤ ਸਟੋਰ ਮਿਤੀ ਜਾਂ ਸਮਾਂ ਖੇਤਰ ਤੇ ਬੰਦ ਦਿਖਾਈ ਦੇਵੇ ਤਾਂ ਹੀ ਸਹਾਇਤਾ ਨਾਲ ਸੰਪਰਕ ਕਰੋ।", - "validationGenericEvidenceHint": "ਜੇ ਤੁਹਾਨੂੰ ਲੱਗਦਾ ਹੈ ਕਿ ਇਸ ਜਾਂਚ ਨੇ ਕਿਸੇ ਵੈਧ ਬੇਨਤੀ ਨੂੰ ਰੱਦ ਕੀਤਾ ਹੈ ਤਾਂ ਹੀ ਸਹਾਇਤਾ ਨਾਲ ਸੰਪਰਕ ਕਰੋ।" + "validationGenericEvidenceHint": "ਜੇ ਤੁਹਾਨੂੰ ਲੱਗਦਾ ਹੈ ਕਿ ਇਸ ਜਾਂਚ ਨੇ ਕਿਸੇ ਵੈਧ ਬੇਨਤੀ ਨੂੰ ਰੱਦ ਕੀਤਾ ਹੈ ਤਾਂ ਹੀ ਸਹਾਇਤਾ ਨਾਲ ਸੰਪਰਕ ਕਰੋ।", + "readyMadeNoKitchen": "ਤਿਆਰ, ਰਸੋਈ ਨਹੀਂ" }, "printTest": { "amt": "ਰਕਮ", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "ਇਹ ਵੇਰੀਐਂਟ ਸੇਵ ਕਰਨ ਉੱਤੇ ਬੰਦ ਹੋ ਜਾਂਦਾ ਹੈ ਅਤੇ ਇਸ ਸਕ੍ਰੀਨ ਤੋਂ ਮੁੜ-ਬਹਾਲ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਦਾ।", "variantRemoveAllConfirm": "ਇਸਨੂੰ ਬੰਦ ਕਰਨ ਨਾਲ ਇਸ ਉਤਪਾਦ ਦੇ ਸਾਰੇ ਵੇਰੀਐਂਟ ਬੰਦ ਹੋ ਜਾਂਦੇ ਹਨ। ਪੁਰਾਣੇ ਆਰਡਰਾਂ ਵਿੱਚ ਉਹ ਬਣੇ ਰਹਿੰਦੇ ਹਨ।", "parentCategory": "ਮੁੱਖ ਸ਼੍ਰੇਣੀ", - "parentCategoryNone": "ਕੋਈ ਨਹੀਂ (ਸਿਖਰ-ਪੱਧਰ)" + "parentCategoryNone": "ਕੋਈ ਨਹੀਂ (ਸਿਖਰ-ਪੱਧਰ)", + "fieldGoesToKitchen": "ਰਸੋਈ ਵਿੱਚ ਜਾਂਦਾ ਹੈ", + "fieldGoesToKitchenHint": "ਬੋਤਲਬੰਦ ਪੀਣ ਵਰਗੇ ਤਿਆਰ ਸਾਮਾਨ ਲਈ ਬੰਦ ਕਰੋ। ਇਹ ਪਹਿਲਾਂ ਵਾਂਗ ਵਿਕਦੇ, ਟੈਕਸ ਅਤੇ ਰਸੀਦ ਵਿੱਚ ਆਉਂਦੇ ਹਨ, ਪਰ ਰਸੋਈ ਡਿਸਪਲੇ ਜਾਂ ਕਿਚਨ ਟਿਕਟਾਂ ਉੱਤੇ ਨਹੀਂ ਦਿਸਦੇ।" }, "productAnalytics": { "title": "ਅੱਗੇ ਕੀ ਬਣਾਉਣਾ ਹੈ, ਇਹ ਤੈਅ ਕਰਨ ਵਿੱਚ ਸਾਡੀ ਮਦਦ ਕਰੋ", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 ਘੰਟੇ", "refundWindow4h": "4 ਘੰਟੇ", "refundWindowSameDay": "ਉਸੇ ਕਾਰੋਬਾਰੀ ਦਿਨ", - "refundOwnerUnlimitedNote": "ਮਾਲਕ ਆਪਣੇ ਸਟਾਫ ਮਨਜ਼ੂਰੀ ਪਿੰਨ ਨਾਲ ਕਿਸੇ ਵੀ ਪੁਰਾਣੇ ਆਰਡਰ ਦੇ ਰਿਫੰਡ ਨੂੰ ਹਮੇਸ਼ਾ ਮਨਜ਼ੂਰ ਕਰ ਸਕਦੇ ਹਨ।" + "refundOwnerUnlimitedNote": "ਮਾਲਕ ਆਪਣੇ ਸਟਾਫ ਮਨਜ਼ੂਰੀ ਪਿੰਨ ਨਾਲ ਕਿਸੇ ਵੀ ਪੁਰਾਣੇ ਆਰਡਰ ਦੇ ਰਿਫੰਡ ਨੂੰ ਹਮੇਸ਼ਾ ਮਨਜ਼ੂਰ ਕਰ ਸਕਦੇ ਹਨ।", + "serviceModel": "ਸੇਵਾ ਮਾਡਲ", + "serviceModelQsr": "ਤੇਜ਼ ਸੇਵਾ", + "serviceModelFinedine": "ਫ਼ਾਈਨ ਡਾਈਨਿੰਗ", + "serviceModelHybridHint": "ਕਾਊਂਟਰ ਅਤੇ ਟੇਕਅਵੇ ਆਰਡਰ ਦਾ ਭੁਗਤਾਨ ਪਹਿਲਾਂ, ਟੇਬਲ ਆਰਡਰ ਦਾ ਸੇਵਾ ਤੋਂ ਬਾਅਦ ਹੁੰਦਾ ਹੈ। ਟੇਬਲ ਸਿਰਫ਼ ਡਾਈਨ-ਇਨ ਆਰਡਰ ਲਈ ਲੋੜੀਂਦਾ ਹੈ।", + "serviceModelHybrid": "ਤੇਜ਼ ਸੇਵਾ + ਫ਼ਾਈਨ ਡਾਈਨਿੰਗ" }, "setup": { "alreadyCompleted": "ਇਸ ਇੰਸਟਾਲ ਉੱਤੇ ਸੈੱਟਅੱਪ ਪਹਿਲਾਂ ਹੀ ਪੂਰਾ ਹੋ ਚੁੱਕਾ ਹੈ। ਲੌਗਇਨ ਉੱਤੇ ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ…", @@ -2892,7 +2900,10 @@ "termsIntro": "ਮੈਂ FloPOS ਦੇ ਇਹਨਾਂ ਨਿਯਮਾਂ ਨਾਲ ਸਹਿਮਤ ਹਾਂ:", "timezoneHint": "ਤੁਹਾਡੇ ਦੇਸ਼ ਤੋਂ ਪਹਿਲਾਂ ਹੀ ਭਰਿਆ ਹੋਇਆ। ਕਈ ਟਾਈਮਜ਼ੋਨਾਂ ਵਾਲੇ ਦੇਸ਼ਾਂ ਵਿੱਚ ਸਟੋਰ ਆਪਣਾ ਅਸਲ ਸਥਾਨਕ ਟਾਈਮਜ਼ੋਨ ਚੁਣ ਸਕਦੇ ਹਨ।", "timezoneLabel": "ਟਾਈਮਜ਼ੋਨ", - "welcome": "FloCafe ਵਿੱਚ ਤੁਹਾਡਾ ਸਵਾਗਤ ਹੈ" + "welcome": "FloCafe ਵਿੱਚ ਤੁਹਾਡਾ ਸਵਾਗਤ ਹੈ", + "hybridLabel": "ਤੇਜ਼ ਸੇਵਾ + ਫ਼ਾਈਨ ਡਾਈਨਿੰਗ", + "hybridDesc": "ਕਾਊਂਟਰ ਅਤੇ ਡਾਈਨਿੰਗ ਰੂਮ ਇਕੱਠੇ", + "hybridDetails": "ਉਨ੍ਹਾਂ ਥਾਵਾਂ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਜੋ ਕਾਊਂਟਰ ਉੱਤੇ ਤਿਆਰ ਸਾਮਾਨ ਵੇਚਦੀਆਂ ਹਨ ਅਤੇ ਮਹਿਮਾਨਾਂ ਨੂੰ ਵੀ ਬਿਠਾਉਂਦੀਆਂ ਹਨ। ਕਾਊਂਟਰ ਅਤੇ ਟੇਕਅਵੇ ਆਰਡਰ ਦਾ ਭੁਗਤਾਨ ਪਹਿਲਾਂ, ਟੇਬਲ ਆਰਡਰ ਦਾ ਸੇਵਾ ਤੋਂ ਬਾਅਦ ਹੁੰਦਾ ਹੈ।" }, "staff": { "addButton": "ਸਟਾਫ ਜੋੜੋ", diff --git a/frontend/src/lib/i18n/messages/pt.json b/frontend/src/lib/i18n/messages/pt.json index 0e50a390e2..863377dc30 100644 --- a/frontend/src/lib/i18n/messages/pt.json +++ b/frontend/src/lib/i18n/messages/pt.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Entre em contato com o suporte apenas se já houver um turno aberto neste terminal e o erro persistir.", "validationClosedBooksGuidance": "O dia comercial de hoje está fechado e não pode ser reaberto. Novos pedidos e movimentações em dinheiro retornam no próximo dia comercial.", "validationClosedBooksEvidenceHint": "Entre em contato com o suporte apenas se o dia comercial de hoje parecer fechado na data ou fuso horário incorretos da loja.", - "validationGenericEvidenceHint": "Entre em contato com o suporte apenas se acreditar que esta validação recusou uma solicitação válida." + "validationGenericEvidenceHint": "Entre em contato com o suporte apenas se acreditar que esta validação recusou uma solicitação válida.", + "readyMadeNoKitchen": "Pronto, sem cozinha" }, "printTest": { "amt": "Total", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Esta variante será desativada ao salvar e não poderá ser restaurada a partir desta tela.", "variantRemoveAllConfirm": "Ao desligar, todas as variantes deste produto serão desativadas. Os pedidos anteriores as mantêm.", "parentCategory": "Categoria principal", - "parentCategoryNone": "Nenhuma (nível principal)" + "parentCategoryNone": "Nenhuma (nível principal)", + "fieldGoesToKitchen": "Vai para a cozinha", + "fieldGoesToKitchenHint": "Desative para produtos prontos, como bebidas engarrafadas. Eles são vendidos, tributados e emitem recibo como sempre, mas nunca aparecem no monitor nem nas comandas da cozinha." }, "productAnalytics": { "title": "Ajude-nos a decidir o que construir a seguir", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 horas", "refundWindow4h": "4 horas", "refundWindowSameDay": "Mesmo dia comercial", - "refundOwnerUnlimitedNote": "Os proprietários podem sempre aprovar reembolsos de qualquer pedido anterior com seu PIN de aprovação." + "refundOwnerUnlimitedNote": "Os proprietários podem sempre aprovar reembolsos de qualquer pedido anterior com seu PIN de aprovação.", + "serviceModel": "Modelo de serviço", + "serviceModelQsr": "Serviço rápido", + "serviceModelFinedine": "Restaurante", + "serviceModelHybridHint": "Pedidos de balcão e para viagem são pagos antes, os de mesa após o serviço. A mesa só é obrigatória em pedidos para consumo no local.", + "serviceModelHybrid": "Serviço rápido + restaurante" }, "setup": { "alreadyCompleted": "A configuração já foi concluída nesta instalação. Redirecionando para o login…", @@ -2892,7 +2900,10 @@ "termsIntro": "Eu concordo com o FloPOS", "timezoneHint": "Pré-preenchido pelo seu país. Lojas em países com vários fusos horários podem escolher seu fuso horário real.", "timezoneLabel": "Fuso horário", - "welcome": "Bem-vindo ao FloCafe" + "welcome": "Bem-vindo ao FloCafe", + "hybridLabel": "Serviço rápido + restaurante", + "hybridDesc": "Balcão e salão juntos", + "hybridDetails": "Ideal para locais que vendem produtos prontos no balcão e também atendem mesas. Pedidos de balcão e para viagem são pagos antes; os de mesa, após o serviço." }, "staff": { "addButton": "Adicionar Funcionário", diff --git a/frontend/src/lib/i18n/messages/ru.json b/frontend/src/lib/i18n/messages/ru.json index 03d7b890a8..b55a62ec8d 100644 --- a/frontend/src/lib/i18n/messages/ru.json +++ b/frontend/src/lib/i18n/messages/ru.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Обращайтесь в поддержку только если смена на этом терминале уже открыта, но ошибка сохраняется.", "validationClosedBooksGuidance": "Сегодняшний кассовый день закрыт и не может быть открыт повторно. Новые заказы и кассовые операции возобновятся в следующий рабочий день.", "validationClosedBooksEvidenceHint": "Обращайтесь в поддержку только если кассовый день отображается закрытым из-за неверной даты или часового пояса заведения.", - "validationGenericEvidenceHint": "Обращайтесь в поддержку только если вы считаете, что проверка отклонила корректный запрос." + "validationGenericEvidenceHint": "Обращайтесь в поддержку только если вы считаете, что проверка отклонила корректный запрос.", + "readyMadeNoKitchen": "Готовый товар, без кухни" }, "printTest": { "amt": "Сумма", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Этот вариант будет отключён при сохранении, и восстановить его с этого экрана нельзя.", "variantRemoveAllConfirm": "Если выключить, будут отключены все варианты этого товара. В прежних заказах они сохранятся.", "parentCategory": "Родительская категория", - "parentCategoryNone": "Нет (верхний уровень)" + "parentCategoryNone": "Нет (верхний уровень)", + "fieldGoesToKitchen": "Идёт на кухню", + "fieldGoesToKitchenHint": "Отключите для готовых товаров, например напитков в бутылках. Они продаются, облагаются налогом и пробиваются в чек как обычно, но не появляются на экране и в тикетах кухни." }, "productAnalytics": { "title": "Помогите нам решить, что делать дальше", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 часа", "refundWindow4h": "4 часа", "refundWindowSameDay": "Тот же рабочий день", - "refundOwnerUnlimitedNote": "Владельцы всегда могут подтвердить возврат по любому прошлому заказу своим PIN-кодом подтверждения." + "refundOwnerUnlimitedNote": "Владельцы всегда могут подтвердить возврат по любому прошлому заказу своим PIN-кодом подтверждения.", + "serviceModel": "Модель обслуживания", + "serviceModelQsr": "Быстрое обслуживание", + "serviceModelFinedine": "Ресторан", + "serviceModelHybridHint": "Заказы на кассе и навынос оплачиваются сразу, заказы за столом, после обслуживания. Стол нужен только для заказов в зале.", + "serviceModelHybrid": "Быстрое обслуживание + ресторан" }, "setup": { "alreadyCompleted": "Настройка этой установки уже завершена. Перенаправление на вход…", @@ -2892,7 +2900,10 @@ "termsIntro": "Я согласен с условиями FloPOS", "timezoneHint": "Предварительно заполнено из вашей страны. Магазины в странах с несколькими часовыми поясами могут выбирать фактический местный часовой пояс.", "timezoneLabel": "Часовой пояс", - "welcome": "Добро пожаловать во FloCafe" + "welcome": "Добро пожаловать во FloCafe", + "hybridLabel": "Быстрое обслуживание + ресторан", + "hybridDesc": "Касса и зал вместе", + "hybridDetails": "Подходит заведениям, которые продают готовые товары на кассе и обслуживают гостей за столами. Заказы на кассе и навынос оплачиваются сразу, заказы за столом, после обслуживания." }, "staff": { "addButton": "Добавить сотрудника", diff --git a/frontend/src/lib/i18n/messages/sq.json b/frontend/src/lib/i18n/messages/sq.json index 19afd5a3e5..3f37416f72 100644 --- a/frontend/src/lib/i18n/messages/sq.json +++ b/frontend/src/lib/i18n/messages/sq.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Kontaktoni mbështetjen vetëm nëse një turn është tashmë i hapur në këtë terminal dhe ky gabim vazhdon.", "validationClosedBooksGuidance": "Dita e sotme e punës është mbyllur dhe nuk mund të rihapet. Porositë e reja dhe veprimet me para në dorë rifillojnë ditën tjetër të punës.", "validationClosedBooksEvidenceHint": "Kontaktoni mbështetjen vetëm nëse dita e sotme e punës shfaqet e mbyllur në datën ose zonën kohore të gabuar të dyqanit.", - "validationGenericEvidenceHint": "Kontaktoni mbështetjen vetëm nëse mendoni se ky kontroll verifikimi refuzoi një kërkesë të vlefshme." + "validationGenericEvidenceHint": "Kontaktoni mbështetjen vetëm nëse mendoni se ky kontroll verifikimi refuzoi një kërkesë të vlefshme.", + "readyMadeNoKitchen": "Gati, pa kuzhinë" }, "printTest": { "amt": "Shuma", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Ky variant do të çaktivizohet kur ruhet dhe nuk mund të rikthehet nga ky ekran.", "variantRemoveAllConfirm": "Nëse e çaktivizoni, do të çaktivizohen të gjitha variantet e këtij produkti. Porositë e vjetra i ruajnë.", "parentCategory": "Kategoria prind", - "parentCategoryNone": "Asnjë (niveli kryesor)" + "parentCategoryNone": "Asnjë (niveli kryesor)", + "fieldGoesToKitchen": "Shkon në kuzhinë", + "fieldGoesToKitchenHint": "Çaktivizoje për produkte të gatshme si pijet në shishe. Shiten, tatohen dhe faturohen si zakonisht, por nuk shfaqen kurrë në ekranin ose biletat e kuzhinës." }, "productAnalytics": { "title": "Na ndihmoni të vendosim çfarë të ndërtojmë më pas", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 orë", "refundWindow4h": "4 orë", "refundWindowSameDay": "E njëjta ditë pune", - "refundOwnerUnlimitedNote": "Pronarët mund të miratojnë gjithmonë rimbursime për çdo porosi të kaluar me PIN-in e tyre të miratimit të stafit." + "refundOwnerUnlimitedNote": "Pronarët mund të miratojnë gjithmonë rimbursime për çdo porosi të kaluar me PIN-in e tyre të miratimit të stafit.", + "serviceModel": "Modeli i shërbimit", + "serviceModelQsr": "Shërbim i shpejtë", + "serviceModelFinedine": "Restorant", + "serviceModelHybridHint": "Porositë në banak dhe për marrje paguhen më parë, ato të tavolinës pas shërbimit. Tavolina kërkohet vetëm për porositë për t'u ngrënë aty.", + "serviceModelHybrid": "Shërbim i shpejtë + restorant" }, "setup": { "alreadyCompleted": "Konfigurimi në këtë instalim është përfunduar. Po ridrejtohemi te hyrja...", @@ -2892,7 +2900,10 @@ "termsIntro": "Jam dakord me FloPOS", "timezoneHint": "E mbushur paraprakisht nga vendi juaj. Dyqanet në vendet me shumë zona kohore mund të zgjedhin zonën e tyre aktuale lokale kohore.", "timezoneLabel": "Zona kohore", - "welcome": "Mirë se vini në FloCafe" + "welcome": "Mirë se vini në FloCafe", + "hybridLabel": "Shërbim i shpejtë + restorant", + "hybridDesc": "Banaku dhe salla së bashku", + "hybridDetails": "Ideale për vende që shesin produkte të gatshme në banak dhe presin edhe mysafirë në tavolina. Porositë në banak dhe për marrje paguhen më parë; ato të tavolinës pas shërbimit." }, "staff": { "addButton": "Shto staf", diff --git a/frontend/src/lib/i18n/messages/sw.json b/frontend/src/lib/i18n/messages/sw.json index 2f6c845200..0cadfbf113 100644 --- a/frontend/src/lib/i18n/messages/sw.json +++ b/frontend/src/lib/i18n/messages/sw.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Wasiliana na usaidizi tu ikiwa zamu tayari imefunguliwa kwenye kifaa hiki na hitilafu hii inaendelea.", "validationClosedBooksGuidance": "Siku ya biashara ya leo imefungwa na haiwezi kufunguliwa tena. Oda mpya na shughuli za pesa taslimu zitaendelea siku inayofuata ya biashara.", "validationClosedBooksEvidenceHint": "Wasiliana na usaidizi tu ikiwa siku ya biashara ya leo inaonekana imefungwa kwa tarehe au saa za eneo zisizo sahihi za duka.", - "validationGenericEvidenceHint": "Wasiliana na usaidizi tu ikiwa unaamini ukaguzi huu umekataa ombi halali." + "validationGenericEvidenceHint": "Wasiliana na usaidizi tu ikiwa unaamini ukaguzi huu umekataa ombi halali.", + "readyMadeNoKitchen": "Tayari, bila jikoni" }, "printTest": { "amt": "Kiasi", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Aina hii itazimwa wakati wa kuhifadhi na haiwezi kurejeshwa kutoka kwenye skrini hii.", "variantRemoveAllConfirm": "Kuzima hii kunazima kila aina ya bidhaa hii. Oda za kihistoria zitaendelea kuzihifadhi.", "parentCategory": "Kategoria Kuu", - "parentCategoryNone": "Hakuna (Kiwango cha juu)" + "parentCategoryNone": "Hakuna (Kiwango cha juu)", + "fieldGoesToKitchen": "Huenda jikoni", + "fieldGoesToKitchenHint": "Zima kwa bidhaa zilizo tayari kama vinywaji vya chupa. Huuzwa, hutozwa kodi na kupewa risiti kama kawaida, lakini hazionekani kwenye skrini wala tiketi za jikoni." }, "productAnalytics": { "title": "Tusaidie kuamua cha kujenga kinachofuata", @@ -2795,7 +2798,12 @@ "refundWindow2h": "Saa 2", "refundWindow4h": "Saa 4", "refundWindowSameDay": "Siku hiyo hiyo ya biashara", - "refundOwnerUnlimitedNote": "Wamiliki wanaweza kuidhinisha marejesho ya pesa kwa oda yoyote ya zamani wakati wowote kwa kutumia PIN yao ya Uidhinishaji." + "refundOwnerUnlimitedNote": "Wamiliki wanaweza kuidhinisha marejesho ya pesa kwa oda yoyote ya zamani wakati wowote kwa kutumia PIN yao ya Uidhinishaji.", + "serviceModel": "Mfumo wa huduma", + "serviceModelQsr": "Huduma ya haraka", + "serviceModelFinedine": "Mgahawa wa hadhi", + "serviceModelHybridHint": "Oda za kaunta na za kuchukua hulipwa kwanza, oda za meza baada ya huduma. Meza inahitajika kwa oda za kula hapo tu.", + "serviceModelHybrid": "Huduma ya haraka + mgahawa wa hadhi" }, "setup": { "alreadyCompleted": "Usanidi tayari umekamilishwa kwenye usakinishaji huu. Inaelekeza kwenye kuingia…", @@ -2892,7 +2900,10 @@ "termsIntro": "Ninakubaliana na FloPOS", "timezoneHint": "Imejaziwa awali kutoka kwenye nchi yako. Maduka katika nchi zenye saa za maeneo mengi yanaweza kuchagua saa za eneo lao halisi.", "timezoneLabel": "Saa za Eneo", - "welcome": "Karibu FloCafe" + "welcome": "Karibu FloCafe", + "hybridLabel": "Huduma ya haraka + mgahawa wa hadhi", + "hybridDesc": "Kaunta na ukumbi wa chakula pamoja", + "hybridDetails": "Inafaa zaidi kwa maeneo yanayouza bidhaa zilizo tayari kaunta na pia kuwahudumia wageni mezani. Oda za kaunta na za kuchukua hulipwa kwanza; oda za meza hulipwa baada ya huduma." }, "staff": { "addButton": "Ongeza Mfanyakazi", diff --git a/frontend/src/lib/i18n/messages/ta.json b/frontend/src/lib/i18n/messages/ta.json index 260a7124de..d18cdf824f 100644 --- a/frontend/src/lib/i18n/messages/ta.json +++ b/frontend/src/lib/i18n/messages/ta.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "இந்த முனையத்தில் ஏற்கனவே ஷிப்ட் திறந்திருந்தும் இந்தப் பிழை தொடர்ந்தால் மட்டுமே ஆதரவைத் தொடர்புகொள்ளவும்.", "validationClosedBooksGuidance": "இன்றைய வணிக நாள் முடிக்கப்பட்டுவிட்டது, அதை மீண்டும் திறக்க முடியாது. புதிய ஆர்டர்களும் ரொக்கப் பரிவர்த்தனைகளும் அடுத்த வணிக நாளில் தொடங்கும்.", "validationClosedBooksEvidenceHint": "தவறான கடை தேதி அல்லது நேர மண்டலத்தில் இன்றைய வணிக நாள் முடிந்ததாகக் காட்டப்பட்டால் மட்டுமே ஆதரவைத் தொடர்புகொள்ளவும்.", - "validationGenericEvidenceHint": "இந்தச் சரிபார்ப்பு செல்லுபடியாகும் கோரிக்கையை நிராகரித்ததாக நீங்கள் கருதினால் மட்டுமே ஆதரவைத் தொடர்புகொள்ளவும்." + "validationGenericEvidenceHint": "இந்தச் சரிபார்ப்பு செல்லுபடியாகும் கோரிக்கையை நிராகரித்ததாக நீங்கள் கருதினால் மட்டுமே ஆதரவைத் தொடர்புகொள்ளவும்.", + "readyMadeNoKitchen": "தயார், சமையலறை இல்லை" }, "printTest": { "amt": "தொகை", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "இந்த வகை சேமிக்கும்போது செயலிழக்கப்படும் மற்றும் இந்தத் திரையிலிருந்து மீட்டெடுக்க முடியாது.", "variantRemoveAllConfirm": "இதை அணைப்பது இந்தத் தயாரிப்பின் ஒவ்வொரு வகையையும் செயலிழக்கச் செய்யும். பழைய ஆர்டர்களில் அவை பாதுகாக்கப்படும்.", "parentCategory": "முதன்மை வகை", - "parentCategoryNone": "ஏதுமில்லை (முதல் நிலை)" + "parentCategoryNone": "ஏதுமில்லை (முதல் நிலை)", + "fieldGoesToKitchen": "சமையலறைக்குச் செல்லும்", + "fieldGoesToKitchenHint": "பாட்டில் பானங்கள் போன்ற தயார் பொருட்களுக்கு அணைக்கவும். வழக்கம்போல விற்பனை, வரி, ரசீது ஆகும், ஆனால் சமையலறைத் திரையிலோ டிக்கெட்டுகளிலோ தோன்றாது." }, "productAnalytics": { "title": "அடுத்து என்ன உருவாக்க வேண்டும் என்பதைத் தீர்மானிக்க எங்களுக்கு உதவுங்கள்", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 மணி நேரங்கள்", "refundWindow4h": "4 மணி நேரங்கள்", "refundWindowSameDay": "அதே வணிக நாள்", - "refundOwnerUnlimitedNote": "உரிமையாளர்கள் தங்கள் பணியாளர் ஒப்புதல் PIN மூலம் கடந்த கால எந்த ஆர்டருக்கும் எப்போதும் பணத்தைத் திரும்பப்பெறுதலை ஏற்கலாம்." + "refundOwnerUnlimitedNote": "உரிமையாளர்கள் தங்கள் பணியாளர் ஒப்புதல் PIN மூலம் கடந்த கால எந்த ஆர்டருக்கும் எப்போதும் பணத்தைத் திரும்பப்பெறுதலை ஏற்கலாம்.", + "serviceModel": "சேவை மாதிரி", + "serviceModelQsr": "விரைவு சேவை", + "serviceModelFinedine": "ஃபைன் டைனிங்", + "serviceModelHybridHint": "கவுண்டர் மற்றும் டேக்அவே ஆர்டர்களுக்கு முன்பணம், மேசை ஆர்டர்களுக்கு சேவைக்குப் பின். உள்ளே சாப்பிடும் ஆர்டர்களுக்கு மட்டுமே மேசை தேவை.", + "serviceModelHybrid": "விரைவு சேவை + ஃபைன் டைனிங்" }, "setup": { "alreadyCompleted": "இந்த நிறுவலில் அமைப்பு ஏற்கனவே முடிக்கப்பட்டுவிட்டது. உள்நுழைவுக்குத் திருப்பி விடப்படுகிறது…", @@ -2892,7 +2900,10 @@ "termsIntro": "நான் FloPOS இன் இவற்றை ஏற்றுக்கொள்கிறேன்:", "timezoneHint": "உங்கள் நாட்டிலிருந்து முன்பே நிரப்பப்பட்டுள்ளது. பல நேர மண்டலங்களைக் கொண்ட நாடுகளில் உள்ள கடைகள் தங்கள் உள்ளூர் நேர மண்டலத்தைத் தேர்ந்தெடுக்கலாம்.", "timezoneLabel": "நேர மண்டலம்", - "welcome": "FloCafe க்கு வரவேற்கிறோம்" + "welcome": "FloCafe க்கு வரவேற்கிறோம்", + "hybridLabel": "விரைவு சேவை + ஃபைன் டைனிங்", + "hybridDesc": "கவுண்டரும் உணவறையும் ஒன்றாக", + "hybridDetails": "கவுண்டரில் தயார் பொருட்களை விற்று, விருந்தினர்களையும் அமர வைக்கும் இடங்களுக்கு ஏற்றது. கவுண்டர் மற்றும் டேக்அவே ஆர்டர்களுக்கு முன்பணம்; மேசை ஆர்டர்களுக்கு சேவைக்குப் பின் பணம்." }, "staff": { "addButton": "பணியாளரைச் சேர்", diff --git a/frontend/src/lib/i18n/messages/te.json b/frontend/src/lib/i18n/messages/te.json index a6a70ba3a2..bee4f78fd6 100644 --- a/frontend/src/lib/i18n/messages/te.json +++ b/frontend/src/lib/i18n/messages/te.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "ఈ టెర్మినల్లో ఇప్పటికే షిఫ్ట్ తెరిచి ఉన్నప్పటికీ ఈ లోపం కొనసాగితే మాత్రమే సపోర్ట్ను సంప్రదించండి.", "validationClosedBooksGuidance": "నేటి వ్యాపార దినం ముగించబడింది మరియు మళ్లీ తెరవడం సాధ్యం కాదు. కొత్త ఆర్డర్లు మరియు నగదు లావాదేవీలు తదుపరి వ్యాపార దినాన ప్రారంభమవుతాయి.", "validationClosedBooksEvidenceHint": "తప్పు స్టోర్ తేదీ లేదా టైమ్జోన్ కారణంగా నేటి వ్యాపార దినం ముగిసినట్లు కనిపిస్తే మాత్రమే సపోర్ట్ను సంప్రదించండి.", - "validationGenericEvidenceHint": "ఈ ధృవీకరణ తనిఖీ సరైన అభ్యర్థనను తిరస్కరించిందని మీరు భావిస్తే మాత్రమే సపోర్ట్ను సంప్రదించండి." + "validationGenericEvidenceHint": "ఈ ధృవీకరణ తనిఖీ సరైన అభ్యర్థనను తిరస్కరించిందని మీరు భావిస్తే మాత్రమే సపోర్ట్ను సంప్రదించండి.", + "readyMadeNoKitchen": "సిద్ధం, వంటగది లేదు" }, "printTest": { "amt": "మొత్తం", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "సేవ్ చేసినప్పుడు ఈ వేరియంట్ డీయాక్టివేట్ చేయబడుతుంది మరియు ఈ స్క్రీన్ నుండి పునరుద్ధరించబడదు.", "variantRemoveAllConfirm": "దీన్ని ఆఫ్ చేయడం వల్ల ఈ ఉత్పత్తి యొక్క ప్రతి వేరియంట్ డీయాక్టివేట్ అవుతుంది. గత ఆర్డర్లలో అవి అలాగే ఉంటాయి.", "parentCategory": "పేరెంట్ వర్గం", - "parentCategoryNone": "ఏదీ లేదు (టాప్-లెవల్)" + "parentCategoryNone": "ఏదీ లేదు (టాప్-లెవల్)", + "fieldGoesToKitchen": "వంటగదికి వెళ్తుంది", + "fieldGoesToKitchenHint": "బాటిల్ పానీయాల వంటి సిద్ధ వస్తువులకు ఆఫ్ చేయండి. ఇవి యథావిధిగా అమ్మబడి, పన్ను, రసీదు పొందుతాయి, కానీ వంటగది డిస్ప్లేలో లేదా టికెట్లలో కనిపించవు." }, "productAnalytics": { "title": "తదుపరి ఏమి నిర్మించాలో నిర్ణయించడంలో మాకు సహాయపడండి", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 గంటలు", "refundWindow4h": "4 గంటలు", "refundWindowSameDay": "అదే వ్యాపార రోజు", - "refundOwnerUnlimitedNote": "యజమానులు తమ స్టాఫ్ ఆమోద పిన్తో ఏదైనా గత ఆర్డర్కు ఎప్పుడైనా రీఫండ్ను ఆమోదించగలరు." + "refundOwnerUnlimitedNote": "యజమానులు తమ స్టాఫ్ ఆమోద పిన్తో ఏదైనా గత ఆర్డర్కు ఎప్పుడైనా రీఫండ్ను ఆమోదించగలరు.", + "serviceModel": "సేవా నమూనా", + "serviceModelQsr": "శీఘ్ర సేవ", + "serviceModelFinedine": "ఫైన్ డైనింగ్", + "serviceModelHybridHint": "కౌంటర్ మరియు టేక్అవే ఆర్డర్లకు ముందే చెల్లింపు, టేబుల్ ఆర్డర్లకు సేవ తర్వాత. డైన్-ఇన్ ఆర్డర్లకు మాత్రమే టేబుల్ అవసరం.", + "serviceModelHybrid": "శీఘ్ర సేవ + ఫైన్ డైనింగ్" }, "setup": { "alreadyCompleted": "ఈ ఇన్స్టాల్లో సెటప్ ఇప్పటికే పూర్తయింది. లాగిన్కు మళ్లిస్తోంది…", @@ -2892,7 +2900,10 @@ "termsIntro": "నేను FloPOS యొక్క", "timezoneHint": "మీ దేశం నుండి ముందే నింపబడింది. బహుళ-టైమ్జోన్ దేశాలలోని స్టోర్లు తమ వాస్తవ స్థానిక టైమ్జోన్ను ఎంచుకోవచ్చు.", "timezoneLabel": "టైమ్జోన్", - "welcome": "FloCafe కు స్వాగతం" + "welcome": "FloCafe కు స్వాగతం", + "hybridLabel": "శీఘ్ర సేవ + ఫైన్ డైనింగ్", + "hybridDesc": "కౌంటర్ మరియు డైనింగ్ రూమ్ కలిపి", + "hybridDetails": "కౌంటర్లో సిద్ధంగా ఉన్న వస్తువులను అమ్ముతూ అతిథులను కూర్చోబెట్టే చోట్లకు ఉత్తమం. కౌంటర్ మరియు టేక్అవే ఆర్డర్లకు ముందే చెల్లింపు; టేబుల్ ఆర్డర్లకు సేవ తర్వాత." }, "staff": { "addButton": "సిబ్బందిని జోడించు", diff --git a/frontend/src/lib/i18n/messages/th.json b/frontend/src/lib/i18n/messages/th.json index 3e7e080fbd..b30d733560 100644 --- a/frontend/src/lib/i18n/messages/th.json +++ b/frontend/src/lib/i18n/messages/th.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "ติดต่อฝ่ายสนับสนุนเฉพาะเมื่อเครื่องนี้เปิดกะอยู่แล้วแต่ยังพบข้อผิดพลาดนี้", "validationClosedBooksGuidance": "วันทำการของวันนี้ถูกปิดแล้วและไม่สามารถเปิดใหม่ได้ คำสั่งซื้อใหม่และรายการเงินสดจะเริ่มอีกครั้งในวันทำการถัดไป", "validationClosedBooksEvidenceHint": "ติดต่อฝ่ายสนับสนุนเฉพาะเมื่อวันทำการของวันนี้แสดงว่าปิดผิดวันที่หรือผิดเขตเวลาของร้าน", - "validationGenericEvidenceHint": "ติดต่อฝ่ายสนับสนุนเฉพาะเมื่อคุณเห็นว่าการตรวจสอบนี้ปฏิเสธคำขอที่ถูกต้อง" + "validationGenericEvidenceHint": "ติดต่อฝ่ายสนับสนุนเฉพาะเมื่อคุณเห็นว่าการตรวจสอบนี้ปฏิเสธคำขอที่ถูกต้อง", + "readyMadeNoKitchen": "พร้อมขาย ไม่ผ่านครัว" }, "printTest": { "amt": "จำนวนเงิน", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "ตัวเลือกนี้จะถูกปิดใช้งานเมื่อบันทึก และกู้คืนจากหน้าจอนี้ไม่ได้", "variantRemoveAllConfirm": "การปิดตัวนี้จะปิดใช้งานตัวเลือกทั้งหมดของสินค้านี้ คำสั่งซื้อเดิมจะยังคงอยู่", "parentCategory": "หมวดหมู่หลัก", - "parentCategoryNone": "ไม่มี (ระดับบนสุด)" + "parentCategoryNone": "ไม่มี (ระดับบนสุด)", + "fieldGoesToKitchen": "ส่งเข้าครัว", + "fieldGoesToKitchenHint": "ปิดสำหรับสินค้าพร้อมขาย เช่น เครื่องดื่มบรรจุขวด สินค้าจะขาย คิดภาษี และออกใบเสร็จตามปกติ แต่จะไม่แสดงบนจอครัวหรือใบสั่งครัว" }, "productAnalytics": { "title": "ช่วยเราตัดสินใจว่าจะสร้างอะไรต่อไป", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 ชั่วโมง", "refundWindow4h": "4 ชั่วโมง", "refundWindowSameDay": "วันทำการเดียวกัน", - "refundOwnerUnlimitedNote": "เจ้าของร้านสามารถอนุมัติการคืนเงินสำหรับออเดอร์ย้อนหลังได้เสมอด้วยรหัส PIN อนุมัติของตน" + "refundOwnerUnlimitedNote": "เจ้าของร้านสามารถอนุมัติการคืนเงินสำหรับออเดอร์ย้อนหลังได้เสมอด้วยรหัส PIN อนุมัติของตน", + "serviceModel": "รูปแบบการบริการ", + "serviceModelQsr": "บริการด่วน", + "serviceModelFinedine": "ไฟน์ไดนิ่ง", + "serviceModelHybridHint": "ออเดอร์เคาน์เตอร์และซื้อกลับชำระก่อน ออเดอร์โต๊ะชำระหลังรับบริการ ต้องมีโต๊ะเฉพาะออเดอร์ทานที่ร้านเท่านั้น", + "serviceModelHybrid": "บริการด่วน + ไฟน์ไดนิ่ง" }, "setup": { "alreadyCompleted": "ตั้งค่าการติดตั้งนี้เสร็จสมบูรณ์แล้ว กำลังกลับไปหน้าเข้าสู่ระบบ…", @@ -2892,7 +2900,10 @@ "termsIntro": "ฉันยอมรับ FloPOS", "timezoneHint": "กรอกจากประเทศของคุณ ร้านในประเทศที่มีหลายเขตเวลาสามารถเลือกเขตเวลาท้องถิ่นจริงได้", "timezoneLabel": "เขตเวลา", - "welcome": "ยินดีต้อนรับสู่ FloCafe" + "welcome": "ยินดีต้อนรับสู่ FloCafe", + "hybridLabel": "บริการด่วน + ไฟน์ไดนิ่ง", + "hybridDesc": "เคาน์เตอร์และห้องอาหารรวมกัน", + "hybridDetails": "เหมาะกับร้านที่ขายสินค้าพร้อมขายที่เคาน์เตอร์และรับแขกที่โต๊ะด้วย ออเดอร์เคาน์เตอร์และซื้อกลับชำระก่อน ออเดอร์โต๊ะชำระหลังรับบริการ" }, "staff": { "addButton": "เพิ่มพนักงาน", diff --git a/frontend/src/lib/i18n/messages/tr.json b/frontend/src/lib/i18n/messages/tr.json index 7710844be5..727f287eb0 100644 --- a/frontend/src/lib/i18n/messages/tr.json +++ b/frontend/src/lib/i18n/messages/tr.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Yalnızca bu terminalde zaten açık bir vardiya varsa ve hata devam ediyorsa destekle iletişime geçin.", "validationClosedBooksGuidance": "Bugünün iş günü kapatılmıştır ve yeniden açılamaz. Yeni siparişler ve nakit işlemleri bir sonraki iş gününde devam eder.", "validationClosedBooksEvidenceHint": "Yalnızca bugünün iş günü yanlış mağaza tarihi veya saat diliminde kapalı görünüyorsa destekle iletişime geçin.", - "validationGenericEvidenceHint": "Yalnızca bu doğrulama kontrolünün geçerli bir isteği reddettiğini düşünüyorsanız destekle iletişime geçin." + "validationGenericEvidenceHint": "Yalnızca bu doğrulama kontrolünün geçerli bir isteği reddettiğini düşünüyorsanız destekle iletişime geçin.", + "readyMadeNoKitchen": "Hazır, mutfak yok" }, "printTest": { "amt": "Tutar", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Bu varyant kaydedildiğinde devre dışı bırakılır ve bu ekrandan geri alınamaz.", "variantRemoveAllConfirm": "Bunu kapatırsanız bu ürünün tüm varyantları devre dışı bırakılır. Eski siparişler korunur.", "parentCategory": "Üst Kategori", - "parentCategoryNone": "Yok (Üst düzey)" + "parentCategoryNone": "Yok (Üst düzey)", + "fieldGoesToKitchen": "Mutfağa gider", + "fieldGoesToKitchenHint": "Şişelenmiş içecek gibi hazır ürünler için kapatın. Her zamanki gibi satılır, vergilendirilir ve fişlenir, ancak mutfak ekranında veya mutfak fişlerinde görünmez." }, "productAnalytics": { "title": "Sırada ne yapacağımıza karar vermemize yardım edin", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 saat", "refundWindow4h": "4 saat", "refundWindowSameDay": "Aynı iş günü", - "refundOwnerUnlimitedNote": "İşletme sahipleri geçmiş herhangi bir siparişin iadesini kendi Personel Onay PIN kodlarıyla her zaman onaylayabilir." + "refundOwnerUnlimitedNote": "İşletme sahipleri geçmiş herhangi bir siparişin iadesini kendi Personel Onay PIN kodlarıyla her zaman onaylayabilir.", + "serviceModel": "Servis modeli", + "serviceModelQsr": "Hızlı servis", + "serviceModelFinedine": "Şık restoran", + "serviceModelHybridHint": "Tezgâh ve paket siparişler önceden, masa siparişleri servisten sonra ödenir. Masa yalnızca yerinde yeme siparişleri için gereklidir.", + "serviceModelHybrid": "Hızlı servis + fine dining" }, "setup": { "alreadyCompleted": "Kurulum bu cihazda zaten tamamlandı. Giriş ekranına yönlendiriliyorsunuz…", @@ -2892,7 +2900,10 @@ "termsIntro": "FloPOS kullanım koşullarını kabul ediyorum", "timezoneHint": "Ülkenize göre otomatik seçildi. Birden çok saat dilimi olan ülkelerde yerel saat diliminizi belirleyebilirsiniz.", "timezoneLabel": "Saat Dilimi", - "welcome": "FloCafe'ye Hoş Geldiniz" + "welcome": "FloCafe'ye Hoş Geldiniz", + "hybridLabel": "Hızlı servis + fine dining", + "hybridDesc": "Tezgâh ve yemek salonu birlikte", + "hybridDetails": "Tezgâhta hazır ürün satan ve masada misafir ağırlayan işletmeler için idealdir. Tezgâh ve paket siparişler önceden, masa siparişleri servisten sonra ödenir." }, "staff": { "addButton": "Personel Ekle", diff --git a/frontend/src/lib/i18n/messages/uk.json b/frontend/src/lib/i18n/messages/uk.json index 1c444304db..d75b1eddfe 100644 --- a/frontend/src/lib/i18n/messages/uk.json +++ b/frontend/src/lib/i18n/messages/uk.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Звертайтеся до підтримки лише якщо зміну на цьому терміналі вже відкрито, але помилка не зникає.", "validationClosedBooksGuidance": "Сьогоднішній робочий день закрито, і його не можна відкрити повторно. Нові замовлення та касові операції відновляться наступного робочого дня.", "validationClosedBooksEvidenceHint": "Звертайтеся до підтримки лише якщо сьогоднішній робочий день виглядає закритим через неправильну дату або часовий пояс закладу.", - "validationGenericEvidenceHint": "Звертайтеся до підтримки лише якщо ви вважаєте, що ця перевірка відхилила коректний запит." + "validationGenericEvidenceHint": "Звертайтеся до підтримки лише якщо ви вважаєте, що ця перевірка відхилила коректний запит.", + "readyMadeNoKitchen": "Готовий товар, без кухні" }, "printTest": { "amt": "Сума", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Цей варіант буде деактивовано під час збереження і не зможе бути відновлений із цього екрана.", "variantRemoveAllConfirm": "Вимкнення деактивує всі варіанти цього товару. В історії замовлень вони збережуться.", "parentCategory": "Батьківська категорія", - "parentCategoryNone": "Немає (верхній рівень)" + "parentCategoryNone": "Немає (верхній рівень)", + "fieldGoesToKitchen": "Йде на кухню", + "fieldGoesToKitchenHint": "Вимкніть для готових товарів, як-от напоїв у пляшках. Вони продаються, оподатковуються й друкуються в чеку як завжди, але не з'являються на екрані чи в тікетах кухні." }, "productAnalytics": { "title": "Допоможіть нам вирішити, що створювати далі", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 години", "refundWindow4h": "4 години", "refundWindowSameDay": "Той самий робочий день", - "refundOwnerUnlimitedNote": "Власники завжди можуть підтвердити повернення коштів за будь-яким минулим замовленням своїм PIN-кодом підтвердження." + "refundOwnerUnlimitedNote": "Власники завжди можуть підтвердити повернення коштів за будь-яким минулим замовленням своїм PIN-кодом підтвердження.", + "serviceModel": "Модель обслуговування", + "serviceModelQsr": "Швидке обслуговування", + "serviceModelFinedine": "Ресторан", + "serviceModelHybridHint": "Замовлення на касі й навинос оплачуються одразу, за столом, після обслуговування. Стіл потрібен лише для замовлень у залі.", + "serviceModelHybrid": "Швидке обслуговування + ресторан" }, "setup": { "alreadyCompleted": "Налаштування на цьому пристрої вже завершено. Перенаправлення на екран входу…", @@ -2892,7 +2900,10 @@ "termsIntro": "Я погоджуюся з документами FloPOS:", "timezoneHint": "Заповнено автоматично за вашою країною. Заклади в країнах із кількома часовими поясами можуть вибрати свій фактичний місцевий часовий пояс.", "timezoneLabel": "Часовий пояс", - "welcome": "Ласкаво просимо до FloCafe" + "welcome": "Ласкаво просимо до FloCafe", + "hybridLabel": "Швидке обслуговування + ресторан", + "hybridDesc": "Каса і зал разом", + "hybridDetails": "Підходить закладам, які продають готові товари на касі та обслуговують гостей за столами. Замовлення на касі й навинос оплачуються одразу, за столом, після обслуговування." }, "staff": { "addButton": "Додати співробітника", diff --git a/frontend/src/lib/i18n/messages/ur.json b/frontend/src/lib/i18n/messages/ur.json index b8427673a1..c0fca9e5c3 100644 --- a/frontend/src/lib/i18n/messages/ur.json +++ b/frontend/src/lib/i18n/messages/ur.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "اگر اس ٹرمینل پر پہلے سے شفٹ کھلی ہے اور یہ خرابی برقرار رہتی ہے تو ہی سپورٹ سے رابطہ کریں۔", "validationClosedBooksGuidance": "آج کا کاروباری دن بند ہو چکا ہے اور اسے دوبارہ نہیں کھولا جا سکتا۔ نئے آرڈرز اور نقد سرگرمیاں اگلے کاروباری دن دوبارہ شروع ہوں گی۔", "validationClosedBooksEvidenceHint": "اگر غلط اسٹور تاریخ یا ٹائم زون کی وجہ سے آج کا کاروباری دن بند نظر آ رہا ہو تو ہی سپورٹ سے رابطہ کریں۔", - "validationGenericEvidenceHint": "اگر آپ سمجھتے ہیں کہ اس تصدیقی جانچ نے کسی درست درخواست کو مسترد کیا ہے تو ہی سپورٹ سے رابطہ کریں۔" + "validationGenericEvidenceHint": "اگر آپ سمجھتے ہیں کہ اس تصدیقی جانچ نے کسی درست درخواست کو مسترد کیا ہے تو ہی سپورٹ سے رابطہ کریں۔", + "readyMadeNoKitchen": "تیار، باورچی خانہ نہیں" }, "printTest": { "amt": "رقم", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "یہ وریئنٹ محفوظ کرنے پر غیر فعال ہو جائے گا اور اس اسکرین سے بحال نہیں کیا جا سکتا۔", "variantRemoveAllConfirm": "اسے بند کرنے پر اس پروڈکٹ کے تمام وریئنٹ غیر فعال ہو جائیں گے۔ پرانے آرڈرز انہیں برقرار رکھتے ہیں۔", "parentCategory": "بنیادی زمرہ", - "parentCategoryNone": "کوئی نہیں (اعلیٰ سطح)" + "parentCategoryNone": "کوئی نہیں (اعلیٰ سطح)", + "fieldGoesToKitchen": "باورچی خانے میں جاتا ہے", + "fieldGoesToKitchenHint": "بوتل بند مشروبات جیسی تیار اشیا کے لیے بند کریں۔ یہ معمول کے مطابق بکتی، ٹیکس اور رسید میں آتی ہیں، مگر کچن ڈسپلے یا کچن ٹکٹ پر ظاہر نہیں ہوتیں۔" }, "productAnalytics": { "title": "اگلا کیا بنائیں، یہ طے کرنے میں ہماری مدد کریں", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 گھنٹے", "refundWindow4h": "4 گھنٹے", "refundWindowSameDay": "ایک ہی کاروباری دن", - "refundOwnerUnlimitedNote": "مالکان اپنے اسٹاف منظوری پن کے ذریعے کسی بھی سابقہ آرڈر کی رقم واپسی کی ہمیشہ منظوری دے سکتے ہیں۔" + "refundOwnerUnlimitedNote": "مالکان اپنے اسٹاف منظوری پن کے ذریعے کسی بھی سابقہ آرڈر کی رقم واپسی کی ہمیشہ منظوری دے سکتے ہیں۔", + "serviceModel": "سروس ماڈل", + "serviceModelQsr": "فوری سروس", + "serviceModelFinedine": "فائن ڈائننگ", + "serviceModelHybridHint": "کاؤنٹر اور ٹیک اوے آرڈر کی ادائیگی پہلے، میز کے آرڈر کی سروس کے بعد ہوتی ہے۔ میز صرف ڈائن اِن آرڈر کے لیے ضروری ہے۔", + "serviceModelHybrid": "فوری سروس + فائن ڈائننگ" }, "setup": { "alreadyCompleted": "اس انسٹال کا سیٹ اپ پہلے ہی مکمل ہو چکا ہے۔ سائن ان پر بھیج رہا ہے…", @@ -2892,7 +2900,10 @@ "termsIntro": "میں FloPOS کی", "timezoneHint": "آپ کے ملک سے خودکار طور پر بھرا جاتا ہے۔ متعدد ٹائم زون والے ممالک کے اسٹور اپنا اصل مقامی ٹائم زون منتخب کر سکتے ہیں۔", "timezoneLabel": "ٹائم زون", - "welcome": "FloCafe میں خوش آمدید" + "welcome": "FloCafe میں خوش آمدید", + "hybridLabel": "فوری سروس + فائن ڈائننگ", + "hybridDesc": "کاؤنٹر اور ڈائننگ روم ساتھ ساتھ", + "hybridDetails": "ان جگہوں کے لیے بہترین جو کاؤنٹر پر تیار مال بیچتی ہیں اور مہمانوں کو میز پر بھی بٹھاتی ہیں۔ کاؤنٹر اور ٹیک اوے آرڈر کی ادائیگی پہلے، میز کے آرڈر کی سروس کے بعد ہوتی ہے۔" }, "staff": { "addButton": "ملازم شامل کریں", diff --git a/frontend/src/lib/i18n/messages/vi.json b/frontend/src/lib/i18n/messages/vi.json index 898e17bc2a..917a37f957 100644 --- a/frontend/src/lib/i18n/messages/vi.json +++ b/frontend/src/lib/i18n/messages/vi.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "Chỉ liên hệ hỗ trợ nếu thiết bị này đã mở ca nhưng lỗi vẫn tiếp diễn.", "validationClosedBooksGuidance": "Ngày kinh doanh hôm nay đã chốt và không thể mở lại. Đơn hàng mới và giao dịch tiền mặt sẽ tiếp tục vào ngày kinh doanh tiếp theo.", "validationClosedBooksEvidenceHint": "Chỉ liên hệ hỗ trợ nếu ngày kinh doanh hôm nay hiển thị đã chốt sai ngày hoặc sai múi giờ của cửa hàng.", - "validationGenericEvidenceHint": "Chỉ liên hệ hỗ trợ nếu bạn cho rằng bước kiểm tra này đã từ chối một yêu cầu hợp lệ." + "validationGenericEvidenceHint": "Chỉ liên hệ hỗ trợ nếu bạn cho rằng bước kiểm tra này đã từ chối một yêu cầu hợp lệ.", + "readyMadeNoKitchen": "Làm sẵn, không qua bếp" }, "printTest": { "amt": "Số tiền", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "Biến thể này sẽ bị vô hiệu hóa khi lưu và không thể khôi phục từ màn hình này.", "variantRemoveAllConfirm": "Tắt mục này sẽ vô hiệu hóa mọi biến thể của sản phẩm này. Các đơn hàng cũ vẫn giữ chúng.", "parentCategory": "Danh mục cha", - "parentCategoryNone": "Không có (Cấp cao nhất)" + "parentCategoryNone": "Không có (Cấp cao nhất)", + "fieldGoesToKitchen": "Chuyển vào bếp", + "fieldGoesToKitchenHint": "Tắt với hàng làm sẵn như đồ uống đóng chai. Hàng vẫn được bán, tính thuế và in hóa đơn như thường, nhưng không hiện trên màn hình hay phiếu bếp." }, "productAnalytics": { "title": "Giúp chúng tôi quyết định nên làm gì tiếp theo", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 giờ", "refundWindow4h": "4 giờ", "refundWindowSameDay": "Cùng ngày kinh doanh", - "refundOwnerUnlimitedNote": "Chủ quán luôn có thể phê duyệt hoàn tiền cho bất kỳ đơn hàng cũ nào bằng mã PIN phê duyệt của mình." + "refundOwnerUnlimitedNote": "Chủ quán luôn có thể phê duyệt hoàn tiền cho bất kỳ đơn hàng cũ nào bằng mã PIN phê duyệt của mình.", + "serviceModel": "Mô hình phục vụ", + "serviceModelQsr": "Phục vụ nhanh", + "serviceModelFinedine": "Nhà hàng cao cấp", + "serviceModelHybridHint": "Đơn tại quầy và mang đi trả tiền trước, đơn tại bàn trả sau khi phục vụ. Chỉ đơn ăn tại chỗ mới cần chọn bàn.", + "serviceModelHybrid": "Phục vụ nhanh + nhà hàng cao cấp" }, "setup": { "alreadyCompleted": "Bản cài đặt này đã hoàn tất thiết lập. Đang chuyển đến đăng nhập…", @@ -2892,7 +2900,10 @@ "termsIntro": "Tôi đồng ý với FloPOS", "timezoneHint": "Tự động điền theo quốc gia. Cửa hàng tại quốc gia có nhiều múi giờ có thể chọn múi giờ địa phương thực tế.", "timezoneLabel": "Múi giờ", - "welcome": "Chào mừng đến với FloCafe" + "welcome": "Chào mừng đến với FloCafe", + "hybridLabel": "Phục vụ nhanh + nhà hàng cao cấp", + "hybridDesc": "Quầy và phòng ăn cùng lúc", + "hybridDetails": "Phù hợp với nơi bán đồ làm sẵn tại quầy và còn phục vụ khách ngồi bàn. Đơn tại quầy và mang đi trả tiền trước; đơn tại bàn trả sau khi phục vụ." }, "staff": { "addButton": "Thêm nhân viên", diff --git a/frontend/src/lib/i18n/messages/zh-tw.json b/frontend/src/lib/i18n/messages/zh-tw.json index 54aa218a7b..b613d23421 100644 --- a/frontend/src/lib/i18n/messages/zh-tw.json +++ b/frontend/src/lib/i18n/messages/zh-tw.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "僅在此終端機已開啟班次但錯誤持續發生時才聯繫支援。", "validationClosedBooksGuidance": "今日營業日已關帳且無法重新開啟。新訂單與現金作業將於下一個營業日恢復。", "validationClosedBooksEvidenceHint": "僅在今日營業日因門市日期或時區錯誤而顯示為已關帳時才聯繫支援。", - "validationGenericEvidenceHint": "僅在您認為此驗證檢查拒絕了有效請求時才聯繫支援。" + "validationGenericEvidenceHint": "僅在您認為此驗證檢查拒絕了有效請求時才聯繫支援。", + "readyMadeNoKitchen": "現成品,無需廚房" }, "printTest": { "amt": "金額", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "該變體儲存後將被停用,且無法在此頁面還原。", "variantRemoveAllConfirm": "關閉後將停用該商品的所有變體,歷史訂單仍會保留。", "parentCategory": "父類別", - "parentCategoryNone": "無(頂層類別)" + "parentCategoryNone": "無(頂層類別)", + "fieldGoesToKitchen": "送至廚房", + "fieldGoesToKitchenHint": "瓶裝飲料等現成商品請關閉。它們仍照常銷售、課稅並開立收據,但不會出現在廚房顯示器或廚房單據上。" }, "productAnalytics": { "title": "幫我們決定下一步要做什麼", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 小時", "refundWindow4h": "4 小時", "refundWindowSameDay": "同一營業日", - "refundOwnerUnlimitedNote": "店主始終可以使用其員工核准 PIN 碼核准任何歷史訂單的退款。" + "refundOwnerUnlimitedNote": "店主始終可以使用其員工核准 PIN 碼核准任何歷史訂單的退款。", + "serviceModel": "服務模式", + "serviceModelQsr": "快速服務", + "serviceModelFinedine": "精緻餐飲", + "serviceModelHybridHint": "櫃檯與外帶訂單先付款,桌邊訂單於服務後付款。僅內用訂單需要指定桌位。", + "serviceModelHybrid": "快速服務+精緻餐飲" }, "setup": { "alreadyCompleted": "此安裝已完成設定。正在跳轉到登入…", @@ -2892,7 +2900,10 @@ "termsIntro": "我同意 FloPOS 的", "timezoneHint": "根據您的國家/地區預填。多時區國家/地區的店家可選擇實際本機時區。", "timezoneLabel": "時區", - "welcome": "歡迎使用 FloCafe" + "welcome": "歡迎使用 FloCafe", + "hybridLabel": "快速服務+精緻餐飲", + "hybridDesc": "櫃檯與用餐區並行", + "hybridDetails": "適合在櫃檯販售現成商品、同時也提供桌邊服務的店家。櫃檯與外帶訂單先付款,桌邊訂單於服務後付款。" }, "staff": { "addButton": "新增員工", diff --git a/frontend/src/lib/i18n/messages/zh.json b/frontend/src/lib/i18n/messages/zh.json index 420fb3e361..8f279d1c55 100644 --- a/frontend/src/lib/i18n/messages/zh.json +++ b/frontend/src/lib/i18n/messages/zh.json @@ -1336,7 +1336,8 @@ "validationShiftEvidenceHint": "仅在此终端已开始班次但错误仍然出现时联系支持。", "validationClosedBooksGuidance": "今日营业日已关账且无法重新开启。新订单与现金业务将在下一个营业日恢复。", "validationClosedBooksEvidenceHint": "仅在今日营业日因门店日期或时区异常而显示已关账时联系支持。", - "validationGenericEvidenceHint": "仅在您认为此校验拒绝了有效请求时联系支持。" + "validationGenericEvidenceHint": "仅在您认为此校验拒绝了有效请求时联系支持。", + "readyMadeNoKitchen": "现成品,无需厨房" }, "printTest": { "amt": "金额", @@ -1740,7 +1741,9 @@ "variantDeactivateConfirm": "该变体保存后将被停用,且无法在此页面恢复。", "variantRemoveAllConfirm": "关闭后将停用该商品的所有变体,历史订单仍会保留。", "parentCategory": "父级分类", - "parentCategoryNone": "无(顶级分类)" + "parentCategoryNone": "无(顶级分类)", + "fieldGoesToKitchen": "送往厨房", + "fieldGoesToKitchenHint": "瓶装饮料等现成商品请关闭。它们仍照常销售、计税并开具小票,但不会出现在厨房显示屏或厨房单据上。" }, "productAnalytics": { "title": "帮我们决定下一步做什么", @@ -2795,7 +2798,12 @@ "refundWindow2h": "2 小时", "refundWindow4h": "4 小时", "refundWindowSameDay": "同一营业日", - "refundOwnerUnlimitedNote": "店主始终可以使用其员工审批 PIN 码批准任何历史订单的退款。" + "refundOwnerUnlimitedNote": "店主始终可以使用其员工审批 PIN 码批准任何历史订单的退款。", + "serviceModel": "服务模式", + "serviceModelQsr": "快速服务", + "serviceModelFinedine": "精致餐饮", + "serviceModelHybridHint": "柜台和外带订单先付款,桌边订单在服务后付款。仅堂食订单需要选择桌位。", + "serviceModelHybrid": "快速服务+精致餐饮" }, "setup": { "alreadyCompleted": "此安装已完成设置。正在跳转到登录…", @@ -2892,7 +2900,10 @@ "termsIntro": "我同意 FloPOS 的", "timezoneHint": "根据您的国家/地区预填。多时区国家/地区的门店可选择实际本地时区。", "timezoneLabel": "时区", - "welcome": "欢迎使用 FloCafe" + "welcome": "欢迎使用 FloCafe", + "hybridLabel": "快速服务+精致餐饮", + "hybridDesc": "柜台与用餐区并行", + "hybridDetails": "适合在柜台销售现成商品、同时也提供桌边服务的店铺。柜台和外带订单先付款,桌边订单在服务后付款。" }, "staff": { "addButton": "添加员工", diff --git a/frontend/src/lib/settings-search.ts b/frontend/src/lib/settings-search.ts index 34b8299346..59b236a967 100644 --- a/frontend/src/lib/settings-search.ts +++ b/frontend/src/lib/settings-search.ts @@ -103,6 +103,10 @@ export const SETTINGS_SEARCH_CATALOG: readonly SettingsSearchEntry[] = [ 'phoneDigits', 'email', 'address', + 'serviceModel', + 'serviceModelQsr', + 'serviceModelFinedine', + 'serviceModelHybrid', 'billingType', 'billingTypePostpaid', 'billingTypePrepaid', @@ -130,6 +134,10 @@ export const SETTINGS_SEARCH_CATALOG: readonly SettingsSearchEntry[] = [ 'street', 'city', 'location', + 'service model', + 'quick service', + 'fine dining', + 'hybrid', 'billing type', 'prepaid', 'postpaid', diff --git a/frontend/src/lib/types.ts b/frontend/src/lib/types.ts index e69ec60f60..122b8513e8 100644 --- a/frontend/src/lib/types.ts +++ b/frontend/src/lib/types.ts @@ -18,7 +18,7 @@ export interface Tenant { slug: string; database_name: string; business_type: 'restaurant'; - service_model?: 'qsr' | 'finedine'; + service_model?: 'qsr' | 'finedine' | 'hybrid'; country: string; currency: string; timezone: string; @@ -100,6 +100,8 @@ export interface Product { barcode: string | null; sale_unit: 'each' | 'kg' | 'g' | 'lb' | 'ml' | 'cl' | 'l' | 'fl oz' | 'oz'; allow_fractional_quantity: boolean; + /** False for ready-made items that never reach the kitchen. Absent on older payloads, meaning true. */ + requires_kitchen?: boolean; weight_precision: number; inventory_product_id?: string | null; inventory_deduction_quantity?: number | null; diff --git a/frontend/src/store/pos-settings.ts b/frontend/src/store/pos-settings.ts index 180c26bfe5..e751bf5568 100644 --- a/frontend/src/store/pos-settings.ts +++ b/frontend/src/store/pos-settings.ts @@ -9,6 +9,21 @@ export type PrinterPrintMode = 'escpos' | 'browser'; export type CoreBillTemplate = 'classic' | 'compact'; export type BillTemplate = CoreBillTemplate | (string & {}); export type AutoLockMinutes = 0 | 1 | 5 | 15 | 30; +export type ServiceModel = 'qsr' | 'finedine' | 'hybrid'; + +export function normalizeServiceModel(value: unknown): ServiceModel { + return value === 'qsr' || value === 'hybrid' ? value : 'finedine'; +} + +/** Hybrid venues pay after service only at the table; the global billing type governs every other mode. */ +export function isPrepaidBilling( + billingType: 'postpaid' | 'prepaid', + serviceModel: ServiceModel, + orderType: string | null | undefined, +): boolean { + if (serviceModel === 'hybrid') return orderType !== 'dine_in'; + return billingType === 'prepaid'; +} export function normalizeAutoLockMinutesValue(value: unknown): AutoLockMinutes { const num = typeof value === 'number' ? value : Number(String(value ?? '0').trim()); @@ -22,6 +37,7 @@ export interface PosSettingsState { // Auto-advances phone to name when typed digits form a valid number. enforcePhoneLength: boolean; billingType: 'postpaid' | 'prepaid'; + serviceModel: ServiceModel; tablesRequired: boolean; // UI language synced from tenant on auth load with browser default fallback. language: Language; @@ -103,6 +119,7 @@ export interface PosSettingsState { setBillShowTableNumber: (v: boolean) => void; setBillShowLargeOrderNumber: (v: boolean) => void; setBillingType: (v: 'postpaid' | 'prepaid') => void; + setServiceModel: (v: ServiceModel) => void; setTablesRequired: (v: boolean) => void; setPrinterUseUnicode: (v: boolean) => void; setPrinterArabicShaping: (v: boolean) => void; @@ -151,6 +168,8 @@ export interface ReceiptSettingsHydrationData { billTemplateSource?: 'core' | 'pack' | 'merchant' | null; billing_type?: string | null; billingType?: string | null; + service_model?: string | null; + serviceModel?: string | null; tables_required?: boolean | string | null; tablesRequired?: boolean | string | null; auto_lock_minutes?: number | string | null; @@ -164,6 +183,7 @@ export const usePosSettingsStore = create()( customerMandatory: false, enforcePhoneLength: false, billingType: 'postpaid', + serviceModel: 'finedine', tablesRequired: true, language: 'en', // Printer defaults @@ -243,6 +263,7 @@ export const usePosSettingsStore = create()( setBillShowTableNumber: (v) => set({ billShowTableNumber: v }), setBillShowLargeOrderNumber: (v) => set({ billShowLargeOrderNumber: v }), setBillingType: (v) => set({ billingType: v }), + setServiceModel: (v) => set({ serviceModel: v }), setTablesRequired: (v) => set({ tablesRequired: v }), setPrinterUseUnicode: (v) => set({ printerUseUnicode: v }), setPrinterArabicShaping: (v) => set({ printerArabicShaping: v }), @@ -351,6 +372,10 @@ export const usePosSettingsStore = create()( if (billingType !== undefined && billingType !== null) { updates.billingType = billingType === 'prepaid' ? 'prepaid' : 'postpaid'; } + const serviceModel = d.service_model ?? d.serviceModel; + if (serviceModel !== undefined && serviceModel !== null) { + updates.serviceModel = normalizeServiceModel(serviceModel); + } const tablesReq = d.tables_required ?? d.tablesRequired; if (tablesReq !== undefined && tablesReq !== null) { updates.tablesRequired = diff --git a/main/db.ts b/main/db.ts index 59a48b70bc..fc83338236 100644 --- a/main/db.ts +++ b/main/db.ts @@ -10393,6 +10393,18 @@ export const MIGRATIONS: { version: number; name: string; up: () => void }[] = [ } }, }, + { + version: 126, + name: 'add_requires_kitchen', + up: () => { + if (!getColumns(db, 'products').includes('requires_kitchen')) { + db.exec('ALTER TABLE products ADD COLUMN requires_kitchen INTEGER NOT NULL DEFAULT 1'); + } + if (!getColumns(db, 'order_items').includes('requires_kitchen')) { + db.exec('ALTER TABLE order_items ADD COLUMN requires_kitchen INTEGER NOT NULL DEFAULT 1'); + } + }, + }, ]; export function backfillWhatsAppMessageAttempts( @@ -11771,9 +11783,18 @@ export function isVoidedItemKdsVisible(voidedAt: string | null | undefined): boo return Date.now() - parseDbTimestamp(voidedAt).getTime() < KDS_VOIDED_ITEM_VISIBILITY_MS; } +/** An order made only of ready-made lines has no kitchen work and never appears on kitchen boards. */ +export function orderHasKitchenWorkSql(orderAlias: string): string { + return `( + EXISTS (SELECT 1 FROM order_items kitchen_oi WHERE kitchen_oi.order_id = ${orderAlias}.id AND kitchen_oi.requires_kitchen = 1) + OR NOT EXISTS (SELECT 1 FROM order_items ready_oi WHERE ready_oi.order_id = ${orderAlias}.id AND ready_oi.requires_kitchen = 0) + )`; +} + export const ACTIVE_RELEASED_KDS_ORDER_IDS_SQL = ` SELECT id FROM orders WHERE release_status = 'released' AND status IN ('pending', 'preparing', 'ready', 'served') + AND ${orderHasKitchenWorkSql('orders')} UNION SELECT active_o.id FROM orders active_o JOIN order_items active_oi ON active_oi.order_id = active_o.id diff --git a/main/routes/auth.ts b/main/routes/auth.ts index fed462b2c9..2803481296 100644 --- a/main/routes/auth.ts +++ b/main/routes/auth.ts @@ -42,6 +42,7 @@ import { type RegionalSnapshot, } from '../countries'; import { countryConfirmationPatch } from '../services/country-provenance'; +import { VALID_SERVICE_MODELS } from '../services/service-model'; import { cloudSync, CloudRequestError, @@ -114,7 +115,6 @@ export function signFreshSessionToken( const INITIAL_ADMIN_ROLE = 'owner'; const VALID_BUSINESS_TYPES = new Set(['restaurant']); const VALID_SETUP_PROFILES = new Set(['empty', 'express', 'demo']); -const VALID_SERVICE_MODELS = new Set(['qsr', 'finedine']); const LOCAL_SETUP_HOSTS = new Set(['127.0.0.1', '::1', '::ffff:127.0.0.1']); // The secret itself now lives in main/security/jwt-secret.ts, which is the only @@ -1854,7 +1854,7 @@ router.post('/setup/initialize', (req: Request, res: Response) => { state_code, tax_registered, billing_type: billing_type || (normalizedServiceModel === 'qsr' ? 'prepaid' : 'postpaid'), - tables_required: normalizedServiceModel === 'finedine' ? 'true' : 'false', + tables_required: normalizedServiceModel === 'qsr' ? 'false' : 'true', service_model: normalizedServiceModel, setup_profile: pendingCurrencyReset ? 'empty' : normalizedSetupProfile, onboarding_completed: 'true', @@ -1883,7 +1883,7 @@ router.post('/setup/initialize', (req: Request, res: Response) => { seedSetupProfile( db, normalizedSetupProfile, - normalizedServiceModel, + normalizedServiceModel === 'qsr' ? 'qsr' : 'finedine', language, resolvedCountry.code, ); diff --git a/main/routes/bills.ts b/main/routes/bills.ts index f005acdd6d..ad330f7e4a 100644 --- a/main/routes/bills.ts +++ b/main/routes/bills.ts @@ -22,6 +22,7 @@ import { import { asyncHandler } from '../middleware/async-handler'; import { notifyKdsUpdate, notifyOrderUpdated } from '../services/kds'; import { printReceipt } from '../services/receipt'; +import { isOrderPrepaidById } from '../services/service-model'; import { cloudSync } from '../services/cloud-sync'; import * as whatsapp from '../services/whatsapp'; import { hasPermission, requirePermission } from '../services/authorization'; @@ -300,13 +301,10 @@ export function checkKitchenDeliveryStatus( const kdsEnabled = db.prepare("SELECT value FROM settings WHERE key = 'kds_enabled'").get() as | { value: string } | undefined; - const billingType = db.prepare("SELECT value FROM settings WHERE key = 'billing_type'").get() as - | { value: string } - | undefined; if ( setting?.value !== 'true' || kdsEnabled?.value === 'false' || - billingType?.value === 'prepaid' + isOrderPrepaidById(db, orderId) ) { return { allowed: true, count: 0, items: [] }; } diff --git a/main/routes/kds.ts b/main/routes/kds.ts index d65fa4b0ce..6549cf8ab3 100644 --- a/main/routes/kds.ts +++ b/main/routes/kds.ts @@ -215,7 +215,7 @@ router.get('/orders', requireKdsEnabled, (req: Request, res: Response) => { FROM order_items oi LEFT JOIN products p ON oi.product_id = p.id LEFT JOIN categories c ON p.category_id = c.id - WHERE oi.order_id IN (${placeholders}) + WHERE oi.order_id IN (${placeholders}) AND oi.requires_kitchen = 1 ORDER BY oi.order_id, oi.created_at ASC `) .all(...orderIds) as any[]; @@ -433,6 +433,7 @@ router.get('/display', requireKdsEnabled, (req: Request, res: Response) => { JOIN orders o ON oi.order_id = o.id LEFT JOIN tables t ON o.table_id = t.id WHERE oi.status NOT IN ('completed', 'cancelled', 'served', 'void_adjustment', 'refunded') + AND oi.requires_kitchen = 1 AND (oi.status != 'voided' OR oi.voided_at IS NULL OR oi.voided_at > ?) AND o.status != 'cancelled' AND o.release_status = 'released' diff --git a/main/routes/kitchen.ts b/main/routes/kitchen.ts index c451041c79..5eb9dd7aef 100644 --- a/main/routes/kitchen.ts +++ b/main/routes/kitchen.ts @@ -91,7 +91,7 @@ router.get('/orders', (req: Request, res: Response) => { .prepare(` SELECT oi.*, p.category_id FROM order_items oi LEFT JOIN products p ON p.id = oi.product_id - WHERE oi.order_id IN (${placeholders}) ORDER BY oi.order_id, oi.id + WHERE oi.order_id IN (${placeholders}) AND oi.requires_kitchen = 1 ORDER BY oi.order_id, oi.id `) .all(...orderIds) as any[]; diff --git a/main/routes/orders.ts b/main/routes/orders.ts index 80eab784b7..d482697975 100644 --- a/main/routes/orders.ts +++ b/main/routes/orders.ts @@ -84,6 +84,7 @@ import { type PriceOverrideInput, } from '../services/item-price-override'; import { notifyKdsUpdate, notifyOrderUpdated } from '../services/kds'; +import { isOrderPrepaid } from '../services/service-model'; import { cloudSync } from '../services/cloud-sync'; import { validateOrderNotes, @@ -1031,8 +1032,13 @@ type ProductRow = TaxProductRow & { name: string; sku: string | null; price: string | number; + requires_kitchen?: number | null; }; +function productRequiresKitchen(product: { requires_kitchen?: number | null }): boolean { + return product.requires_kitchen !== 0; +} + interface OrderItemInput { product_id: string; quantity: number; @@ -1083,8 +1089,8 @@ function insertOrderItems( const insertItem = db.prepare(` INSERT INTO order_items (order_id, product_id, variant_id, product_name, product_sku, unit_price, quantity, inventory_deducted_quantity, inventory_product_id, inventory_variant_id, subtotal, tax_amount, tax_breakdown, tax_snapshot, tax_type, discount_amount, total, variant_selection, - modifier_selection, special_instructions, recipe_snapshot, ingredient_cost, ingredient_cost_known, status, created_at, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + modifier_selection, special_instructions, recipe_snapshot, ingredient_cost, ingredient_cost_known, status, created_at, updated_at, requires_kitchen) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) `); const insertedItemIds: (number | bigint)[] = []; @@ -1225,9 +1231,10 @@ function insertOrderItems( recipeSnapshot ? JSON.stringify(recipeSnapshot) : null, ingredientCost, ingredientCostKnown, - initialStatus, + productRequiresKitchen(product) ? initialStatus : 'served', itemCreatedAt, itemCreatedAt, + productRequiresKitchen(product) ? 1 : 0, ); insertOrderItemAddons(db, insertItemResult.lastInsertRowid, item.addons, itemCreatedAt); insertedItemIds.push(insertItemResult.lastInsertRowid); @@ -2419,8 +2426,8 @@ router.post( const insertItem = db.prepare(` INSERT INTO order_items (order_id, product_id, variant_id, product_name, product_sku, unit_price, quantity, inventory_deducted_quantity, inventory_product_id, inventory_variant_id, subtotal, tax_amount, tax_breakdown, tax_snapshot, tax_type, discount_amount, total, variant_selection, - modifier_selection, special_instructions, recipe_snapshot, ingredient_cost, ingredient_cost_known, status, created_at, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'pending', ?, ?) + modifier_selection, special_instructions, recipe_snapshot, ingredient_cost, ingredient_cost_known, status, created_at, updated_at, requires_kitchen) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) `); const validatedItems: Array<{ @@ -2625,8 +2632,10 @@ router.post( recipeSnapshot ? JSON.stringify(recipeSnapshot) : null, ingredientCost, ingredientCostKnown, + productRequiresKitchen(product) ? 'pending' : 'served', itemCreatedAt, itemCreatedAt, + productRequiresKitchen(product) ? 1 : 0, ); insertOrderItemAddons(db, insertItemResult.lastInsertRowid, item.addons, itemCreatedAt); if (priceOverride) { @@ -3808,13 +3817,10 @@ router.patch( const kdsEnabled = db .prepare("SELECT value FROM settings WHERE key = 'kds_enabled'") .get() as { value: string } | undefined; - const billingType = db - .prepare("SELECT value FROM settings WHERE key = 'billing_type'") - .get() as { value: string } | undefined; const kitchenPolicyApplies = requireKitchenDelivered?.value === 'true' && kdsEnabled?.value !== 'false' && - billingType?.value !== 'prepaid'; + !isOrderPrepaid(db, currentOrder.type); const undeliveredKitchenItems = status === 'completed' && kitchenPolicyApplies ? (db @@ -7276,10 +7282,9 @@ router.patch( } // Restore - mark as pending - db.prepare("UPDATE order_items SET status = 'pending', updated_at = ? WHERE id = ?").run( - now(), - itemId, - ); + db.prepare( + "UPDATE order_items SET status = CASE WHEN requires_kitchen = 0 THEN 'served' ELSE 'pending' END, updated_at = ? WHERE id = ?", + ).run(now(), itemId); // Recalculate order totals const orderTotals = calculateOrderTotals(db, orderId); diff --git a/main/routes/products.ts b/main/routes/products.ts index 7b9af7c455..b1782d570b 100644 --- a/main/routes/products.ts +++ b/main/routes/products.ts @@ -492,6 +492,9 @@ function serializeProduct(product: any): any { is_active: toBoolean(product.is_active), track_inventory: toBoolean(product.track_inventory), allow_fractional_quantity: toBoolean(product.allow_fractional_quantity), + ...(product.requires_kitchen !== undefined && { + requires_kitchen: product.requires_kitchen !== 0 && product.requires_kitchen !== false, + }), has_image: toBoolean(product.has_image), dietary_tags: parseTags(product.dietary_tags), category: serializeCategory(product.category), @@ -1204,7 +1207,7 @@ router.get('/', requirePermission('catalog.view'), (req: Request, res: Response) const activeOnly = req.query.active === 'true' || req.query.active === '1'; const ctePrefix = activeOnly ? `WITH RECURSIVE ${ACTIVE_CATEGORIES_CTE_CLAUSES} ` : ''; let query = `${ctePrefix}SELECT p.id, p.category_id, p.name, p.description, p.price, p.cost, p.sku, p.barcode, - p.sale_unit, p.allow_fractional_quantity, p.weight_precision, + p.sale_unit, p.allow_fractional_quantity, p.weight_precision, p.requires_kitchen, p.inventory_product_id, p.inventory_deduction_quantity, p.is_active, p.sort_order, p.track_inventory, p.stock_quantity, p.low_stock_threshold, p.tax_type, p.tax_rate, p.tax_category_id, p.tax_behavior, p.cb_percent, p.tags, p.dietary_tags, p.deleted_at, p.created_at, p.updated_at, @@ -1550,6 +1553,7 @@ router.post('/', requirePermission('catalog.manage'), (req: Request, res: Respon cost_price, sale_unit, allow_fractional_quantity, + requires_kitchen, weight_precision, inventory_product_id, inventory_deduction_quantity, @@ -1568,6 +1572,9 @@ router.post('/', requirePermission('catalog.manage'), (req: Request, res: Respon addon_group_ids, reason, } = req.body; + if (requires_kitchen !== undefined && typeof requires_kitchen !== 'boolean') { + return res.status(400).json({ error: 'requires_kitchen must be a boolean' }); + } const normalizedBarcode = normalizeBarcode(barcode); const productName = normalizeRequiredName(name); @@ -1678,11 +1685,11 @@ router.post('/', requirePermission('catalog.manage'), (req: Request, res: Respon const insertProduct = db.transaction(() => { db.prepare(` INSERT INTO products (id, category_id, name, sku, barcode, description, price, cost, - sale_unit, allow_fractional_quantity, weight_precision, + sale_unit, allow_fractional_quantity, requires_kitchen, weight_precision, inventory_product_id, inventory_deduction_quantity, tax_type, tax_rate, tax_category_id, tax_behavior, track_inventory, stock_quantity, low_stock_threshold, is_active, image_url, sort_order, cb_percent, tags, dietary_tags, created_at, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) `).run( id, normalizeNullableString(category_id), @@ -1694,6 +1701,7 @@ router.post('/', requirePermission('catalog.manage'), (req: Request, res: Respon cost_price || 0, normalizeSaleUnit(sale_unit), allow_fractional_quantity ? 1 : 0, + requires_kitchen === false ? 0 : 1, weight_precision ?? 3, inventory_product_id || null, inventory_product_id @@ -1798,6 +1806,7 @@ router.put('/:id', requirePermission('catalog.manage'), (req: Request, res: Resp cost_price, sale_unit, allow_fractional_quantity, + requires_kitchen, weight_precision, inventory_product_id, inventory_deduction_quantity, @@ -1815,6 +1824,9 @@ router.put('/:id', requirePermission('catalog.manage'), (req: Request, res: Resp variants, addon_group_ids, } = req.body; + if (requires_kitchen !== undefined && typeof requires_kitchen !== 'boolean') { + return res.status(400).json({ error: 'requires_kitchen must be a boolean' }); + } const normalizedBarcode = normalizeBarcode(barcode); const hasName = hasOwn(req.body, 'name'); const productName = hasName ? normalizeRequiredName(name) : null; @@ -1954,6 +1966,7 @@ router.put('/:id', requirePermission('catalog.manage'), (req: Request, res: Resp const hasDietaryTags = hasOwn(req.body, 'dietary_tags'); const hasSaleUnit = hasOwn(req.body, 'sale_unit'); const hasAllowFractionalQuantity = hasOwn(req.body, 'allow_fractional_quantity'); + const hasRequiresKitchen = hasOwn(req.body, 'requires_kitchen'); const hasWeightPrecision = hasOwn(req.body, 'weight_precision'); const hasInventoryProductId = hasOwn(req.body, 'inventory_product_id'); const hasInventoryDeductionQuantity = hasOwn(req.body, 'inventory_deduction_quantity'); @@ -1995,6 +2008,7 @@ router.put('/:id', requirePermission('catalog.manage'), (req: Request, res: Resp barcode = CASE WHEN @has_barcode = 1 THEN @barcode ELSE barcode END, sale_unit = CASE WHEN @has_sale_unit = 1 THEN @sale_unit ELSE sale_unit END, allow_fractional_quantity = CASE WHEN @has_allow_fractional_quantity = 1 THEN @allow_fractional_quantity ELSE allow_fractional_quantity END, + requires_kitchen = CASE WHEN @has_requires_kitchen = 1 THEN @requires_kitchen ELSE requires_kitchen END, weight_precision = CASE WHEN @has_weight_precision = 1 THEN @weight_precision ELSE weight_precision END, inventory_product_id = CASE WHEN @has_inventory_product_id = 1 THEN @inventory_product_id ELSE inventory_product_id END, inventory_deduction_quantity = CASE WHEN @has_inventory_deduction_quantity = 1 THEN @inventory_deduction_quantity ELSE inventory_deduction_quantity END, @@ -2028,6 +2042,8 @@ router.put('/:id', requirePermission('catalog.manage'), (req: Request, res: Resp sale_unit: normalizeSaleUnit(sale_unit), has_allow_fractional_quantity: hasAllowFractionalQuantity ? 1 : 0, allow_fractional_quantity: allow_fractional_quantity ? 1 : 0, + has_requires_kitchen: hasRequiresKitchen ? 1 : 0, + requires_kitchen: requires_kitchen === false ? 0 : 1, has_weight_precision: hasWeightPrecision ? 1 : 0, weight_precision: weight_precision ?? null, has_inventory_product_id: hasInventoryProductId ? 1 : 0, diff --git a/main/routes/settings.ts b/main/routes/settings.ts index c36eadbdc1..8156fca3d4 100644 --- a/main/routes/settings.ts +++ b/main/routes/settings.ts @@ -89,6 +89,7 @@ import { validateLanguagePolicySetting, } from '../lib/print-language-settings'; import { isThemeMode } from '../title-bar-theme'; +import { VALID_SERVICE_MODELS } from '../services/service-model'; import { ChargeValidationError, CUSTOM_CHARGES_SETTING_KEY, @@ -283,6 +284,7 @@ function businessShape(s: Record) { business_phone: s.business_phone || '', instagram_handle: s.instagram_handle || '', billing_type: s.billing_type || 'postpaid', + service_model: s.service_model || 'finedine', tables_required: s.tables_required !== 'false', tax_registered: s.tax_registered === 'true' || s.tax_registered === '1', bill_show_name: s.bill_show_name !== 'false', @@ -376,6 +378,7 @@ router.put('/business', requirePermission('settings.manage'), (req: Request, res business_phone, instagram_handle, billing_type, + service_model, tables_required, tax_registered, bill_show_name, @@ -404,6 +407,10 @@ router.put('/business', requirePermission('settings.manage'), (req: Request, res .slice(0, 100) : undefined; + if (service_model !== undefined && !VALID_SERVICE_MODELS.has(service_model)) { + return res.status(400).json({ error: 'Invalid service model' }); + } + let normalizedReceiptLogo: string | undefined = undefined; if (receipt_logo !== undefined) { if (typeof receipt_logo !== 'string') { @@ -525,7 +532,8 @@ router.put('/business', requirePermission('settings.manage'), (req: Request, res business_phone: normalizedPhone !== undefined ? normalizedPhone : undefined, instagram_handle: normalizedInstagramHandle, billing_type, - tables_required, + service_model, + tables_required: service_model === 'hybrid' ? true : tables_required, tax_registered, bill_show_name, bill_show_address, diff --git a/main/services/customer-display-tokens.ts b/main/services/customer-display-tokens.ts index 1ff06b90f7..82a6ddb48c 100644 --- a/main/services/customer-display-tokens.ts +++ b/main/services/customer-display-tokens.ts @@ -1,5 +1,5 @@ import { createHash, randomBytes, randomUUID } from 'node:crypto'; -import { getDatabase, isKdsEnabled, now } from '../db'; +import { getDatabase, isKdsEnabled, now, orderHasKitchenWorkSql } from '../db'; import { CUSTOMER_DISPLAY_DEFAULTS, CUSTOMER_DISPLAY_KEY, @@ -346,6 +346,7 @@ export function selectBoardEligibleOrderPage( `${selectColumns} WHERE o.release_status = 'released' AND o.status IN (${placeholders}) + AND ${orderHasKitchenWorkSql('o')} AND +o.type IN (${orderTypePlaceholders}) AND o.created_at <= ? AND (o.created_at < ? OR (o.created_at = ? AND o.id < ?)) @@ -366,6 +367,7 @@ export function selectBoardEligibleOrderPage( `${selectColumns} WHERE o.release_status = 'released' AND o.status IN (${placeholders}) + AND ${orderHasKitchenWorkSql('o')} AND +o.type IN (${orderTypePlaceholders}) ORDER BY o.created_at DESC, o.id DESC LIMIT ?`, diff --git a/main/services/kds.ts b/main/services/kds.ts index dc275c2295..3e630881ef 100644 --- a/main/services/kds.ts +++ b/main/services/kds.ts @@ -792,7 +792,7 @@ export function buildActiveOrdersSnapshot( .prepare(` SELECT oi.*, p.category_id FROM order_items oi LEFT JOIN products p ON p.id = oi.product_id - WHERE oi.order_id IN (${placeholders}) ORDER BY oi.order_id, oi.id + WHERE oi.order_id IN (${placeholders}) AND oi.requires_kitchen = 1 ORDER BY oi.order_id, oi.id `) .all(...orderIds) as any[]; for (const item of rawItems) { @@ -876,6 +876,7 @@ export function buildActiveOrdersSnapshot( LEFT JOIN tables t ON o.table_id = t.id WHERE ${activeOrdersCondition()} AND oi.status NOT IN ('completed', 'cancelled', 'void_adjustment', 'refunded') + AND oi.requires_kitchen = 1 AND (oi.status != 'voided' OR oi.voided_at IS NULL OR oi.voided_at > ?) `; const countParams: any[] = [voidedCutoff]; diff --git a/main/services/orders.ts b/main/services/orders.ts index f35ae94861..cec82fea61 100644 --- a/main/services/orders.ts +++ b/main/services/orders.ts @@ -376,8 +376,12 @@ export function reconcileActiveOrderStatusFromItems( } if (order.status === 'completed') { const items = db - .prepare('SELECT status, quantity FROM order_items WHERE order_id = ?') - .all(orderId) as Array<{ status: string | null; quantity: number | null }>; + .prepare('SELECT status, quantity, requires_kitchen FROM order_items WHERE order_id = ?') + .all(orderId) as Array<{ + status: string | null; + quantity: number | null; + requires_kitchen: number | null; + }>; const derived: DerivedOrderKdsStatus | null = deriveOrderStatusFromItems(items); if (derived === null) { return { changed: false, previousStatus: order.status, status: order.status }; @@ -419,8 +423,12 @@ export function reconcileActiveOrderStatusFromItems( } const items = db - .prepare('SELECT status, quantity FROM order_items WHERE order_id = ?') - .all(orderId) as Array<{ status: string | null; quantity: number | null }>; + .prepare('SELECT status, quantity, requires_kitchen FROM order_items WHERE order_id = ?') + .all(orderId) as Array<{ + status: string | null; + quantity: number | null; + requires_kitchen: number | null; + }>; const derived: DerivedOrderKdsStatus | null = deriveOrderStatusFromItems(items); if (derived === null) { return { changed: false, previousStatus: order.status, status: order.status }; diff --git a/main/services/scheduled-orders.ts b/main/services/scheduled-orders.ts index 9502da431b..66f51e31ae 100644 --- a/main/services/scheduled-orders.ts +++ b/main/services/scheduled-orders.ts @@ -544,7 +544,7 @@ export async function releaseScheduledOrder( recipe_snapshot = ?, ingredient_cost = ?, ingredient_cost_known = ?, - status = 'pending', + status = CASE WHEN requires_kitchen = 0 THEN 'served' ELSE 'pending' END, updated_at = ? WHERE id = ?`, ); diff --git a/main/services/service-model.ts b/main/services/service-model.ts new file mode 100644 index 0000000000..e0e238816a --- /dev/null +++ b/main/services/service-model.ts @@ -0,0 +1,29 @@ +import type { getDatabase } from '../db'; + +export const VALID_SERVICE_MODELS = new Set(['qsr', 'finedine', 'hybrid']); + +export type ServiceModel = 'qsr' | 'finedine' | 'hybrid'; + +type Db = ReturnType; + +function readSetting(db: Db, key: string): string | undefined { + return ( + db.prepare('SELECT value FROM settings WHERE key = ?').get(key) as { value: string } | undefined + )?.value; +} + +/** + * Hybrid venues run a counter and a dining room together: only dine-in orders are paid after + * service. Every other mode keeps the single global `billing_type`. + */ +export function isOrderPrepaid(db: Db, orderType: string | null | undefined): boolean { + if (readSetting(db, 'service_model') === 'hybrid') return orderType !== 'dine_in'; + return readSetting(db, 'billing_type') === 'prepaid'; +} + +export function isOrderPrepaidById(db: Db, orderId: string | number): boolean { + const order = db.prepare('SELECT type FROM orders WHERE id = ?').get(orderId) as + | { type?: string | null } + | undefined; + return isOrderPrepaid(db, order?.type); +} diff --git a/package.json b/package.json index 47082b8b08..c1dc5c93f8 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "pretest": "npm run test:script-coverage && node scripts/run-test.cjs npm run test:payment-methods-split && node scripts/run-test.cjs npm run test:unified-split-check-ux && node scripts/run-test.cjs npm run test:release-regressions && node scripts/run-test.cjs npm run test:product-variants-db && node scripts/run-test.cjs npm run test:product-variants-api", "start": "electron .", "rebuild": "HOME=~/.electron-gyp node-gyp rebuild --target=$(node -p \"require('./node_modules/electron/package.json').version\") --arch=$(node -p \"process.arch\") --dist-url=https://electronjs.org/headers --runtime=electron --directory node_modules/better-sqlite3", - "test": "node scripts/run-test.cjs npm run test:smoke && node scripts/run-test.cjs npm run test:server-port-collision && node scripts/run-test.cjs npm run test:kds-integration && node scripts/run-test.cjs npm run test:kds-broadcast-grouping && node scripts/run-test.cjs npm run test:kds-contract && node scripts/run-test.cjs npm run test:kds-frontend-conflict && node scripts/run-test.cjs npm run test:kds-window-hardening && node scripts/run-test.cjs npm run test:electron-api-contract && node scripts/run-test.cjs npm run test:titlebar-window-options && node scripts/run-test.cjs npm run test:update-ipc-sender-validation && node scripts/run-test.cjs npm run test:settings-ipc-rbac && node scripts/run-test.cjs npm run test:menu-surface && node scripts/run-test.cjs npm run test:pos-keyboard-shortcuts && node scripts/run-test.cjs npm run test:window-readiness && node scripts/run-test.cjs npm run test:window-load-retry && node scripts/run-test.cjs npm run test:cors && node scripts/run-test.cjs npm run test:csp-lan && node scripts/run-test.cjs npm run test:secure-network-certificates && node scripts/run-test.cjs npm run test:secure-network-service && node scripts/run-test.cjs npm run test:secure-network-lan-integrity && node scripts/run-test.cjs npm run test:secure-network-windows && node scripts/run-test.cjs npm run test:release-config && node scripts/run-test.cjs npm run test:update-state && node scripts/run-test.cjs npm run test:update-ui && node scripts/run-test.cjs npm run test:update-channel && node scripts/run-test.cjs npm run test:telemetry && node scripts/run-test.cjs npm run test:telemetry-install-provenance && node scripts/run-test.cjs npm run test:country-provenance && node scripts/run-test.cjs npm run test:first-run && node scripts/run-test.cjs npm run test:phase7-setup-i18n && node scripts/run-test.cjs npm run test:security && node scripts/run-test.cjs npm run test:jwt-secret-cache-identity && node scripts/run-test.cjs npm run test:jwt-secret-persist-before-cache && node scripts/run-test.cjs npm run test:jwt-secret-safe-storage && node scripts/run-test.cjs npm run test:staff-authz && node scripts/run-test.cjs npm run test:self-service-credentials && node scripts/run-test.cjs npm run test:orders-authz && node scripts/run-test.cjs npm run test:order-item-cancel-restore && node scripts/run-test.cjs npm run test:order-item-edit && node scripts/run-test.cjs npm run test:item-price-override && node scripts/run-test.cjs npm run test:offline-mode && node scripts/run-test.cjs npm run test:product-variants-orders && node scripts/run-test.cjs npm run test:addon-inventory-pos-surface && node scripts/run-test.cjs npm run test:addon-inventory-orders && node scripts/run-test.cjs npm run test:addon-inventory-lifecycle && node scripts/run-test.cjs npm run test:order-totals-recompute && node scripts/run-test.cjs npm run test:issue-718-whatsapp-order-status && node scripts/run-test.cjs npm run test:order-audit-log && node scripts/run-test.cjs npm run test:authz-phase3 && node scripts/run-test.cjs npm run test:authorization-permissions && node scripts/run-test.cjs npm run test:auth-ui-deterministic && node scripts/run-test.cjs npm run test:desktop-trailing-slash-routing && node scripts/run-test.cjs npm run test:customer-auth && node scripts/run-test.cjs npm run test:customer-soft-reactivate-bindings && node scripts/run-test.cjs npm run test:customer-pagination && node scripts/run-test.cjs npm run test:customer-top-items && node scripts/run-test.cjs npm run test:server-app-server-role && node scripts/run-test.cjs npm run test:backup && node scripts/run-test.cjs npm run test:issue-278-fail-closed-db && node scripts/run-test.cjs npm run test:recovery-cloud && node scripts/run-test.cjs npm run test:cloud-account-status && node scripts/run-test.cjs npm run test:cloud-live-orders-batching && node scripts/run-test.cjs npm run test:cloud-live-reports && node scripts/run-test.cjs npm run test:printer && node scripts/run-test.cjs npm run test:printing-settings && node scripts/run-test.cjs npm run test:printer-width-refresh && node scripts/run-test.cjs npm run test:printer-migrations && node scripts/run-test.cjs npm run test:printer-text-size && node scripts/run-test.cjs npm run test:print-parity && node scripts/run-test.cjs npm run test:delivery-slip && node scripts/run-test.cjs npm run test:delivery-address && node scripts/run-test.cjs npm run test:thermal-capabilities && node scripts/run-test.cjs npm run test:raster && node scripts/run-test.cjs npm run test:merchant-print-templates && node scripts/run-test.cjs npm run test:merchant-template-transfer && node scripts/run-test.cjs npm run test:print-document && node scripts/run-test.cjs npm run test:menu-printing && node scripts/run-test.cjs npm run test:print-kernel && node scripts/run-test.cjs npm run test:translations && node scripts/run-test.cjs npm run test:print-labels && node scripts/run-test.cjs npm run test:locale-chunks && node scripts/run-test.cjs npm run test:rtl-foundation && node scripts/run-test.cjs npm run test:rtl-setup-auth-settings && node scripts/run-test.cjs npm run test:rtl-dashboard-pos-common && node scripts/run-test.cjs npm run test:rtl-kds-server-whatsapp && node scripts/run-test.cjs npm run test:phone && node scripts/run-test.cjs npm run test:country-localization && node scripts/run-test.cjs npm run test:e2e-argentina-flow && node scripts/run-test.cjs npm run test:charges && node scripts/run-test.cjs npm run test:charges-engine && node scripts/run-test.cjs npm run test:currency && node scripts/run-test.cjs npm run test:tax-engine && node scripts/run-test.cjs npm run test:tax-components && node scripts/run-test.cjs npm run test:tax-pack-catalog && node scripts/run-test.cjs npm run test:tax-pack-management && node scripts/run-test.cjs npm run test:manual-tax-config && node scripts/run-test.cjs npm run test:tax-pack-unavailable-manual-setup && node scripts/run-test.cjs npm run test:legacy-tax-pack-digest && node scripts/run-test.cjs npm run test:community-tax-packs && node scripts/run-test.cjs npm run test:support-ticket && node scripts/run-test.cjs npm run test:customer-phone-search && node scripts/run-test.cjs npm run test:phone-search-integration && node scripts/run-test.cjs npm run test:orders-search && node scripts/run-test.cjs npm run test:settings-search && node scripts/run-test.cjs npm run test:settings-subnav-attention && node scripts/run-test.cjs npm run test:orders-layout-settings && node scripts/run-test.cjs npm run test:pos-catalog-sort && node scripts/run-test.cjs npm run test:pos-sort-settings && node scripts/run-test.cjs npm run test:receipt-column-width && node scripts/run-test.cjs npm run test:receipt-column-oracle && node scripts/run-test.cjs npm run test:notes-validation && node scripts/run-test.cjs npm run test:order-create-refusal-facts && node scripts/run-test.cjs npm run test:order-addon-refusal-facts && node scripts/run-test.cjs npm run test:receipt-printing && node scripts/run-test.cjs npm run test:cancel-override && node scripts/run-test.cjs npm run test:refunds && node scripts/run-test.cjs npm run test:async-refund-pin-event-loop && node scripts/run-test.cjs npm run test:refund-completed-orders && node scripts/run-test.cjs npm run test:cash-closures && node scripts/run-test.cjs npm run test:cash-sessions && node scripts/run-test.cjs npm run test:cash-session-failure && node scripts/run-test.cjs npm run test:kitchen-addons && node scripts/run-test.cjs npm run test:kot-order-notes && node scripts/run-test.cjs npm run test:pos-info-network-ranking && node scripts/run-test.cjs npm run test:order-item-addons && node scripts/run-test.cjs npm run test:issue-125-addon-reads && node scripts/run-test.cjs npm run test:windows-country-code-crash && node scripts/run-test.cjs npm run test:reports-insights && node scripts/run-test.cjs npm run test:reports-daily-stats-table-turn && node scripts/run-test.cjs npm run test:timezone-report-boundaries && node scripts/run-test.cjs npm run test:business-date && node scripts/run-test.cjs npm run test:dashboard-business-date && node scripts/run-test.cjs npm run test:sequence && node scripts/run-test.cjs npm run test:order-numbering-settings && node scripts/run-test.cjs npm run test:integration-happy && node scripts/run-test.cjs npm run test:integration-order-hold-payment && node scripts/run-test.cjs npm run test:integration-tax && node scripts/run-test.cjs npm run test:integration-payments && node scripts/run-test.cjs npm run test:kitchen-delivery-enforcement && node scripts/run-test.cjs npm run test:issue-214 && node scripts/run-test.cjs npm run test:issue-214-auth && node scripts/run-test.cjs npm run test:issue-214-migration && node scripts/run-test.cjs npm run test:issue-255 && node scripts/run-test.cjs npm run test:cart-variant-identity && node scripts/run-test.cjs npm run test:cart-price-override && node scripts/run-test.cjs npm run test:product-variants-screen && node scripts/run-test.cjs npm run test:variant-pos-surface && node scripts/run-test.cjs npm run test:issue-788-order-attempt-storage && node scripts/run-test.cjs npm run test:integration-lifecycle && node scripts/run-test.cjs npm run test:integration-reconciliation && node scripts/run-test.cjs npm run test:integration-loyalty && node scripts/run-test.cjs npm run test:integration-discount && node scripts/run-test.cjs npm run test:loyalty-toggle && node scripts/run-test.cjs npm run test:discount-system && node scripts/run-test.cjs npm run test:integration-discount-settings && node scripts/run-test.cjs npm run test:integration-loyalty-global && node scripts/run-test.cjs npm run test:issue-248-csv && node scripts/run-test.cjs npm run test:integration-loyalty-redemption && node scripts/run-test.cjs npm run test:bills-print-api && node scripts/run-test.cjs npm run test:issue-24 && node scripts/run-test.cjs npm run test:issue-134-routing && node scripts/run-test.cjs npm run test:server-app-station-routing && node scripts/run-test.cjs npm run test:issue-1442 && node scripts/run-test.cjs npm run test:issue-134-mgmt && node scripts/run-test.cjs npm run test:issue-137-barcode && node scripts/run-test.cjs npm run test:issue-244-product-addon-links && node scripts/run-test.cjs npm run test:issue-245-246-addon-groups && node scripts/run-test.cjs npm run test:issue-247-catalog-invariants && node scripts/run-test.cjs npm run test:issue-250-catalog-perf && node scripts/run-test.cjs npm run test:issue-252 && node scripts/run-test.cjs npm run test:inventory-ledger && node scripts/run-test.cjs npm run test:issue-printing-and-kds-resilience && node scripts/run-test.cjs npm run test:issue-258-bill-pagination && node scripts/run-test.cjs npm run test:issue-265-morocco-profile && node scripts/run-test.cjs npm run test:issue-266-currency-symbol-print && node scripts/run-test.cjs npm run test:tables-string-ids && node scripts/run-test.cjs npm run test:issue-646-floor-management && node scripts/run-test.cjs npm run test:held-orders && node scripts/run-test.cjs npm run test:product-images && node scripts/run-test.cjs npm run test:schema-health && node scripts/run-test.cjs npm run test:migration-registry && node scripts/run-test.cjs npm run test:upgrade-path && node scripts/run-test.cjs npm run test:upgrade-matrix-harness && node scripts/run-test.cjs npm run test:migration-v56-v57 && node scripts/run-test.cjs npm run test:migration-v71-repair && node scripts/run-test.cjs npm run test:migration-v80-cash-drawer-pulse && node scripts/run-test.cjs npm run test:migration-v81-cash-closures && node scripts/run-test.cjs npm run test:master-pin && node scripts/run-test.cjs npm run test:google-drive && node scripts/run-test.cjs npm run test:google-drive-qr-menu && node scripts/run-test.cjs npm run test:qr-menu-settings-tab-refresh && node scripts/run-test.cjs npm run test:database-tools-api && node scripts/run-test.cjs npm run test:phone-validation && node scripts/run-test.cjs npm run test:phone-migration && node scripts/run-test.cjs npm run test:issue-133-kds-kot-toggles && node scripts/run-test.cjs npm run test:whatsapp-schema && node scripts/run-test.cjs npm run test:whatsapp-service && node scripts/run-test.cjs npm run test:whatsapp-middleware && node scripts/run-test.cjs npm run test:issue-127-password-recovery && node scripts/run-test.cjs npm run test:dev-tooling && node scripts/run-test.cjs npm run test:windows-uninstaller && node scripts/run-test.cjs npm run test:shutdown-lifecycle && node scripts/run-test.cjs npm run test:redos-hardening && node scripts/run-test.cjs npm run test:startup-cache && node scripts/run-test.cjs npm run test:service-worker && node scripts/run-test.cjs npm run test:issue-389-timezone-override && node scripts/run-test.cjs npm run test:issue-390-locale-preference-invariants && node scripts/run-test.cjs npm run test:issue-475-picker-highlight && node scripts/run-test.cjs npm run test:theme-mode-settings && node scripts/run-test.cjs npm run test:theme-fouc-script && node scripts/run-test.cjs npm run test:ui-regressions-621-623-626 && node scripts/run-test.cjs npm run test:themed-date-time-inputs && node scripts/run-test.cjs npm run test:issue-zero-balance-settlement && node scripts/run-test.cjs npm run test:daily-sales-export && node scripts/run-test.cjs npm run test:daily-invoices-export && node scripts/run-test.cjs npm run test:customer-sales-export && node scripts/run-test.cjs npm run test:card-transaction-id && node scripts/run-test.cjs npm run test:checkout-quick-tender-and-guards && node scripts/run-test.cjs npm run test:issue-terminal-state-guards && node scripts/run-test.cjs npm run test:issue-exact-balance-settlement && node scripts/run-test.cjs npm run test:financial-safety-remediation && node scripts/run-test.cjs npm run test:issue-payload-and-discount-bounds && node scripts/run-test.cjs npm run test:customer-display-config && node scripts/run-test.cjs npm run test:customer-display-settings-route && node scripts/run-test.cjs npm run test:customer-display-pairing && node scripts/run-test.cjs npm run test:customer-display-feed && node scripts/run-test.cjs npm run test:units && node scripts/run-test.cjs npm run test:db-timing && node scripts/run-test.cjs npm run test:supplies-service && node scripts/run-test.cjs npm run test:recipe-order-lifecycle && node scripts/run-test.cjs npm run test:ingredient-cost && node scripts/run-test.cjs npm run test:lint-engine && node scripts/run-test.cjs npm run test:oxc-contributor-checks && node scripts/run-test.cjs npm run test:expenses && node scripts/run-test.cjs npm run test:diagnostics && node scripts/run-test.cjs npm run test:reports-export && node scripts/run-test.cjs npm run test:category-addon-groups && node scripts/run-test.cjs npm run test:addon-inventory-db && node scripts/run-test.cjs npm run test:addon-inventory-api && node scripts/run-test.cjs npm run test:discount-kitchen-approver-identity && node scripts/run-test.cjs npm run test:staff-approvers-directory && node scripts/run-test.cjs npm run test:local-backup && node scripts/run-test.cjs npm run test:status-messages && npm run test:password-policy && npm run test:cloud-password-recovery && node scripts/run-test.cjs npm run test:scheduled-orders && node scripts/run-test.cjs npm run test:newer-db-recovery && node scripts/run-test.cjs npm run test:multi-counter-ordering && node scripts/run-test.cjs npm run test:impact-printer && node scripts/run-test.cjs npm run test:malformed-order-body && node scripts/run-test.cjs npm run test:transport-failure-class", + "test": "node scripts/run-test.cjs npm run test:smoke && node scripts/run-test.cjs npm run test:server-port-collision && node scripts/run-test.cjs npm run test:kds-integration && node scripts/run-test.cjs npm run test:kds-broadcast-grouping && node scripts/run-test.cjs npm run test:kds-contract && node scripts/run-test.cjs npm run test:kds-frontend-conflict && node scripts/run-test.cjs npm run test:kds-window-hardening && node scripts/run-test.cjs npm run test:electron-api-contract && node scripts/run-test.cjs npm run test:titlebar-window-options && node scripts/run-test.cjs npm run test:update-ipc-sender-validation && node scripts/run-test.cjs npm run test:settings-ipc-rbac && node scripts/run-test.cjs npm run test:menu-surface && node scripts/run-test.cjs npm run test:pos-keyboard-shortcuts && node scripts/run-test.cjs npm run test:window-readiness && node scripts/run-test.cjs npm run test:window-load-retry && node scripts/run-test.cjs npm run test:cors && node scripts/run-test.cjs npm run test:csp-lan && node scripts/run-test.cjs npm run test:secure-network-certificates && node scripts/run-test.cjs npm run test:secure-network-service && node scripts/run-test.cjs npm run test:secure-network-lan-integrity && node scripts/run-test.cjs npm run test:secure-network-windows && node scripts/run-test.cjs npm run test:release-config && node scripts/run-test.cjs npm run test:update-state && node scripts/run-test.cjs npm run test:update-ui && node scripts/run-test.cjs npm run test:update-channel && node scripts/run-test.cjs npm run test:telemetry && node scripts/run-test.cjs npm run test:telemetry-install-provenance && node scripts/run-test.cjs npm run test:country-provenance && node scripts/run-test.cjs npm run test:first-run && node scripts/run-test.cjs npm run test:phase7-setup-i18n && node scripts/run-test.cjs npm run test:security && node scripts/run-test.cjs npm run test:jwt-secret-cache-identity && node scripts/run-test.cjs npm run test:jwt-secret-persist-before-cache && node scripts/run-test.cjs npm run test:jwt-secret-safe-storage && node scripts/run-test.cjs npm run test:staff-authz && node scripts/run-test.cjs npm run test:self-service-credentials && node scripts/run-test.cjs npm run test:orders-authz && node scripts/run-test.cjs npm run test:order-item-cancel-restore && node scripts/run-test.cjs npm run test:order-item-edit && node scripts/run-test.cjs npm run test:item-price-override && node scripts/run-test.cjs npm run test:offline-mode && node scripts/run-test.cjs npm run test:product-variants-orders && node scripts/run-test.cjs npm run test:addon-inventory-pos-surface && node scripts/run-test.cjs npm run test:addon-inventory-orders && node scripts/run-test.cjs npm run test:addon-inventory-lifecycle && node scripts/run-test.cjs npm run test:order-totals-recompute && node scripts/run-test.cjs npm run test:issue-718-whatsapp-order-status && node scripts/run-test.cjs npm run test:order-audit-log && node scripts/run-test.cjs npm run test:authz-phase3 && node scripts/run-test.cjs npm run test:authorization-permissions && node scripts/run-test.cjs npm run test:auth-ui-deterministic && node scripts/run-test.cjs npm run test:desktop-trailing-slash-routing && node scripts/run-test.cjs npm run test:customer-auth && node scripts/run-test.cjs npm run test:customer-soft-reactivate-bindings && node scripts/run-test.cjs npm run test:customer-pagination && node scripts/run-test.cjs npm run test:customer-top-items && node scripts/run-test.cjs npm run test:server-app-server-role && node scripts/run-test.cjs npm run test:backup && node scripts/run-test.cjs npm run test:issue-278-fail-closed-db && node scripts/run-test.cjs npm run test:recovery-cloud && node scripts/run-test.cjs npm run test:cloud-account-status && node scripts/run-test.cjs npm run test:cloud-live-orders-batching && node scripts/run-test.cjs npm run test:cloud-live-reports && node scripts/run-test.cjs npm run test:printer && node scripts/run-test.cjs npm run test:printing-settings && node scripts/run-test.cjs npm run test:printer-width-refresh && node scripts/run-test.cjs npm run test:printer-migrations && node scripts/run-test.cjs npm run test:printer-text-size && node scripts/run-test.cjs npm run test:print-parity && node scripts/run-test.cjs npm run test:delivery-slip && node scripts/run-test.cjs npm run test:delivery-address && node scripts/run-test.cjs npm run test:thermal-capabilities && node scripts/run-test.cjs npm run test:raster && node scripts/run-test.cjs npm run test:merchant-print-templates && node scripts/run-test.cjs npm run test:merchant-template-transfer && node scripts/run-test.cjs npm run test:print-document && node scripts/run-test.cjs npm run test:menu-printing && node scripts/run-test.cjs npm run test:print-kernel && node scripts/run-test.cjs npm run test:translations && node scripts/run-test.cjs npm run test:print-labels && node scripts/run-test.cjs npm run test:locale-chunks && node scripts/run-test.cjs npm run test:rtl-foundation && node scripts/run-test.cjs npm run test:rtl-setup-auth-settings && node scripts/run-test.cjs npm run test:rtl-dashboard-pos-common && node scripts/run-test.cjs npm run test:rtl-kds-server-whatsapp && node scripts/run-test.cjs npm run test:phone && node scripts/run-test.cjs npm run test:country-localization && node scripts/run-test.cjs npm run test:e2e-argentina-flow && node scripts/run-test.cjs npm run test:charges && node scripts/run-test.cjs npm run test:charges-engine && node scripts/run-test.cjs npm run test:currency && node scripts/run-test.cjs npm run test:tax-engine && node scripts/run-test.cjs npm run test:tax-components && node scripts/run-test.cjs npm run test:tax-pack-catalog && node scripts/run-test.cjs npm run test:tax-pack-management && node scripts/run-test.cjs npm run test:manual-tax-config && node scripts/run-test.cjs npm run test:tax-pack-unavailable-manual-setup && node scripts/run-test.cjs npm run test:legacy-tax-pack-digest && node scripts/run-test.cjs npm run test:community-tax-packs && node scripts/run-test.cjs npm run test:support-ticket && node scripts/run-test.cjs npm run test:customer-phone-search && node scripts/run-test.cjs npm run test:phone-search-integration && node scripts/run-test.cjs npm run test:orders-search && node scripts/run-test.cjs npm run test:settings-search && node scripts/run-test.cjs npm run test:settings-subnav-attention && node scripts/run-test.cjs npm run test:orders-layout-settings && node scripts/run-test.cjs npm run test:pos-catalog-sort && node scripts/run-test.cjs npm run test:pos-sort-settings && node scripts/run-test.cjs npm run test:receipt-column-width && node scripts/run-test.cjs npm run test:receipt-column-oracle && node scripts/run-test.cjs npm run test:notes-validation && node scripts/run-test.cjs npm run test:order-create-refusal-facts && node scripts/run-test.cjs npm run test:order-addon-refusal-facts && node scripts/run-test.cjs npm run test:receipt-printing && node scripts/run-test.cjs npm run test:cancel-override && node scripts/run-test.cjs npm run test:refunds && node scripts/run-test.cjs npm run test:async-refund-pin-event-loop && node scripts/run-test.cjs npm run test:refund-completed-orders && node scripts/run-test.cjs npm run test:cash-closures && node scripts/run-test.cjs npm run test:cash-sessions && node scripts/run-test.cjs npm run test:cash-session-failure && node scripts/run-test.cjs npm run test:kitchen-addons && node scripts/run-test.cjs npm run test:kot-order-notes && node scripts/run-test.cjs npm run test:pos-info-network-ranking && node scripts/run-test.cjs npm run test:order-item-addons && node scripts/run-test.cjs npm run test:issue-125-addon-reads && node scripts/run-test.cjs npm run test:windows-country-code-crash && node scripts/run-test.cjs npm run test:reports-insights && node scripts/run-test.cjs npm run test:reports-daily-stats-table-turn && node scripts/run-test.cjs npm run test:timezone-report-boundaries && node scripts/run-test.cjs npm run test:business-date && node scripts/run-test.cjs npm run test:dashboard-business-date && node scripts/run-test.cjs npm run test:sequence && node scripts/run-test.cjs npm run test:order-numbering-settings && node scripts/run-test.cjs npm run test:integration-happy && node scripts/run-test.cjs npm run test:integration-order-hold-payment && node scripts/run-test.cjs npm run test:integration-tax && node scripts/run-test.cjs npm run test:integration-payments && node scripts/run-test.cjs npm run test:kitchen-delivery-enforcement && node scripts/run-test.cjs npm run test:issue-214 && node scripts/run-test.cjs npm run test:issue-214-auth && node scripts/run-test.cjs npm run test:issue-214-migration && node scripts/run-test.cjs npm run test:issue-255 && node scripts/run-test.cjs npm run test:cart-variant-identity && node scripts/run-test.cjs npm run test:cart-price-override && node scripts/run-test.cjs npm run test:product-variants-screen && node scripts/run-test.cjs npm run test:variant-pos-surface && node scripts/run-test.cjs npm run test:issue-788-order-attempt-storage && node scripts/run-test.cjs npm run test:integration-lifecycle && node scripts/run-test.cjs npm run test:integration-reconciliation && node scripts/run-test.cjs npm run test:integration-loyalty && node scripts/run-test.cjs npm run test:integration-discount && node scripts/run-test.cjs npm run test:loyalty-toggle && node scripts/run-test.cjs npm run test:discount-system && node scripts/run-test.cjs npm run test:integration-discount-settings && node scripts/run-test.cjs npm run test:integration-loyalty-global && node scripts/run-test.cjs npm run test:issue-248-csv && node scripts/run-test.cjs npm run test:integration-loyalty-redemption && node scripts/run-test.cjs npm run test:bills-print-api && node scripts/run-test.cjs npm run test:issue-24 && node scripts/run-test.cjs npm run test:issue-134-routing && node scripts/run-test.cjs npm run test:server-app-station-routing && node scripts/run-test.cjs npm run test:issue-1442 && node scripts/run-test.cjs npm run test:issue-134-mgmt && node scripts/run-test.cjs npm run test:issue-137-barcode && node scripts/run-test.cjs npm run test:issue-244-product-addon-links && node scripts/run-test.cjs npm run test:issue-245-246-addon-groups && node scripts/run-test.cjs npm run test:issue-247-catalog-invariants && node scripts/run-test.cjs npm run test:issue-250-catalog-perf && node scripts/run-test.cjs npm run test:issue-252 && node scripts/run-test.cjs npm run test:inventory-ledger && node scripts/run-test.cjs npm run test:issue-printing-and-kds-resilience && node scripts/run-test.cjs npm run test:issue-258-bill-pagination && node scripts/run-test.cjs npm run test:issue-265-morocco-profile && node scripts/run-test.cjs npm run test:issue-266-currency-symbol-print && node scripts/run-test.cjs npm run test:tables-string-ids && node scripts/run-test.cjs npm run test:issue-646-floor-management && node scripts/run-test.cjs npm run test:held-orders && node scripts/run-test.cjs npm run test:product-images && node scripts/run-test.cjs npm run test:schema-health && node scripts/run-test.cjs npm run test:migration-registry && node scripts/run-test.cjs npm run test:upgrade-path && node scripts/run-test.cjs npm run test:upgrade-matrix-harness && node scripts/run-test.cjs npm run test:migration-v56-v57 && node scripts/run-test.cjs npm run test:migration-v71-repair && node scripts/run-test.cjs npm run test:migration-v80-cash-drawer-pulse && node scripts/run-test.cjs npm run test:migration-v81-cash-closures && node scripts/run-test.cjs npm run test:master-pin && node scripts/run-test.cjs npm run test:google-drive && node scripts/run-test.cjs npm run test:google-drive-qr-menu && node scripts/run-test.cjs npm run test:qr-menu-settings-tab-refresh && node scripts/run-test.cjs npm run test:database-tools-api && node scripts/run-test.cjs npm run test:phone-validation && node scripts/run-test.cjs npm run test:phone-migration && node scripts/run-test.cjs npm run test:issue-133-kds-kot-toggles && node scripts/run-test.cjs npm run test:whatsapp-schema && node scripts/run-test.cjs npm run test:whatsapp-service && node scripts/run-test.cjs npm run test:whatsapp-middleware && node scripts/run-test.cjs npm run test:issue-127-password-recovery && node scripts/run-test.cjs npm run test:dev-tooling && node scripts/run-test.cjs npm run test:windows-uninstaller && node scripts/run-test.cjs npm run test:shutdown-lifecycle && node scripts/run-test.cjs npm run test:redos-hardening && node scripts/run-test.cjs npm run test:startup-cache && node scripts/run-test.cjs npm run test:service-worker && node scripts/run-test.cjs npm run test:issue-389-timezone-override && node scripts/run-test.cjs npm run test:issue-390-locale-preference-invariants && node scripts/run-test.cjs npm run test:issue-475-picker-highlight && node scripts/run-test.cjs npm run test:theme-mode-settings && node scripts/run-test.cjs npm run test:theme-fouc-script && node scripts/run-test.cjs npm run test:ui-regressions-621-623-626 && node scripts/run-test.cjs npm run test:themed-date-time-inputs && node scripts/run-test.cjs npm run test:issue-zero-balance-settlement && node scripts/run-test.cjs npm run test:daily-sales-export && node scripts/run-test.cjs npm run test:daily-invoices-export && node scripts/run-test.cjs npm run test:customer-sales-export && node scripts/run-test.cjs npm run test:card-transaction-id && node scripts/run-test.cjs npm run test:checkout-quick-tender-and-guards && node scripts/run-test.cjs npm run test:issue-terminal-state-guards && node scripts/run-test.cjs npm run test:issue-exact-balance-settlement && node scripts/run-test.cjs npm run test:financial-safety-remediation && node scripts/run-test.cjs npm run test:issue-payload-and-discount-bounds && node scripts/run-test.cjs npm run test:customer-display-config && node scripts/run-test.cjs npm run test:customer-display-settings-route && node scripts/run-test.cjs npm run test:customer-display-pairing && node scripts/run-test.cjs npm run test:customer-display-feed && node scripts/run-test.cjs npm run test:units && node scripts/run-test.cjs npm run test:db-timing && node scripts/run-test.cjs npm run test:supplies-service && node scripts/run-test.cjs npm run test:recipe-order-lifecycle && node scripts/run-test.cjs npm run test:ingredient-cost && node scripts/run-test.cjs npm run test:lint-engine && node scripts/run-test.cjs npm run test:oxc-contributor-checks && node scripts/run-test.cjs npm run test:expenses && node scripts/run-test.cjs npm run test:diagnostics && node scripts/run-test.cjs npm run test:reports-export && node scripts/run-test.cjs npm run test:category-addon-groups && node scripts/run-test.cjs npm run test:addon-inventory-db && node scripts/run-test.cjs npm run test:addon-inventory-api && node scripts/run-test.cjs npm run test:discount-kitchen-approver-identity && node scripts/run-test.cjs npm run test:staff-approvers-directory && node scripts/run-test.cjs npm run test:local-backup && node scripts/run-test.cjs npm run test:status-messages && npm run test:password-policy && npm run test:cloud-password-recovery && node scripts/run-test.cjs npm run test:scheduled-orders && node scripts/run-test.cjs npm run test:newer-db-recovery && node scripts/run-test.cjs npm run test:multi-counter-ordering && node scripts/run-test.cjs npm run test:hybrid-service-model && node scripts/run-test.cjs npm run test:impact-printer && node scripts/run-test.cjs npm run test:malformed-order-body && node scripts/run-test.cjs npm run test:transport-failure-class", "test:dev-tooling": "tsx --tsconfig tests/tsconfig.json -r ./tests/register-tsx.cjs tests/dev-tooling-scripts.test.ts && npm run test:phase2 && npm run test:runtime-recovery && npm run test:backend-health && npm run test:url-allowlist && npm run test:static-routes", "test:script-coverage": "node scripts/ci/validate-test-script-coverage.cjs && node tests/test-script-coverage.test.cjs && tsx --tsconfig tests/tsconfig.json -r ./tests/register-tsx.cjs tests/test-harness-assertions.test.ts", "test:lint-engine": "tsx --tsconfig tests/tsconfig.json -r ./tests/register-tsx.cjs tests/lint-engine-parity.test.ts", @@ -142,6 +142,7 @@ "test:order-audit-log": "node tests/run-electron-node-test.cjs tests/order-audit-log.test.ts", "test:scheduled-orders": "node tests/run-electron-node-test.cjs tests/issue-360-scheduled-orders.test.ts", "test:multi-counter-ordering": "node tests/run-electron-node-test.cjs tests/multi-counter-ordering.test.ts", + "test:hybrid-service-model": "node tests/run-electron-node-test.cjs tests/hybrid-service-model.test.ts", "test:authz-phase3": "node tests/run-electron-node-test.cjs tests/authz-matrix-phase3.test.ts", "test:authorization-permissions": "tsx --tsconfig tests/tsconfig.json -r ./tests/register-tsx.cjs tests/permission-label-i18n.test.ts && tsx --tsconfig tests/tsconfig.json -r ./tests/register-tsx.cjs tests/permission-matrix-self-access.test.ts && node tests/run-electron-node-test.cjs tests/authorization-permissions.test.ts && node tests/run-electron-node-test.cjs tests/authorization-api.test.ts && node tests/run-electron-node-test.cjs tests/authorization-static-audit.test.ts && node tests/run-electron-node-test.cjs tests/static-audit-posix-paths.test.ts", "test:customer-auth": "node tests/run-electron-node-test.cjs tests/customer-auth.test.ts", diff --git a/shared/order-item-status.ts b/shared/order-item-status.ts index f7e5ebadf9..f383cf034e 100644 --- a/shared/order-item-status.ts +++ b/shared/order-item-status.ts @@ -30,6 +30,12 @@ export type CustomerDisplayProjectedStatus = 'pending' | 'preparing' | 'ready'; export interface OrderItemStatusLike { status?: unknown; quantity?: unknown; + requires_kitchen?: unknown; +} + +/** Lines that never reach the kitchen (ready-made items) carry `requires_kitchen = 0`. */ +export function isKitchenItem(item: { requires_kitchen?: unknown } | null | undefined): boolean { + return item != null && Number(item.requires_kitchen ?? 1) !== 0; } const DELIVERED_ITEM_STATUSES = new Set(['served', 'completed']); @@ -42,7 +48,11 @@ export function deriveOrderStatusFromItems( if (!Array.isArray(items) || items.length === 0) return null; const liveItems = items.filter( - (item) => item != null && !isTerminalItemStatus(item.status) && Number(item.quantity) > 0, + (item) => + item != null && + isKitchenItem(item) && + !isTerminalItemStatus(item.status) && + Number(item.quantity) > 0, ); if (liveItems.length === 0) return null; diff --git a/tests/hybrid-service-model.test.ts b/tests/hybrid-service-model.test.ts new file mode 100644 index 0000000000..d463b2f7e0 --- /dev/null +++ b/tests/hybrid-service-model.test.ts @@ -0,0 +1,290 @@ +/** + * Hybrid service model: ready-made items skip the kitchen, and hybrid venues pay by order type. + * + * Covers: + * - products.requires_kitchen create/update/serialize and validation + * - order lines snapshot the flag; ready-made lines never wait on the kitchen + * - KDS orders and items exclude ready-made lines; ready-made-only orders never reach the board + * - order status derivation and KOT eligibility ignore ready-made lines + * - later catalog edits do not rewrite existing lines + * - service_model 'hybrid' settings validation and per-order-type billing + * + * Usage: node tests/run-electron-node-test.cjs tests/hybrid-service-model.test.ts + */ + +const Module = require('module'); +const originalLoad = Module._load; +const fs = require('fs'); +const os = require('os'); +const path = require('path'); +const testDir = fs.mkdtempSync(path.join(os.tmpdir(), 'flo-hybrid-service-')); + +Module._load = function (request: string, parent: unknown, isMain: boolean) { + if (request === 'electron') { + return { + app: { isPackaged: true, getPath: () => testDir, getVersion: () => 'test' }, + powerMonitor: { on: () => {} }, + }; + } + return originalLoad.apply(this, arguments as any); +}; + +process.env.JWT_SECRET = 'test-secret-hybrid-service-model'; +process.env.KDS_PORT = '0'; + +const { + initTestDb, + createApp, + startServer, + seedOwnerUser, + seedCategory, + seedTable, + api, + assertOrThrow, + assertEqualOrThrow, + getResults, + resetCounters, + closeDatabase, + now, +} = require('./helpers/test-setup'); +const { registerRoutes } = require('../main/routes/index'); +const { stopKdsServer } = require('../main/kds-server'); +const { stopScheduledOrderSweep } = require('../main/services/scheduled-orders'); +const { orderHasKitchenWorkSql } = require('../main/db'); +const { isOrderPrepaid } = require('../main/services/service-model'); +const { deriveOrderStatusFromItems } = require('../shared/order-item-status'); +const { isKotItemPending } = require('../shared/print/document'); + +function setStoreSetting(db: any, key: string, value: string) { + db.prepare( + `INSERT INTO settings (key, value, updated_at) VALUES (?, ?, ?) + ON CONFLICT(key) DO UPDATE SET value = excluded.value, updated_at = excluded.updated_at`, + ).run(key, value, now()); +} + +async function main() { + console.log('='.repeat(66)); + console.log('Hybrid service model: ready-made items and per-order-type billing'); + console.log('='.repeat(66)); + resetCounters(); + + const db = initTestDb(); + const owner = seedOwnerUser(db); + setStoreSetting(db, 'country', 'US'); + setStoreSetting(db, 'currency', 'USD'); + setStoreSetting(db, 'timezone', 'America/New_York'); + setStoreSetting(db, 'kds_enabled', 'true'); + seedCategory(db, 'cat-hy', 'Hybrid Menu'); + seedTable(db, 'tbl-hy-1', 1, 4); + + const app = createApp({}); + registerRoutes(app); + const { baseUrl, server } = await startServer(app); + + async function req(options: { path: string; method?: string; body?: any }) { + const { path: urlPath, ...rest } = options; + const res = await api(baseUrl, urlPath, { ...rest, headers: owner.authHeader }); + return { status: res.status, body: res.data }; + } + + function itemsOf(orderId: string | number) { + return db + .prepare('SELECT product_id, status, requires_kitchen FROM order_items WHERE order_id = ?') + .all(orderId) as Array<{ product_id: string; status: string; requires_kitchen: number }>; + } + + try { + console.log('\n--- 1. Catalog flag ---'); + const dish = await req({ + path: '/api/products', + method: 'POST', + body: { name: 'Grilled Fish', price: 18, category_id: 'cat-hy' }, + }); + assertEqualOrThrow(dish.status, 201, 'kitchen dish is created'); + assertEqualOrThrow(dish.body.product?.requires_kitchen, true, 'new products go to the kitchen'); + + const cola = await req({ + path: '/api/products', + method: 'POST', + body: { name: 'Bottled Cola', price: 3, category_id: 'cat-hy', requires_kitchen: false }, + }); + assertEqualOrThrow(cola.status, 201, 'ready-made item is created'); + assertEqualOrThrow(cola.body.product?.requires_kitchen, false, 'ready-made flag is stored'); + const dishId = dish.body.product.id; + const colaId = cola.body.product.id; + + const badFlag = await req({ + path: '/api/products', + method: 'POST', + body: { name: 'Bad Flag', price: 1, category_id: 'cat-hy', requires_kitchen: 'no' }, + }); + assertEqualOrThrow(badFlag.status, 400, 'non-boolean requires_kitchen is rejected'); + + const listed = await req({ path: '/api/products', method: 'GET' }); + const listedCola = (listed.body.products ?? listed.body.data ?? listed.body).find?.( + (p: any) => p.id === colaId, + ); + assertEqualOrThrow(listedCola?.requires_kitchen, false, 'catalog list exposes the flag'); + + console.log('\n--- 2. Orders snapshot the flag ---'); + const readyOnly = await req({ + path: '/api/orders', + method: 'POST', + body: { type: 'takeaway', items: [{ product_id: colaId, quantity: 2 }] }, + }); + assertEqualOrThrow(readyOnly.status, 201, 'ready-made-only order is created'); + const readyOnlyId = readyOnly.body.order.id; + assertEqualOrThrow( + JSON.stringify(itemsOf(readyOnlyId).map((i) => [i.status, i.requires_kitchen])), + JSON.stringify([['served', 0]]), + 'ready-made line is served and not a kitchen line', + ); + + const kitchenOnly = await req({ + path: '/api/orders', + method: 'POST', + body: { type: 'takeaway', items: [{ product_id: dishId, quantity: 1 }] }, + }); + const kitchenOnlyId = kitchenOnly.body.order.id; + assertEqualOrThrow( + JSON.stringify(itemsOf(kitchenOnlyId).map((i) => [i.status, i.requires_kitchen])), + JSON.stringify([['pending', 1]]), + 'kitchen line stays pending', + ); + + const mixed = await req({ + path: '/api/orders', + method: 'POST', + body: { + type: 'takeaway', + items: [ + { product_id: dishId, quantity: 1 }, + { product_id: colaId, quantity: 1 }, + ], + }, + }); + const mixedId = mixed.body.order.id; + assertEqualOrThrow(itemsOf(mixedId).length, 2, 'mixed order keeps both lines'); + + console.log('\n--- 3. KDS excludes ready-made work ---'); + const kds = await req({ path: '/api/kds/orders', method: 'GET' }); + assertEqualOrThrow(kds.status, 200, 'KDS orders load'); + const kdsById = new Map(kds.body.orders.map((o: any) => [String(o.id), o])); + assertOrThrow(!kdsById.has(String(readyOnlyId)), 'ready-made-only order is not on the KDS'); + assertOrThrow(kdsById.has(String(kitchenOnlyId)), 'kitchen-only order is on the KDS'); + const mixedOnKds = kdsById.get(String(mixedId)); + assertOrThrow(!!mixedOnKds, 'mixed order is on the KDS'); + assertEqualOrThrow( + JSON.stringify((mixedOnKds?.items ?? []).map((i: any) => i.product_id)), + JSON.stringify([dishId]), + 'only the kitchen line is shown for a mixed order', + ); + + const kitchenSqlRows = db + .prepare(`SELECT id FROM orders o WHERE ${orderHasKitchenWorkSql('o')}`) + .all() + .map((row: any) => String(row.id)); + assertOrThrow( + !kitchenSqlRows.includes(String(readyOnlyId)), + 'kitchen-work filter drops the ready-made-only order', + ); + assertOrThrow( + kitchenSqlRows.includes(String(mixedId)) && kitchenSqlRows.includes(String(kitchenOnlyId)), + 'kitchen-work filter keeps orders with a kitchen line', + ); + + console.log('\n--- 4. Status derivation and KOT eligibility ---'); + assertEqualOrThrow( + deriveOrderStatusFromItems(itemsOf(readyOnlyId)), + null, + 'ready-made-only order derives no kitchen status', + ); + assertEqualOrThrow( + deriveOrderStatusFromItems(itemsOf(mixedId).map((i) => ({ ...i, quantity: 1 }))), + 'pending', + 'a served ready-made line does not start a mixed order', + ); + assertEqualOrThrow( + deriveOrderStatusFromItems([{ status: 'ready', quantity: 1 }]), + 'ready', + 'legacy rows without the flag still derive normally', + ); + assertOrThrow( + itemsOf(readyOnlyId).every((i) => !isKotItemPending(i.status)), + 'ready-made lines are never pending for a kitchen ticket', + ); + assertOrThrow( + itemsOf(kitchenOnlyId).every((i) => isKotItemPending(i.status)), + 'kitchen lines still print on the kitchen ticket', + ); + + console.log('\n--- 5. Catalog edits do not rewrite history ---'); + const flip = await req({ + path: `/api/products/${colaId}`, + method: 'PUT', + body: { requires_kitchen: true }, + }); + assertEqualOrThrow(flip.status, 200, 'flag can be flipped'); + assertEqualOrThrow(flip.body.product?.requires_kitchen, true, 'updated flag is returned'); + assertEqualOrThrow( + itemsOf(readyOnlyId)[0].requires_kitchen, + 0, + 'an existing line keeps the flag it was sold with', + ); + const afterFlip = await req({ + path: '/api/orders', + method: 'POST', + body: { type: 'takeaway', items: [{ product_id: colaId, quantity: 1 }] }, + }); + assertEqualOrThrow( + itemsOf(afterFlip.body.order.id)[0].status, + 'pending', + 'new lines follow the current flag', + ); + + console.log('\n--- 6. Hybrid billing and settings ---'); + const badModel = await req({ + path: '/api/settings/business', + method: 'PUT', + body: { service_model: 'banquet' }, + }); + assertEqualOrThrow(badModel.status, 400, 'unknown service model is rejected'); + + setStoreSetting(db, 'billing_type', 'postpaid'); + setStoreSetting(db, 'service_model', 'finedine'); + assertEqualOrThrow(isOrderPrepaid(db, 'takeaway'), false, 'postpaid venue stays postpaid'); + setStoreSetting(db, 'billing_type', 'prepaid'); + setStoreSetting(db, 'service_model', 'qsr'); + assertEqualOrThrow(isOrderPrepaid(db, 'dine_in'), true, 'prepaid venue stays prepaid'); + + setStoreSetting(db, 'tables_required', 'false'); + const hybrid = await req({ + path: '/api/settings/business', + method: 'PUT', + body: { service_model: 'hybrid' }, + }); + assertEqualOrThrow(hybrid.status, 200, 'hybrid can be enabled'); + assertEqualOrThrow(hybrid.body.service_model, 'hybrid', 'service model is reported'); + assertEqualOrThrow(hybrid.body.tables_required, true, 'hybrid keeps tables for dine-in'); + assertEqualOrThrow(isOrderPrepaid(db, 'takeaway'), true, 'hybrid counter orders are prepaid'); + assertEqualOrThrow(isOrderPrepaid(db, 'delivery'), true, 'hybrid delivery orders are prepaid'); + assertEqualOrThrow(isOrderPrepaid(db, 'dine_in'), false, 'hybrid table orders are postpaid'); + + const results = getResults(); + console.log('\n' + '='.repeat(66)); + console.log(`Hybrid service model results: Passed ${results.passed}/${results.total}`); + assertEqualOrThrow(results.failed, 0, 'zero failed assertions'); + } finally { + stopScheduledOrderSweep(); + await stopKdsServer(); + await new Promise((resolve) => server.close(() => resolve())); + closeDatabase(); + Module._load = originalLoad; + fs.rmSync(testDir, { recursive: true, force: true }); + } +} + +main().catch((err) => { + console.error('Hybrid service model test failed:', err); + process.exit(1); +}); diff --git a/tests/upgrade-path.test.ts b/tests/upgrade-path.test.ts index d236bf1819..1670c657b8 100644 --- a/tests/upgrade-path.test.ts +++ b/tests/upgrade-path.test.ts @@ -1436,6 +1436,68 @@ function main() { console.log(' ✓ v125 adds printers.profile_id and preserves existing printers with NULL'); closeDatabase(); + // ── v126: add_requires_kitchen on products and order_items ──────────────── + const requiresKitchenMigrationIndex = MIGRATIONS.findIndex( + (migration: any) => migration.name === 'add_requires_kitchen', + ); + assert.ok(requiresKitchenMigrationIndex > 0, 'the add_requires_kitchen migration is registered'); + assert.equal( + MIGRATIONS[requiresKitchenMigrationIndex].version, + 126, + 'the add_requires_kitchen migration is v126', + ); + const v125SnapDb = buildIdealSchemaDb(125); + try { + const preV126ProductCols = ( + v125SnapDb.prepare('PRAGMA table_info(products)').all() as Array<{ name: string }> + ).map((col) => col.name); + assert.ok( + !preV126ProductCols.includes('requires_kitchen'), + 'v125 products schema must not include requires_kitchen', + ); + v125SnapDb + .prepare( + `INSERT INTO products (id, name, price, created_at, updated_at) + VALUES ('prod-pre-v126', 'Legacy Dish', 9.5, '2026-11-01 09:00:00', '2026-11-01 09:00:00')`, + ) + .run(); + fs.writeFileSync(upgradeDbPath, v125SnapDb.serialize()); + } finally { + v125SnapDb.close(); + } + + initDatabase(); + const postRequiresKitchenDb = getDatabase(); + assert.equal(getCurrentSchemaVersion(), latestSchemaVersion); + for (const table of ['products', 'order_items']) { + const columns = postRequiresKitchenDb.prepare(`PRAGMA table_info(${table})`).all() as Array<{ + name: string; + dflt_value: string | null; + notnull: number; + }>; + const column = columns.find((col) => col.name === 'requires_kitchen'); + assert.ok(column, `v126 adds ${table}.requires_kitchen during upgrade from v125`); + assert.equal(column?.notnull, 1, `${table}.requires_kitchen is NOT NULL`); + assert.equal(String(column?.dflt_value), '1', `${table}.requires_kitchen defaults to 1`); + } + const migratedProduct = postRequiresKitchenDb + .prepare(`SELECT id, requires_kitchen FROM products WHERE id = 'prod-pre-v126'`) + .get(); + assert.deepEqual( + migratedProduct, + { id: 'prod-pre-v126', requires_kitchen: 1 }, + 'existing pre-v126 products keep going to the kitchen', + ); + assert.equal( + runHealthCheck().findings.length, + 0, + 'runHealthCheck() reports zero drift after v126', + ); + console.log( + ' ✓ v126 adds requires_kitchen and keeps every existing product on the kitchen path', + ); + closeDatabase(); + console.log('='.repeat(60)); console.log('✅ Upgrade-path regression test passed'); } From 28e51b60457d40e75f740c1f0efd7a8be30a42de Mon Sep 17 00:00:00 2001 From: Bankim Date: Thu, 26 Nov 2026 00:48:25 +0530 Subject: [PATCH 2/3] test: follow the v126 schema version and the pos-settings store helpers Co-Authored-By: Claude Sonnet 5.5 --- tests/backup-restore-production.test.ts | 4 ++-- tests/pin-quick-switch.test.ts | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/backup-restore-production.test.ts b/tests/backup-restore-production.test.ts index 9eb0d184f9..46ab3e7765 100644 --- a/tests/backup-restore-production.test.ts +++ b/tests/backup-restore-production.test.ts @@ -1560,8 +1560,8 @@ async function run() { initDatabase(); assert.equal( getCurrentSchemaVersion(), - 125, - 'interrupted v114 replacement recovered and migrated to v125', + 126, + 'interrupted v114 replacement recovered and migrated to v126', ); assert.equal( fs.existsSync(journalPath), diff --git a/tests/pin-quick-switch.test.ts b/tests/pin-quick-switch.test.ts index bcb5b928e2..8411b74352 100644 --- a/tests/pin-quick-switch.test.ts +++ b/tests/pin-quick-switch.test.ts @@ -326,7 +326,12 @@ Module._load = function (reqName: string, parent: unknown, isMain: boolean) { }; } if (reqName === '@/store/pos-settings') { - return { usePosSettingsStore: mockPosSettingsStoreFn }; + return { + usePosSettingsStore: mockPosSettingsStoreFn, + isPrepaidBilling: (billingType: string) => billingType === 'prepaid', + normalizeServiceModel: (value: unknown) => + value === 'qsr' || value === 'hybrid' ? value : 'finedine', + }; } if (reqName === '@/components/pos/PrepaidCheckoutModal') { return { __esModule: true, default: PrepaidCheckoutModalStub }; From a523f3c41a8ae1188dc4496fe64759a735c348ec Mon Sep 17 00:00:00 2001 From: Bankim Date: Thu, 26 Nov 2026 00:57:48 +0530 Subject: [PATCH 3/3] test(e2e): bump database import fixture to schema version 126 Co-Authored-By: Claude Sonnet 5.5 --- frontend/e2e/database-export-import.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/e2e/database-export-import.spec.ts b/frontend/e2e/database-export-import.spec.ts index da092771a7..d855393c84 100644 --- a/frontend/e2e/database-export-import.spec.ts +++ b/frontend/e2e/database-export-import.spec.ts @@ -211,7 +211,7 @@ test.describe('Database Settings JSON Export and Import', () => { const contaminatedPayload = { app: 'FloDesktop', - schema_version: '125', + schema_version: '126', data: { settings: [], categories: [],