3063 - Get item from card without a name
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-08-30 11:23:46 +02:00
parent c9dcf141c9
commit 74dfa9f757
5 changed files with 11 additions and 9 deletions

View File

@ -59,7 +59,7 @@
<vn-autocomplete
class="dense"
vn-focus
url="Items"
url="Items/withName"
ng-model="buy.itemFk"
show-field="name"
value-field="id"
@ -156,7 +156,7 @@
</vn-horizontal>
<vn-crud-model
vn-id="itemsModel"
url="Items"
url="Items/withName"
filter="$ctrl.itemFilter"
data="items"
limit="10">

View File

@ -64,7 +64,7 @@
</span>
<vn-autocomplete ng-if="!buy.id" class="dense"
vn-focus
url="Items"
url="Items/withName"
ng-model="buy.itemFk"
show-field="name"
value-field="id"

View File

@ -207,10 +207,12 @@
"foreignKey": "itemFk"
}
},
"scope": {
"where": {
"name": {
"neq": ""
"scopes": {
"withName": {
"where": {
"name": {
"neq": ""
}
}
}
}

View File

@ -51,7 +51,7 @@
class="dense"
ng-if="!price.itemFk"
vn-focus
url="Items"
url="Items/withName"
ng-model="price.itemFk"
show-field="name"
value-field="id"

View File

@ -134,7 +134,7 @@
</span>
<vn-autocomplete ng-if="!sale.id" class="dense"
vn-focus
url="Items"
url="Items/withName"
ng-model="sale.itemFk"
show-field="name"
value-field="id"