diff --git a/modules/ticket/back/methods/ticket/summary.js b/modules/ticket/back/methods/ticket/summary.js index e67b438ff..b951b8f5c 100644 --- a/modules/ticket/back/methods/ticket/summary.js +++ b/modules/ticket/back/methods/ticket/summary.js @@ -120,8 +120,22 @@ module.exports = Self => { ticketFk: ticketFk }, include: [ - {relation: 'requester'}, - {relation: 'atender'} + { + relation: 'requester', + scope: { + include: { + relation: 'user' + } + } + }, + { + relation: 'atender', + scope: { + include: { + relation: 'user' + } + } + } ] }; return await Self.app.models.TicketRequest.find(filter); diff --git a/modules/ticket/front/summary/index.html b/modules/ticket/front/summary/index.html index d09490a57..9631af22e 100644 --- a/modules/ticket/front/summary/index.html +++ b/modules/ticket/front/summary/index.html @@ -161,7 +161,6 @@ - Id Description Created Requester @@ -174,17 +173,16 @@ - {{::request.id}} {{::request.description}} {{::request.created | dateTime: 'dd/MM/yyyy'}} - {{::request.requester.firstName}} {{::request.requester.name}} - {{::request.atender.firstName}} {{::request.atender.name}} + {{::request.requester.user.name}} + {{::request.atender.user.name}} {{::request.quantity}} {{::request.price}} {{("000000"+request.saleFk).slice(-6)}}