diff --git a/mvp/b2c/src/app/panel/[id]/page.tsx b/mvp/b2c/src/app/panel/[id]/page.tsx index 49533fc..04d6763 100644 --- a/mvp/b2c/src/app/panel/[id]/page.tsx +++ b/mvp/b2c/src/app/panel/[id]/page.tsx @@ -10,6 +10,8 @@ import { formatEuros, formatFecha, } from '@/lib/funnel'; +import { recalcularPresupuesto } from '../actions'; +import type { BudgetResult } from '@/budget/types'; export const dynamic = 'force-dynamic'; @@ -30,6 +32,9 @@ export default async function LeadDetailPage({ params }: { params: Promise<{ id: const { lead, fotos, eventos, precision } = data; const reachedStages = new Set(eventos.map((e) => e.stage)); + const snapshot = lead.desgloseSnapshot as { result: BudgetResult } | null; + const desglose = snapshot?.result ?? null; + return (
| Partida | +Importe | +
|---|---|
| {partida.label} | ++ {formatEuros(partida.importe)} + | +
+ Presupuesto orientativo. El precio final puede variar según la visita técnica. +
+Aún no se ha calculado el presupuesto.
+ )} +