5439-newFilterEnPeticionesDeCompra #1406
|
@ -38,6 +38,19 @@
|
||||||
url="Warehouses">
|
url="Warehouses">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
<vn-horizontal class="vn-px-lg">
|
||||||
|
<vn-autocomplete
|
||||||
|
vn-one
|
||||||
|
ng-model="filter.requesterFk"
|
||||||
|
url="Workers/activeWithRole"
|
||||||
|
search-function="{firstName: $search}"
|
||||||
|
value-field="id"
|
||||||
|
where="{role: 'salesPerson'}"
|
||||||
|
label="Comercial">
|
||||||
|
<tpl-item>{{firstName}} {{lastName}}</tpl-item>
|
||||||
|
</vn-autocomplete>
|
||||||
|
</vn-horizontal>
|
||||||
|
|
||||||
<section class="vn-px-md">
|
<section class="vn-px-md">
|
||||||
<vn-horizontal class="manifold-panel vn-pa-md">
|
<vn-horizontal class="manifold-panel vn-pa-md">
|
||||||
<vn-date-picker
|
<vn-date-picker
|
||||||
|
|
|
@ -37,6 +37,10 @@ module.exports = Self => {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
description: `Search requests attended by a given worker id`
|
description: `Search requests attended by a given worker id`
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
arg: 'requesterFk',
|
||||||
|
type: 'number'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
arg: 'mine',
|
arg: 'mine',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
@ -89,6 +93,8 @@ module.exports = Self => {
|
||||||
return {'t.id': value};
|
return {'t.id': value};
|
||||||
case 'attenderFk':
|
case 'attenderFk':
|
||||||
return {'tr.attenderFk': value};
|
return {'tr.attenderFk': value};
|
||||||
|
case 'requesterFk':
|
||||||
|
return {'tr.requesterFk': value};
|
||||||
case 'state':
|
case 'state':
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case 'pending':
|
case 'pending':
|
||||||
|
@ -125,6 +131,7 @@ module.exports = Self => {
|
||||||
tr.description,
|
tr.description,
|
||||||
tr.response,
|
tr.response,
|
||||||
tr.saleFk,
|
tr.saleFk,
|
||||||
|
tr.requesterFk,
|
||||||
tr.isOk,
|
tr.isOk,
|
||||||
s.quantity AS saleQuantity,
|
s.quantity AS saleQuantity,
|
||||||
s.itemFk,
|
s.itemFk,
|
||||||
|
|
Loading…
Reference in New Issue