Skip to content

Commit

Permalink
fix(RUP): setea x defecto solicitud rup sin profesional
Browse files Browse the repository at this point in the history
  • Loading branch information
plammel committed Jun 10, 2020
1 parent ba54160 commit cae380d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/rup/routes/prestacion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ router.patch('/prestaciones/:id', (req, res, next) => {
}

updateRegistroHistorialSolicitud(data.solicitud, 'asignacionProfesional');
} else if(req.body.estado.tipo === 'ejecucion' && !data.solicitud.profesional.id) { // si se ejecuta una solicitud que viene de rup sin profesional, se lo setea por defecto
data.solicitud.profesional = Auth.getProfesional(req);
}
}
if (req.body.registros) {
Expand Down

0 comments on commit cae380d

Please sign in to comment.