clients autocompletes now order by id

This commit is contained in:
Gerard 2019-01-11 08:03:36 +01:00
parent 81ef984597
commit 100871edf6
4 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,8 @@
url="/client/api/Clients"
show-field="name"
value-field="id"
label="Client">
label="Client"
order="id">
</vn-autocomplete>
<vn-autocomplete
vn-one

View File

@ -16,7 +16,8 @@
search-function="{or: [{id: {regexp: $search}}, {name: {regexp: $search}}]}"
show-field="name"
value-field="id"
field="$ctrl.order.clientFk">
field="$ctrl.order.clientFk"
order="id">
<tpl-item>{{id}}: {{name}}</tpl-item>
</vn-autocomplete>
<vn-autocomplete

View File

@ -7,7 +7,8 @@
search-function="{or: [{id: {regexp: $search}}, {name: {regexp: $search}}]}"
show-field="name"
value-field="id"
field="$ctrl.clientFk">
field="$ctrl.clientFk"
order="id">
<tpl-item>{{id}}: {{name}}</tpl-item>
</vn-autocomplete>
<vn-autocomplete

View File

@ -9,7 +9,8 @@
show-field="name"
value-field="id"
field="$ctrl.clientFk"
initial-data="$ctrl.clientFk">
initial-data="$ctrl.clientFk"
order="id">
</vn-autocomplete>
<vn-autocomplete vn-one
data="$ctrl.addresses"