+ label="Buyer">
+
+ {{$ctrl.item.itemType.worker.user.name}}
+
+
+
\ No newline at end of file
diff --git a/modules/item/front/index/index.html b/modules/item/front/index/index.html
index eaef0f34f..01128ed74 100644
--- a/modules/item/front/index/index.html
+++ b/modules/item/front/index/index.html
@@ -70,11 +70,11 @@
{{::item.intrastat}}
{{::item.origin}}
-
+
- {{::item.userNickname}}
+ {{::item.userName}}
{{::item.density}}
diff --git a/modules/item/front/summary/index.html b/modules/item/front/summary/index.html
index 938005828..bf9ab9445 100644
--- a/modules/item/front/summary/index.html
+++ b/modules/item/front/summary/index.html
@@ -36,8 +36,12 @@
-
+
+
+ {{$ctrl.summary.item.itemType.worker.user.name}}
+
@@ -105,4 +109,7 @@
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/modules/order/front/card/index.js b/modules/order/front/card/index.js
index d154b0b52..33012d0f6 100644
--- a/modules/order/front/card/index.js
+++ b/modules/order/front/card/index.js
@@ -37,7 +37,7 @@ class Controller extends ModuleCard {
include: {
relation: 'user',
scope: {
- fields: ['nickname']
+ fields: ['name']
}
}
}
diff --git a/modules/order/front/descriptor/index.html b/modules/order/front/descriptor/index.html
index b16470bf2..e9f1684e5 100644
--- a/modules/order/front/descriptor/index.html
+++ b/modules/order/front/descriptor/index.html
@@ -15,8 +15,12 @@
value="{{$ctrl.$t($ctrl.order.isConfirmed ? 'Confirmed' : 'Not confirmed')}}">
+ label="Sales person">
+
+ {{$ctrl.order.client.salesPerson.user.name}}
+
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/modules/route/back/methods/route/filter.js b/modules/route/back/methods/route/filter.js
index eeeef1dac..c96f856f0 100644
--- a/modules/route/back/methods/route/filter.js
+++ b/modules/route/back/methods/route/filter.js
@@ -119,7 +119,7 @@ module.exports = Self => {
r.m3,
r.description,
am.name agencyName,
- u.nickname AS workerNickname,
+ u.name AS workerUserName,
v.numberPlate AS vehiclePlateNumber
FROM route r
LEFT JOIN agencyMode am ON am.id = r.agencyModeFk
@@ -128,7 +128,6 @@ module.exports = Self => {
LEFT JOIN account.user u ON u.id = w.userFk`
);
-
stmt.merge(conn.makeSuffix(filter));
let itemsIndex = stmts.push(stmt) - 1;
diff --git a/modules/route/back/methods/route/specs/summary.spec.js b/modules/route/back/methods/route/specs/summary.spec.js
index ba976ae94..a9516f7c5 100644
--- a/modules/route/back/methods/route/specs/summary.spec.js
+++ b/modules/route/back/methods/route/specs/summary.spec.js
@@ -25,7 +25,7 @@ describe('route summary()', () => {
const result = await app.models.Route.summary(1);
const worker = result.route.worker().user();
- expect(worker.nickname).toEqual('deliveryNick');
+ expect(worker.name).toEqual('delivery');
});
it(`should return a summary object containing data from the tickets`, async() => {
diff --git a/modules/route/back/methods/route/summary.js b/modules/route/back/methods/route/summary.js
index 0a8710e88..52927d974 100644
--- a/modules/route/back/methods/route/summary.js
+++ b/modules/route/back/methods/route/summary.js
@@ -38,7 +38,7 @@ module.exports = Self => {
{
relation: 'user',
scope: {
- fields: ['id', 'nickname']
+ fields: ['id', 'name']
}
}
]
diff --git a/modules/route/front/index/index.html b/modules/route/front/index/index.html
index 76938d9cf..d095fed09 100644
--- a/modules/route/front/index/index.html
+++ b/modules/route/front/index/index.html
@@ -38,7 +38,7 @@
- {{::route.workerNickname}}
+ {{::route.workerUserName}}
{{::route.agencyName | dashIfEmpty}}
diff --git a/modules/route/front/summary/index.html b/modules/route/front/summary/index.html
index b2c9255e0..4c45d3985 100644
--- a/modules/route/front/summary/index.html
+++ b/modules/route/front/summary/index.html
@@ -14,8 +14,12 @@
-
+
+
+ {{$ctrl.summary.route.worker.user.name}}
+
@@ -106,3 +110,6 @@
+
+
diff --git a/modules/ticket/back/methods/ticket/summary.js b/modules/ticket/back/methods/ticket/summary.js
index 79a7c24d9..434cf5624 100644
--- a/modules/ticket/back/methods/ticket/summary.js
+++ b/modules/ticket/back/methods/ticket/summary.js
@@ -63,7 +63,7 @@ module.exports = Self => {
include: {
relation: 'user',
scope: {
- fields: ['nickname']
+ fields: ['name']
}
}
}
diff --git a/modules/ticket/front/card/index.js b/modules/ticket/front/card/index.js
index 5b3c3c405..34ec2be98 100644
--- a/modules/ticket/front/card/index.js
+++ b/modules/ticket/front/card/index.js
@@ -44,7 +44,7 @@ class Controller extends ModuleCard {
include: {
relation: 'user',
scope: {
- fields: ['nickname']
+ fields: ['name']
}
}
}
diff --git a/modules/ticket/front/descriptor/index.html b/modules/ticket/front/descriptor/index.html
index 1ad27aac3..f5c4891c3 100644
--- a/modules/ticket/front/descriptor/index.html
+++ b/modules/ticket/front/descriptor/index.html
@@ -90,8 +90,12 @@
value="{{$ctrl.ticket.ticketState.state.name}}">
+ label="Sales person">
+
+ {{$ctrl.ticket.client.salesPerson.user.name}}
+
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js
index fdcd50e3c..b67474427 100644
--- a/modules/ticket/front/descriptor/index.js
+++ b/modules/ticket/front/descriptor/index.js
@@ -210,7 +210,7 @@ class Controller extends Descriptor {
include: {
relation: 'user',
scope: {
- fields: ['nickname']
+ fields: ['name']
}
}
}
diff --git a/modules/ticket/front/dms/index/index.html b/modules/ticket/front/dms/index/index.html
index 80ddbf899..851276a6b 100644
--- a/modules/ticket/front/dms/index/index.html
+++ b/modules/ticket/front/dms/index/index.html
@@ -51,6 +51,12 @@
{{::document.dms.description}}
+
+
+
+
@@ -60,8 +66,9 @@
- {{::document.dms.worker.user.nickname | dashIfEmpty}}
-
+ {{::document.dms.worker.user.name | dashIfEmpty}}
+
+
{{::document.dms.created | date:'dd/MM/yyyy HH:mm'}}
diff --git a/modules/ticket/front/dms/index/index.js b/modules/ticket/front/dms/index/index.js
index 2a67d6890..da6aa6b6f 100644
--- a/modules/ticket/front/dms/index/index.js
+++ b/modules/ticket/front/dms/index/index.js
@@ -33,7 +33,7 @@ class Controller extends Section {
include: {
relation: 'user',
scope: {
- fields: ['nickname']
+ fields: ['name']
}
},
}
diff --git a/modules/ticket/front/summary/index.html b/modules/ticket/front/summary/index.html
index 7b0e9d06d..ed269914c 100644
--- a/modules/ticket/front/summary/index.html
+++ b/modules/ticket/front/summary/index.html
@@ -18,8 +18,12 @@
-
+
+
+ {{$ctrl.summary.client.salesPerson.user.name}}
+
@@ -239,4 +243,7 @@
-
\ No newline at end of file
+
+
+
diff --git a/modules/ticket/front/tracking/index/index.html b/modules/ticket/front/tracking/index/index.html
index bf22bfb98..42d2197d0 100644
--- a/modules/ticket/front/tracking/index/index.html
+++ b/modules/ticket/front/tracking/index/index.html
@@ -25,7 +25,7 @@
- {{::tracking.worker.user.nickname | dashIfEmpty}}
+ {{::tracking.worker.user.name | dashIfEmpty}}
{{::tracking.created | date:'dd/MM/yyyy HH:mm'}}
diff --git a/modules/ticket/front/tracking/index/index.js b/modules/ticket/front/tracking/index/index.js
index 5528fc1ad..38abcd8ab 100644
--- a/modules/ticket/front/tracking/index/index.js
+++ b/modules/ticket/front/tracking/index/index.js
@@ -13,7 +13,7 @@ class Controller extends Section {
include: {
relation: 'user',
scope: {
- fields: ['nickname']
+ fields: ['name']
}
}
}
diff --git a/modules/travel/front/descriptor/locale/es.yml b/modules/travel/front/descriptor/locale/es.yml
index 1f51a0132..0ae18fdbf 100644
--- a/modules/travel/front/descriptor/locale/es.yml
+++ b/modules/travel/front/descriptor/locale/es.yml
@@ -1,6 +1,6 @@
Reference: Referencia
-Wh. In: Warehouse entrada
-Wh. Out: Warehouse salida
+Wh. In: Almacén entrada
+Wh. Out: Almacén salida
Shipped: F. envío
Landed: F. entrega
Total entries: Entradas totales
\ No newline at end of file
diff --git a/modules/worker/front/dms/index/index.html b/modules/worker/front/dms/index/index.html
index 4564dba44..d74d65bfa 100644
--- a/modules/worker/front/dms/index/index.html
+++ b/modules/worker/front/dms/index/index.html
@@ -18,6 +18,7 @@
Reference
Description
Original
+ File
Created
@@ -36,7 +37,13 @@
{{::document.description}}
-
+
+
+
+
+