diff --git a/client/order/src/descriptor/index.js b/client/order/src/descriptor/index.js index 3a3933d8f..4b052526c 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 feb0b4c55..88a0c1dda 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