Tarea #646 item descriptor now passes the ticket id

This commit is contained in:
Gerard 2018-10-05 14:03:59 +02:00
parent 796b901378
commit 20e76fb28d
9 changed files with 16 additions and 9 deletions

View File

@ -126,7 +126,7 @@
}
},
{
"url" : "/diary?warehouseFk",
"url" : "/diary?warehouseFk&ticketFk",
"state": "item.card.diary",
"component": "vn-item-diary",
"description": "Diary",

View File

@ -93,7 +93,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}

View File

@ -36,7 +36,7 @@
<span
ng-class="{'link pointer':expedition.itemFk}"
ng-click="$ctrl.showDescriptor($event, expedition.itemFk)">
{{expedition.itemFk}}
{{("000000"+expedition.itemFk).slice(-6)}}
</span>
</vn-td>
<vn-td>{{::expedition.namePackage}}</vn-td>

View File

@ -27,7 +27,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}

View File

@ -39,7 +39,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}

View File

@ -12,7 +12,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}

View File

@ -243,7 +243,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}

View File

@ -37,7 +37,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}

View File

@ -52,7 +52,8 @@ class Controller {
icon: 'icon-transaction',
state: `item.card.diary({
id: ${itemFk},
q: '{"warehouseFk": ${this.ticket.warehouseFk}}'
warehouseFk: ${this.ticket.warehouseFk},
ticketFk: ${this.ticket.id}
})`,
tooltip: 'Item diary'
}