From e9d303ccfa81bcc502ae24ba053b84e02232527b Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 12 Dec 2018 11:43:57 +0100 Subject: [PATCH] #870 order.descriptor --- client/order/src/descriptor/index.js | 18 ++++++++++++++++++ client/order/src/descriptor/locale/es.yml | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/client/order/src/descriptor/index.js b/client/order/src/descriptor/index.js index 3a3933d8f7..4b052526cf 100644 --- a/client/order/src/descriptor/index.js +++ b/client/order/src/descriptor/index.js @@ -6,6 +6,24 @@ class Controller { this.translate = $translate; } + set order(value) { + this._order = value; + + if (value.isConfirmed) { + this._quicklinks = { + btnOne: { + icon: 'icon-ticket', + state: `ticket.index({q: '{"orderFk": ${value.id}}'})`, + tooltip: 'Order ticket list' + } + }; + } + } + + get order() { + return this._order; + } + set quicklinks(value = {}) { this._quicklinks = Object.assign(value, this._quicklinks); } diff --git a/client/order/src/descriptor/locale/es.yml b/client/order/src/descriptor/locale/es.yml index feb0b4c551..88a0c1dda0 100644 --- a/client/order/src/descriptor/locale/es.yml +++ b/client/order/src/descriptor/locale/es.yml @@ -5,4 +5,5 @@ State: Estado Landed: F. entrega Items: Articulos Agency: Agencia -Sales person: Comercial \ No newline at end of file +Sales person: Comercial +Order ticket list: Ticket del pedido \ No newline at end of file