feat(F-182): completed feature

This commit is contained in:
chattie
2026-08-22 19:25:12 +02:00
parent 2985d7274a
commit b860e8d1df
14 changed files with 361 additions and 25 deletions

View File

@@ -41,6 +41,8 @@ export const posApi = {
method: 'POST',
body: JSON.stringify({ openingCashCents }),
}),
/** Load touch category navigation and four terminal quick products. */
touchCatalog: <T>() => apiFetch<T>('/pos/catalog/touch'),
/** List products by query. */
searchProducts: (q: string, storeId?: string, limit = 20) =>
apiFetch(`/pos/products/search?q=${encodeURIComponent(q)}&storeId=${storeId ?? ''}&limit=${limit}`),