This commit is contained in:
parent
306573b1bf
commit
1bc3103d9f
|
@ -34,8 +34,6 @@ module.exports = function(Self) {
|
||||||
warehouseFk: warehouse.id,
|
warehouseFk: warehouse.id,
|
||||||
companyFk: company.id,
|
companyFk: company.id,
|
||||||
userFk: ctx.req.accessToken.userId,
|
userFk: ctx.req.accessToken.userId,
|
||||||
buyed: ticketResquest.buyed,
|
|
||||||
salesPersonCode: salesPersonNickname
|
|
||||||
};
|
};
|
||||||
|
|
||||||
userConfig = await models.UserConfig.create(newConfig, myOptions);
|
userConfig = await models.UserConfig.create(newConfig, myOptions);
|
||||||
|
|
|
@ -41,15 +41,22 @@
|
||||||
<vn-horizontal class="vn-px-lg">
|
<vn-horizontal class="vn-px-lg">
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
label="Comercial"
|
ng-model="filter.salesPersonFk"
|
||||||
ng-model="filter.ticketRequest"
|
url="Workers/activeWithInheritedRole"
|
||||||
data="salesPersonCode">
|
search-function="{firstName: $search}"
|
||||||
|
value-field="id"
|
||||||
|
where="{role: 'logistic'}"
|
||||||
|
label="Comercial">
|
||||||
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
label="Fecha"
|
ng-model="filter.saleFk"
|
||||||
ng-model="filter.buyed"
|
url="Sales/created"
|
||||||
data="buyed">
|
search-function="{id: $search}"
|
||||||
|
value-field="created"
|
||||||
|
label="Fecha">
|
||||||
|
<tpl-item>{{created}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<section class="vn-px-md">
|
<section class="vn-px-md">
|
||||||
|
|
|
@ -93,15 +93,22 @@
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
label="Comercial"
|
|
||||||
ng-model="filter.salesPersonFk"
|
ng-model="filter.salesPersonFk"
|
||||||
data="Workers">
|
url="Workers/activeWithInheritedRole"
|
||||||
|
search-function="{firstName: $search}"
|
||||||
|
value-field="id"
|
||||||
|
where="{role: 'logistic'}"
|
||||||
|
label="Comercial">
|
||||||
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
label="Fecha"
|
ng-model="filter.saleFk"
|
||||||
ng-model="filter.buyed"
|
url="Sales/created"
|
||||||
data="buyed">
|
search-function="{id: $search}"
|
||||||
|
value-field="created"
|
||||||
|
label="Fecha">
|
||||||
|
<tpl-item>{{created}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal class="vn-px-lg">
|
<vn-horizontal class="vn-px-lg">
|
||||||
|
|
Loading…
Reference in New Issue