refs #5439 filtro comercial
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-03-21 08:44:28 +01:00
parent 306573b1bf
commit 1bc3103d9f
3 changed files with 28 additions and 16 deletions

View File

@ -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);

View File

@ -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">

View File

@ -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">