#1174 item.index buscador avanzado mostrar comprador
This commit is contained in:
parent
00f9754c1e
commit
32893b49c1
|
@ -48,6 +48,11 @@ module.exports = Self => {
|
||||||
type: 'Boolean',
|
type: 'Boolean',
|
||||||
description: 'Whether the the item is o not active',
|
description: 'Whether the the item is o not active',
|
||||||
http: {source: 'query'}
|
http: {source: 'query'}
|
||||||
|
}, {
|
||||||
|
arg: 'salesPersonFk',
|
||||||
|
type: 'Integer',
|
||||||
|
description: 'The buyer of the item',
|
||||||
|
http: {source: 'query'}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
returns: {
|
returns: {
|
||||||
|
@ -75,6 +80,8 @@ module.exports = Self => {
|
||||||
return {'i.description': {like: `%${value}%`}};
|
return {'i.description': {like: `%${value}%`}};
|
||||||
case 'categoryFk':
|
case 'categoryFk':
|
||||||
return {'ic.id': value};
|
return {'ic.id': value};
|
||||||
|
case 'salesPersonFk':
|
||||||
|
return {'t.workerFk': value};
|
||||||
case 'typeFk':
|
case 'typeFk':
|
||||||
return {'i.typeFk': value};
|
return {'i.typeFk': value};
|
||||||
case 'isActive':
|
case 'isActive':
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<vn-th th-id="category">Category</vn-th>
|
<vn-th th-id="category">Category</vn-th>
|
||||||
<vn-th th-id="intrastat">Intrastat</vn-th>
|
<vn-th th-id="intrastat">Intrastat</vn-th>
|
||||||
<vn-th th-id="origin">Origin</vn-th>
|
<vn-th th-id="origin">Origin</vn-th>
|
||||||
<vn-th th-id="salesperson">Sales person</vn-th>
|
<vn-th th-id="salesperson">Buyer</vn-th>
|
||||||
<vn-th th-id="density" number>Density</vn-th>
|
<vn-th th-id="density" number>Density</vn-th>
|
||||||
<vn-th th-id="taxClass">Tax class</vn-th>
|
<vn-th th-id="taxClass">Tax class</vn-th>
|
||||||
<vn-th th-id="active" shrink>Active</vn-th>
|
<vn-th th-id="active" shrink>Active</vn-th>
|
||||||
|
|
|
@ -46,6 +46,17 @@
|
||||||
label="Description"
|
label="Description"
|
||||||
model="filter.description">
|
model="filter.description">
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
|
<vn-autocomplete
|
||||||
|
vn-one
|
||||||
|
disabled="false"
|
||||||
|
field="filter.salesPersonFk"
|
||||||
|
url="/client/api/Clients/activeWorkersWithRole"
|
||||||
|
show-field="nickname"
|
||||||
|
search-function="{firstName: $search}"
|
||||||
|
value-field="id"
|
||||||
|
where="{role: 'employee'}"
|
||||||
|
label="Buyer">
|
||||||
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-check
|
<vn-check
|
||||||
|
|
Loading…
Reference in New Issue