refs #5688 ya no muestra mensaje de error
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-06-15 14:16:26 +02:00
parent b7b6f413ba
commit 55990869e2
2 changed files with 2 additions and 6 deletions

View File

@ -293,6 +293,5 @@
"Pass expired": "La contraseña ha caducado, cambiela desde Salix", "Pass expired": "La contraseña ha caducado, cambiela desde Salix",
"Invalid NIF for VIES": "Invalid NIF for VIES", "Invalid NIF for VIES": "Invalid NIF for VIES",
"Ticket does not exist": "Este ticket no existe", "Ticket does not exist": "Este ticket no existe",
"Ticket is already signed": "Este ticket ya ha sido firmado", "Ticket is already signed": "Este ticket ya ha sido firmado"
"This worker does not have a work center": "Este trabajador no tiene centro de trabajo"
} }

View File

@ -117,10 +117,7 @@ module.exports = Self => {
absences.push(absence); absences.push(absence);
} }
const workCenter = contract.workCenter(); for (let day of contract.workCenter().holidays()) {
if (!workCenter) throw new UserError(`This worker does not have a work center`);
for (let day of workCenter.holidays()) {
day.dated = new Date(day.dated); day.dated = new Date(day.dated);
day.dated.setHours(0, 0, 0, 0); day.dated.setHours(0, 0, 0, 0);