Tarea #240 Añadir comprador
This commit is contained in:
parent
18d4021383
commit
bfad7a9a83
|
@ -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"},
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue