Tarea #240 Añadir comprador

This commit is contained in:
Gerard 2018-04-16 13:47:16 +02:00
parent 18d4021383
commit bfad7a9a83
2 changed files with 10 additions and 2 deletions

View File

@ -32,7 +32,15 @@ class ItemCard {
_getItem() {
let filter = {
include: [
{relation: "itemType"},
{relation: "itemType",
scope: {
fields: ['name', 'workerFk'],
include: {
relation: 'worker',
fields: ['firstName', 'name']
}
}
},
{relation: "origin"},
{relation: "ink"},
{relation: "producer"},

View File

@ -25,7 +25,7 @@
<vn-auto pad-medium>
<h6>{{$ctrl.item.name}}</h6>
<div><vn-label translate>Id</vn-label> {{$ctrl.item.id}}</div>
<div><vn-label translate>Buyer</vn-label> {{$ctrl.item.itemType.worker.firstName}}</div>
<div><vn-label translate>Buyer</vn-label> {{$ctrl.item.itemType.worker.firstName}} {{$ctrl.item.itemType.worker.name}}</div>
<div ng-repeat="itemTag in $ctrl.itemTags | limitTo:4">
<div><vn-label translate>{{$ctrl.tags[itemTag.tagFk].name}}</vn-label> {{itemTag.value}}</div>
</div>