From c1091eb77ac562baf20c5a79aee7ff45a0dfd877 Mon Sep 17 00:00:00 2001 From: MarianoCampetella Date: Wed, 7 Jan 2026 15:33:36 -0300 Subject: [PATCH] =?UTF-8?q?Agregar=20informaci=C3=B3n=20en=20el=20solapami?= =?UTF-8?q?ento=20de=20agendas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operaciones-agenda/planificar-agenda.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/components/turnos/gestor-agendas/operaciones-agenda/planificar-agenda.component.ts b/src/app/components/turnos/gestor-agendas/operaciones-agenda/planificar-agenda.component.ts index ad53312b44..8549d9af17 100644 --- a/src/app/components/turnos/gestor-agendas/operaciones-agenda/planificar-agenda.component.ts +++ b/src/app/components/turnos/gestor-agendas/operaciones-agenda/planificar-agenda.component.ts @@ -611,7 +611,8 @@ export class PlanificarAgendaComponent implements OnInit { return agenda.id !== this.modelo.id || !this.modelo.id; }); if (agds.length > 0) { - this.alertaProfesional = 'El profesional ' + profesional.nombre + ' ' + profesional.apellido + ' está asignado a otra agenda en ese horario'; + this.alertaProfesional = 'El profesional ' + profesional.nombre + ' ' + profesional.apellido + ' está asignado a otra agenda en el día ' + moment(agds[0].horaInicio).format('DD/MM/YYYY') + + ' en el rango horario de ' + moment(agds[0].horaInicio).format('HH:mm') + ' a ' + moment(agds[0].horaFin).format('HH:mm') + ' dentro del efector ' + agds[0].organizacion.nombre; } }); }); @@ -633,7 +634,6 @@ export class PlanificarAgendaComponent implements OnInit { return agenda.id !== this.modelo.id || !this.modelo.id; }); if (agds.length > 0) { - let ef = this.modelo.espacioFisico.nombre; if (this.modelo.espacioFisico.servicio && this.modelo.espacioFisico.servicio.nombre) { ef = ef + this.modelo.espacioFisico.servicio.nombre; @@ -641,7 +641,8 @@ export class PlanificarAgendaComponent implements OnInit { if (this.modelo.espacioFisico.edificio && this.modelo.espacioFisico.edificio.descripcion) { ef = ef + this.modelo.espacioFisico.edificio.descripcion; } - this.alertaEspacioFisico = 'El ' + ef + ' está asignado a otra agenda en ese rango horario'; + this.alertaEspacioFisico = 'El ' + ef + ' está asignado en otra agenda el día ' + moment(agds[0].horaInicio).format('DD/MM/YYYY') + + ' en el rango horario de ' + moment(agds[0].horaInicio).format('HH:mm') + ' a ' + moment(agds[0].horaFin).format('HH:mm'); } }); }