From 444d531162399f5e4574339031c8e480a3dcf264 Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 21 Feb 2019 07:46:27 +0100 Subject: [PATCH] summary action now shows ticket id --- modules/claim/front/summary/index.html | 18 ++++++++++++++---- modules/claim/front/summary/index.js | 8 ++++++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/modules/claim/front/summary/index.html b/modules/claim/front/summary/index.html index dd50d4933..ec650c86e 100644 --- a/modules/claim/front/summary/index.html +++ b/modules/claim/front/summary/index.html @@ -40,7 +40,7 @@ - Id + Item Landed Quantity Claimed @@ -107,7 +107,8 @@ - Id + Item + Ticket Destination Landed Quantity @@ -126,7 +127,13 @@ {{action.sale.itemFk | zeroFill:6}} - {{action.sale.id}} + + + {{action.sale.ticket.id | zeroFill:6}} + + {{action.claimBeggining.description}} {{action.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}} {{action.sale.quantity}} @@ -150,4 +157,7 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/modules/claim/front/summary/index.js b/modules/claim/front/summary/index.js index 67af420fe..b8fedca7a 100644 --- a/modules/claim/front/summary/index.js +++ b/modules/claim/front/summary/index.js @@ -33,12 +33,16 @@ class Controller { } showWorkerDescriptor(event, userId) { - event.preventDefault(); - event.stopImmediatePropagation(); this.selectedWorker = userId; this.$.workerDescriptor.parent = event.target; this.$.workerDescriptor.show(); } + + showTicketDescriptor(event, ticketId) { + this.$.ticketDescriptor.ticketFk = ticketId; + this.$.ticketDescriptor.parent = event.target; + this.$.ticketDescriptor.show(); + } } Controller.$inject = ['$scope', '$http'];