From 98e704adf8dc8d46b62c4daf512fd4201d51a83d Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Wed, 10 Apr 2019 10:43:11 +0200 Subject: [PATCH] #1326 enlazar en ticket.descriptor tres puntos --- modules/ticket/front/descriptor/index.js | 8 +++++++- modules/ticket/front/descriptor/locale/es.yml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js index 30f3390d4..5c7d81ab9 100644 --- a/modules/ticket/front/descriptor/index.js +++ b/modules/ticket/front/descriptor/index.js @@ -14,7 +14,8 @@ class Controller { {callback: this.showDeliveryNote, name: 'Show Delivery Note', show: true}, {callback: this.showDeleteTicketDialog, name: 'Delete ticket', show: true}, {callback: this.showChangeShipped, name: 'Change shipped hour', show: true}, - {callback: this.showSMSDialog, name: 'Send SMS', show: true} + {callback: this.showSMSDialog, name: 'Send SMS', show: true}, + {callback: this.openRptRoute, name: 'Show pallet report', show: true} ]; } @@ -109,6 +110,11 @@ class Controller { } } + openRptRoute() { + let url = `/api/report/rpt-route?routeFk=${this.ticket.routeFk}`; + window.open(url); + } + showAddStowaway() { this.$scope.addStowaway.show(); } diff --git a/modules/ticket/front/descriptor/locale/es.yml b/modules/ticket/front/descriptor/locale/es.yml index bf2a121eb..3ce9905cb 100644 --- a/modules/ticket/front/descriptor/locale/es.yml +++ b/modules/ticket/front/descriptor/locale/es.yml @@ -8,6 +8,7 @@ Add stowaway: Añadir polizón Remove stowaway: Borrar polizón Are you sure you want to delete this stowaway?: ¿Estas seguro de que quieres borrar este polizón? Show Delivery Note: Ver albarán +Show pallet report: Mostrar hoja de pallet Change shipped hour: Cambiar hora de envío Shipped hour: Hora de envío SMSPayment: >-