Replace entire repo content with correct code from /root/shahikitchen-website/

This commit is contained in:
root
2026-06-29 16:22:09 +00:00
parent 57cc67d2d3
commit 50e3a34895
723 changed files with 20055 additions and 26101 deletions
@@ -0,0 +1,28 @@
import type { Branch } from '@/domain/table/table-id';
import type { OrderLine } from '@/domain/shared/order-line';
export interface TableOrderPayload {
branch: Branch;
tableNumber: string;
tableIdentifier: string;
items: OrderLine[];
notes?: string;
createdAt: string;
}
export function buildTableOrderPayload(
branch: Branch,
tableNumber: string,
tableIdentifier: string,
items: OrderLine[],
notes?: string
): TableOrderPayload {
return {
branch,
tableNumber,
tableIdentifier,
items,
notes: notes?.trim() || undefined,
createdAt: new Date().toISOString(),
};
}