diff --git a/modules/ticket/back/methods/ticket/summary.js b/modules/ticket/back/methods/ticket/summary.js index 36a5b961e..56e17062c 100644 --- a/modules/ticket/back/methods/ticket/summary.js +++ b/modules/ticket/back/methods/ticket/summary.js @@ -135,14 +135,15 @@ module.exports = Self => { relation: 'user' } } - }, - { + }, { relation: 'atender', scope: { include: { relation: 'user' } } + }, { + relation: 'sale' } ] }; diff --git a/modules/ticket/front/request/index/index.html b/modules/ticket/front/request/index/index.html index e868486af..2a1937052 100644 --- a/modules/ticket/front/request/index/index.html +++ b/modules/ticket/front/request/index/index.html @@ -54,7 +54,7 @@ {{request.saleFk | zeroFill:6}} diff --git a/modules/ticket/front/request/index/index.js b/modules/ticket/front/request/index/index.js index 2ade30013..d60204e6d 100644 --- a/modules/ticket/front/request/index/index.js +++ b/modules/ticket/front/request/index/index.js @@ -44,18 +44,18 @@ class Controller { }); } - showItemDescriptor(event, sale) { + showItemDescriptor(event, itemFk) { this.quicklinks = { btnThree: { icon: 'icon-transaction', state: `item.card.diary({ - id: ${sale.itemFk}, + id: ${itemFk}, ticketFk: ${this.$stateParams.id} })`, tooltip: 'Item diary' } }; - this.$.itemDescriptor.itemFk = sale.itemFk; + this.$.itemDescriptor.itemFk = itemFk; this.$.itemDescriptor.parent = event.target; this.$.itemDescriptor.show(); } diff --git a/modules/ticket/front/summary/index.html b/modules/ticket/front/summary/index.html index 364d371b6..6071b1370 100644 --- a/modules/ticket/front/summary/index.html +++ b/modules/ticket/front/summary/index.html @@ -151,7 +151,7 @@ Atender Quantity Price - Sale id + Item Ok @@ -166,9 +166,9 @@ - {{request.saleFk | zeroFill:6}} + {{request.sale.itemFk | zeroFill:6}}