diff --git a/modules/worker/front/calendar/index.js b/modules/worker/front/calendar/index.js
index 4ca0fc9297..4b07a2e98a 100644
--- a/modules/worker/front/calendar/index.js
+++ b/modules/worker/front/calendar/index.js
@@ -64,8 +64,7 @@ class Controller extends Section {
set worker(value) {
this._worker = value;
-
- if (value) {
+ if (value && value.hasWorkCenter) {
this.getIsSubordinate();
this.getActiveContract();
}
diff --git a/modules/worker/front/calendar/locale/es.yml b/modules/worker/front/calendar/locale/es.yml
index bd75458aab..50bb4bb526 100644
--- a/modules/worker/front/calendar/locale/es.yml
+++ b/modules/worker/front/calendar/locale/es.yml
@@ -11,4 +11,5 @@ Choose an absence type from the right menu: Elige un tipo de ausencia desde el m
To start adding absences, click an absence type from the right menu and then on the day you want to add an absence: Para empezar a añadir ausencias, haz clic en un tipo de ausencia desde el menu de la derecha y después en el día que quieres añadir la ausencia
You can just add absences within the current year: Solo puedes añadir ausencias dentro del año actual
Current day: Día actual
-Paid holidays: Vacaciones pagadas
\ No newline at end of file
+Paid holidays: Vacaciones pagadas
+Autonomous worker: Trabajador autónomo
diff --git a/modules/worker/front/card/index.js b/modules/worker/front/card/index.js
index 415b607874..dacdc954ad 100644
--- a/modules/worker/front/card/index.js
+++ b/modules/worker/front/card/index.js
@@ -34,6 +34,8 @@ class Controller extends ModuleCard {
this.$http.get(`Workers/${this.$params.id}`, {filter})
.then(res => this.worker = res.data);
+ this.$http.get(`Workers/${this.$params.id}/activeContract`)
+ .then(res => this.worker.hasWorkCenter = res.data.workCenterFk);
}
}
diff --git a/modules/worker/front/time-control/index.html b/modules/worker/front/time-control/index.html
index 044ea4038a..d3a4b5640d 100644
--- a/modules/worker/front/time-control/index.html
+++ b/modules/worker/front/time-control/index.html
@@ -4,211 +4,219 @@
filter="::$ctrl.filter"
data="$ctrl.hours">
-
-
-
-
-
-