3063 - Get item from card without a name #716

Merged
carlosjr merged 1 commits from 3063-item_card_hotfix into dev 2021-08-30 09:34:03 +00:00
5 changed files with 11 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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