Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
});
Expand All @@ -633,15 +634,15 @@ 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;
}
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');
}
});
}
Expand Down