From a9c15ac4ec40ddfdccf889e0e6ebb4fc31505dc1 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 28 May 2026 00:46:32 +0000 Subject: [PATCH] fix(api): mapeia campos completos de OrderSummary no DashboardService Co-Authored-By: Claude Sonnet 4.6 --- apps/api/src/app/dashboard/dashboard.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/api/src/app/dashboard/dashboard.service.ts b/apps/api/src/app/dashboard/dashboard.service.ts index bee638d..4bff836 100644 --- a/apps/api/src/app/dashboard/dashboard.service.ts +++ b/apps/api/src/app/dashboard/dashboard.service.ts @@ -92,9 +92,13 @@ export class DashboardService { clientName: o.client.name, repId: o.repId, status: o.status, + subtotal: String(o.subtotal), total: String(o.total), discountPct: String(o.discountPct), issuedAt: o.issuedAt.toISOString(), + approvedAt: o.approvedAt?.toISOString() ?? null, + invoicedAt: o.invoicedAt?.toISOString() ?? null, + cancelledAt: o.cancelledAt?.toISOString() ?? null, })), clientesInativos: inactiveClients.map((c) => ({ id: c.id, @@ -162,9 +166,13 @@ export class DashboardService { clientName: o.client.name, repId: o.repId, status: o.status, + subtotal: String(o.subtotal), total: String(o.total), discountPct: String(o.discountPct), issuedAt: o.issuedAt.toISOString(), + approvedAt: o.approvedAt?.toISOString() ?? null, + invoicedAt: o.invoicedAt?.toISOString() ?? null, + cancelledAt: o.cancelledAt?.toISOString() ?? null, }); return {