-
{{::action.sale.itemFk | zeroFill:6}}
-
{{::action.sale.ticket.id}}
@@ -258,9 +272,9 @@
vn-id="item-descriptor"
warehouse-fk="$ctrl.vnConfig.warehouseFk">
-
-
-
\ No newline at end of file
+
diff --git a/modules/worker/back/model-config.json b/modules/worker/back/model-config.json
index c155e331d..8c11c0d71 100644
--- a/modules/worker/back/model-config.json
+++ b/modules/worker/back/model-config.json
@@ -64,6 +64,9 @@
},
"WorkerTimeControlMail": {
"dataSource": "vn"
+ },
+ "WorkerDisableExcluded": {
+ "dataSource": "vn"
}
}
diff --git a/modules/worker/back/models/workerDisableExcluded.json b/modules/worker/back/models/workerDisableExcluded.json
new file mode 100644
index 000000000..48083748d
--- /dev/null
+++ b/modules/worker/back/models/workerDisableExcluded.json
@@ -0,0 +1,26 @@
+{
+ "name": "WorkerDisableExcluded",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "workerDisableExcluded"
+ }
+ },
+ "properties": {
+ "workerFk": {
+ "id": true,
+ "type": "number"
+ },
+ "dated": {
+ "type": "date"
+ }
+ },
+ "acls": [
+ {
+ "accessType": "READ",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/modules/worker/front/descriptor/index.html b/modules/worker/front/descriptor/index.html
index 01681ebb8..58ac3d9e6 100644
--- a/modules/worker/front/descriptor/index.html
+++ b/modules/worker/front/descriptor/index.html
@@ -14,6 +14,20 @@
+
+
+ Click to exclude the user from getting disabled
+
+
+ Click to allow the user to be disabled
+
+
+
+
+
+
{
+ this.excluded = data.data.exists;
+ });
+ }
+
+ handleExcluded() {
+ if (this.excluded) {
+ this.$http.delete(`workerDisableExcludeds/${this.entity.id}`);
+ this.excluded = false;
+ } else {
+ this.$http.post(`workerDisableExcludeds`, {workerFk: this.entity.id, dated: new Date});
+ this.excluded = true;
+ }
}
loadData() {
diff --git a/modules/worker/front/locale/es.yml b/modules/worker/front/locale/es.yml
index 1414d089b..672f4c52f 100644
--- a/modules/worker/front/locale/es.yml
+++ b/modules/worker/front/locale/es.yml
@@ -20,4 +20,7 @@ View worker: Ver trabajador
Worker id: Id trabajador
Workers: Trabajadores
worker: trabajador
-Go to the worker: Ir al trabajador
\ No newline at end of file
+Go to the worker: Ir al trabajador
+Click to exclude the user from getting disabled: Marcar para no deshabilitar
+Click to allow the user to be disabled: Marcar para deshabilitar
+This user can't be disabled: Fijado para no deshabilitar
\ No newline at end of file
diff --git a/package.json b/package.json
index f85af904c..ae4817ab0 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"bcrypt": "^5.0.1",
"bmp-js": "^0.1.0",
"compression": "^1.7.3",
+ "form-data": "^4.0.0",
"fs-extra": "^5.0.0",
"ftps": "^1.2.0",
"got": "^10.7.0",
diff --git a/print/templates/email/claim-pickup-order/claim-pickup-order.html b/print/templates/email/claim-pickup-order/claim-pickup-order.html
index f674dcee8..32606bd7b 100644
--- a/print/templates/email/claim-pickup-order/claim-pickup-order.html
+++ b/print/templates/email/claim-pickup-order/claim-pickup-order.html
@@ -23,9 +23,10 @@