#870 order.descriptor

This commit is contained in:
Gerard 2018-12-12 11:43:57 +01:00
parent fc59d9a383
commit e9d303ccfa
2 changed files with 20 additions and 1 deletions

View File

@ -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);
}

View File

@ -5,4 +5,5 @@ State: Estado
Landed: F. entrega
Items: Articulos
Agency: Agencia
Sales person: Comercial
Sales person: Comercial
Order ticket list: Ticket del pedido