From 1324d53e1b7f306db181f35075bd0bb0507510dd Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 21 Feb 2019 13:48:34 +0100 Subject: [PATCH] claim action now shows ticket --- modules/claim/front/action/index.html | 13 ++++++++++++- modules/claim/front/action/index.js | 8 ++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/modules/claim/front/action/index.html b/modules/claim/front/action/index.html index 7b8042d6a..9f3a2e607 100644 --- a/modules/claim/front/action/index.html +++ b/modules/claim/front/action/index.html @@ -42,6 +42,7 @@ Id + Ticket Destination Landed Quantity @@ -62,6 +63,13 @@ {{saleClaimed.sale.itemFk | zeroFill:6}} + + + {{::saleClaimed.sale.ticketFk}} + + - \ No newline at end of file + + + \ No newline at end of file diff --git a/modules/claim/front/action/index.js b/modules/claim/front/action/index.js index 4ef3fd82a..ec93f2ae1 100644 --- a/modules/claim/front/action/index.js +++ b/modules/claim/front/action/index.js @@ -67,6 +67,14 @@ class Controller { }); } + showTicketDescriptor(event, ticketFk) { + this.$.ticketDescriptor.ticketFk = ticketFk; + this.$.ticketDescriptor.parent = event.target; + this.$.ticketDescriptor.show(); + + event.preventDefault(); + } + focusLastInput() { let inputs = document.querySelectorAll('#claimDestinationFk'); inputs[inputs.length - 1].querySelector('input').focus();