From 55a96d16f63f37420061ec746ca5ef132323389f Mon Sep 17 00:00:00 2001 From: evenegas Date: Thu, 2 Oct 2025 10:48:26 -0600 Subject: [PATCH] plantilla --- src/cuestionario/cuestionario.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cuestionario/cuestionario.service.ts b/src/cuestionario/cuestionario.service.ts index eab913d..88d6e15 100644 --- a/src/cuestionario/cuestionario.service.ts +++ b/src/cuestionario/cuestionario.service.ts @@ -133,9 +133,14 @@ export class CuestionarioService { ?.filter(qRow => qRow.getCell(2).value === row.getCell(1).value) || []; for (const qRow of cuestionarios) { + + const plantilla = qRow.getCell(9).value ? Number(qRow.getCell(9).value) : null; - + console.log("Valor de la plantilla: ", plantilla); + if (plantilla !== null && plantilla !== undefined) { + console.log("Tipo de la plantilla: ", PLANTILLA_MAP[plantilla]); + } if (plantilla && PLANTILLA_MAP[plantilla]) { const fecha_inicio = new Date(qRow.getCell(4).value as string); const fecha_fin = new Date(qRow.getCell(5).value as string);