feat(POS-FIX-12): completed feature

This commit is contained in:
chattie
2026-08-24 08:42:41 +02:00
parent d103b634aa
commit 23d2554dd0
11 changed files with 132 additions and 9 deletions

View File

@@ -96,9 +96,6 @@ export const posApi = {
/** Delete a pending parked sale and restore inventory. */
deleteSale: <T>(orderId: string) =>
apiFetch<T>(`/pos/sales/${encodeURIComponent(orderId)}`, { method: 'DELETE' }),
/** List order items (used for recovering a parked sale). */
listOrderItems: <T>(orderId: string) =>
apiFetch<T>(`/pos/sales/${encodeURIComponent(orderId)}/items`),
/** Email the immutable generated receipt. */
emailReceipt: <T>(orderId: string, email: string) =>
apiFetch<T>(`/pos/sales/${encodeURIComponent(orderId)}/receipt/email`, {