5688-worker.calendar_workCenter #1580
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue