diff --git a/modules/route/back/methods/route/getTickets.js b/modules/route/back/methods/route/getTickets.js
index a0014a60d..211a2e7bb 100644
--- a/modules/route/back/methods/route/getTickets.js
+++ b/modules/route/back/methods/route/getTickets.js
@@ -29,7 +29,7 @@ module.exports = Self => {
order: 'priority',
include: [
{
- relation: 'state',
+ relation: 'ticketState',
scope: {
fields: ['id', 'stateFk'],
include: [{relation: 'state'}]
diff --git a/modules/ticket/back/methods/ticket/getPossibleStowaways.js b/modules/ticket/back/methods/ticket/getPossibleStowaways.js
index 3565d64ab..675270840 100644
--- a/modules/ticket/back/methods/ticket/getPossibleStowaways.js
+++ b/modules/ticket/back/methods/ticket/getPossibleStowaways.js
@@ -38,7 +38,6 @@ module.exports = Self => {
let highestDate = new Date(ship.shipped.getTime());
highestDate.setHours(23, 59, 59);
-
let possibleStowaways = await models.Ticket.find({
where: {
id: {neq: ticketFk},
@@ -53,7 +52,7 @@ module.exports = Self => {
include: [
{relation: 'agencyMode'},
{relation: 'warehouse'},
- {relation: 'state',
+ {relation: 'ticketState',
scope: {
fields: ['stateFk'],
include: {
diff --git a/modules/ticket/back/methods/ticket/summary.js b/modules/ticket/back/methods/ticket/summary.js
index 2035b4d31..79a7c24d9 100644
--- a/modules/ticket/back/methods/ticket/summary.js
+++ b/modules/ticket/back/methods/ticket/summary.js
@@ -90,7 +90,7 @@ module.exports = Self => {
}
}
}, {
- relation: 'state',
+ relation: 'ticketState',
scope: {
fields: ['stateFk'],
include: {
diff --git a/modules/ticket/back/models/ticket.json b/modules/ticket/back/models/ticket.json
index 21c34232b..63b69b914 100644
--- a/modules/ticket/back/models/ticket.json
+++ b/modules/ticket/back/models/ticket.json
@@ -110,7 +110,7 @@
"model": "TicketObservation",
"foreignKey": "ticketFk"
},
- "state": {
+ "ticketState": {
"type": "hasOne",
"model": "TicketState",
"foreignKey": "ticketFk"
diff --git a/modules/ticket/front/card/index.js b/modules/ticket/front/card/index.js
index 8dce23aa7..80174b5e2 100644
--- a/modules/ticket/front/card/index.js
+++ b/modules/ticket/front/card/index.js
@@ -45,7 +45,7 @@ class Controller extends ModuleCard {
},
},
}, {
- relation: 'state',
+ relation: 'ticketState',
scope: {
fields: ['stateFk'],
include: {
diff --git a/modules/ticket/front/descriptor/addStowaway.html b/modules/ticket/front/descriptor/addStowaway.html
index f05a6584f..56bb321d9 100644
--- a/modules/ticket/front/descriptor/addStowaway.html
+++ b/modules/ticket/front/descriptor/addStowaway.html
@@ -26,7 +26,7 @@
New price
-{{$ctrl.newPrice | currency: 'EUR':2}}
++ {{$ctrl.getNewPrice() | currency: 'EUR': 2}} +
New price
++ {{$ctrl.getNewPrice() | currency: 'EUR': 2}} +
+