From e27afc4e76179dd79f5c3beec068462e842cc6e6 Mon Sep 17 00:00:00 2001 From: 230417 <230417@epvc.pt> Date: Tue, 16 Jun 2026 15:43:38 +0100 Subject: [PATCH] feat: show customer name on product orders --- web/src/pages/Dashboard.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx index 5bd86a8..e3f40ed 100644 --- a/web/src/pages/Dashboard.tsx +++ b/web/src/pages/Dashboard.tsx @@ -984,6 +984,7 @@ function DashboardInner({ shop }: { shop: BarberShop }) { const prod = shop.products.find((p) => p.id === item.refId); return sum + (prod?.price ?? 0) * item.qty; }, 0); + const customer = users.find(u => u.id === o.customerId); return (
{new Date(o.createdAt).toLocaleString('pt-BR')}
+Cliente: {customer?.name || 'Cliente'}
+{new Date(o.createdAt).toLocaleString('pt-PT')}
+