fix the loading sheet view

This commit is contained in:
2026-09-24 17:23:31 +05:30
parent be38777ebb
commit e8692b2474
8 changed files with 470 additions and 164 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ export const shopPos = {
confirmAndCreateInvoice: (id: string, confirmedByUserId?: string | null) =>
api.post<ShopPOResponse>(`/shop-pos/${id}/confirm-and-create-invoice`, { confirmedByUserId }).then(r => r.data),
cancel: (id: string) =>
api.post<ShopPOResponse>(`/shop-pos/${id}/cancel`).then(r => r.data),
cancel: (id: string, reason: string, cancelledByUserId?: string | null) =>
api.post<ShopPOResponse>(`/shop-pos/${id}/cancel`, { reason, cancelledByUserId }).then(r => r.data),
}
// ─── Invoices ─────────────────────────────────────────────────────────────────