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 (
@@ -1005,7 +1006,10 @@ function DashboardInner({ shop }: { shop: BarberShop }) { ))}
-

{new Date(o.createdAt).toLocaleString('pt-BR')}

+
+

Cliente: {customer?.name || 'Cliente'}

+

{new Date(o.createdAt).toLocaleString('pt-PT')}

+
{productItems.map((item) => { const prod = shop.products.find((p) => p.id === item.refId);