fix(api): mapeia campos completos de OrderSummary no DashboardService
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -92,9 +92,13 @@ export class DashboardService {
|
|||||||
clientName: o.client.name,
|
clientName: o.client.name,
|
||||||
repId: o.repId,
|
repId: o.repId,
|
||||||
status: o.status,
|
status: o.status,
|
||||||
|
subtotal: String(o.subtotal),
|
||||||
total: String(o.total),
|
total: String(o.total),
|
||||||
discountPct: String(o.discountPct),
|
discountPct: String(o.discountPct),
|
||||||
issuedAt: o.issuedAt.toISOString(),
|
issuedAt: o.issuedAt.toISOString(),
|
||||||
|
approvedAt: o.approvedAt?.toISOString() ?? null,
|
||||||
|
invoicedAt: o.invoicedAt?.toISOString() ?? null,
|
||||||
|
cancelledAt: o.cancelledAt?.toISOString() ?? null,
|
||||||
})),
|
})),
|
||||||
clientesInativos: inactiveClients.map((c) => ({
|
clientesInativos: inactiveClients.map((c) => ({
|
||||||
id: c.id,
|
id: c.id,
|
||||||
@@ -162,9 +166,13 @@ export class DashboardService {
|
|||||||
clientName: o.client.name,
|
clientName: o.client.name,
|
||||||
repId: o.repId,
|
repId: o.repId,
|
||||||
status: o.status,
|
status: o.status,
|
||||||
|
subtotal: String(o.subtotal),
|
||||||
total: String(o.total),
|
total: String(o.total),
|
||||||
discountPct: String(o.discountPct),
|
discountPct: String(o.discountPct),
|
||||||
issuedAt: o.issuedAt.toISOString(),
|
issuedAt: o.issuedAt.toISOString(),
|
||||||
|
approvedAt: o.approvedAt?.toISOString() ?? null,
|
||||||
|
invoicedAt: o.invoicedAt?.toISOString() ?? null,
|
||||||
|
cancelledAt: o.cancelledAt?.toISOString() ?? null,
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user