Skip to content

Commit

Permalink
(FEAT) CIT - Turnos profesional
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanIRamirez committed Dec 30, 2024
1 parent 3d11d3d commit febe499
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/turnos/controller/agenda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,10 @@ export function actualizarTurnos(agenda) {
const cantAccesoDirecto = agenda.bloques[j].accesoDirectoDelDia + agenda.bloques[j].accesoDirectoProgramado;

if (cantAccesoDirecto > 0) {
agenda.bloques[j].restantesProgramados = agenda.bloques[j].restantesProgramados + agenda.bloques[j].restantesGestion + agenda.bloques[j].restantesProfesional;
agenda.bloques[j].restantesGestion = 0;
agenda.bloques[j].restantesProfesional = 0;
} else {
// agenda.bloques[j].restantesProgramados = agenda.bloques[j].restantesProgramados + agenda.bloques[j].restantesGestion + agenda.bloques[j].restantesProfesional;
// agenda.bloques[j].restantesGestion = 0;
// agenda.bloques[j].restantesProfesional = 0;
// } else {
if (agenda.bloques[j].reservadoProfesional > 0) {
agenda.bloques[j].restantesGestion = agenda.bloques[j].restantesGestion + agenda.bloques[j].restantesProfesional;
agenda.bloques[j].restantesProfesional = 0;
Expand Down

0 comments on commit febe499

Please sign in to comment.