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",
"Invalid NIF for VIES": "Invalid NIF for VIES",
"Ticket does not exist": "Este ticket no existe",
"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"
"Ticket is already signed": "Este ticket ya ha sido firmado"
}

View File

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