2020-09-02 12:08:56 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Entries"
|
2020-09-02 12:08:56 +00:00
|
|
|
data="$ctrl.entry"
|
2020-03-09 08:00:03 +00:00
|
|
|
insert-mode="true"
|
|
|
|
form="form">
|
2020-09-02 12:08:56 +00:00
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
2020-09-03 06:09:37 +00:00
|
|
|
<vn-icon color-marginal
|
|
|
|
icon="info"
|
|
|
|
vn-tooltip="Required fields (*)">
|
|
|
|
</vn-icon>
|
2020-09-02 12:08:56 +00:00
|
|
|
<vn-horizontal>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
label="Supplier"
|
2020-09-02 12:08:56 +00:00
|
|
|
ng-model="$ctrl.entry.supplierFk"
|
|
|
|
url="Suppliers"
|
|
|
|
show-field="nickname"
|
2020-09-07 06:15:43 +00:00
|
|
|
search-function="{or: [{id: $search}, {nickname: {like: '%'+ $search +'%'}}]}"
|
2020-09-02 12:08:56 +00:00
|
|
|
order="nickname"
|
2020-09-03 06:09:37 +00:00
|
|
|
required="true">
|
2020-09-02 12:08:56 +00:00
|
|
|
<tpl-item>
|
|
|
|
{{::id}} - {{::nickname}}
|
|
|
|
</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2020-09-03 06:09:37 +00:00
|
|
|
<vn-autocomplete
|
2020-03-09 08:00:03 +00:00
|
|
|
label="Travel"
|
2020-09-02 12:08:56 +00:00
|
|
|
ng-model="$ctrl.entry.travelFk"
|
|
|
|
url="Travels/filter"
|
|
|
|
search-function="$ctrl.searchFunction($search)"
|
2020-09-03 14:52:35 +00:00
|
|
|
order="id"
|
2020-09-03 06:09:37 +00:00
|
|
|
required="true">
|
2020-09-02 12:08:56 +00:00
|
|
|
<tpl-item>
|
|
|
|
{{::agencyModeName}} - {{::warehouseInName}} ({{::shipped | date: 'dd/MM/yyyy'}}) →
|
|
|
|
{{::warehouseOutName}} ({{::landed | date: 'dd/MM/yyyy'}})
|
|
|
|
</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Company"
|
2020-09-03 06:09:37 +00:00
|
|
|
ng-model="$ctrl.entry.companyFk"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Companies"
|
|
|
|
show-field="code"
|
2020-09-03 06:09:37 +00:00
|
|
|
required="true">
|
2020-09-02 12:08:56 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-14 16:35:32 +00:00
|
|
|
<vn-submit
|
2020-12-15 15:53:56 +00:00
|
|
|
disabled="!watcher.dataChanged()"
|
2020-12-14 16:35:32 +00:00
|
|
|
label="Create">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
2020-12-15 15:53:56 +00:00
|
|
|
class="cancel"
|
|
|
|
label="Cancel"
|
|
|
|
ui-sref="entry.index"></vn-button>
|
2020-12-14 16:35:32 +00:00
|
|
|
</vn-button>
|
2020-09-02 12:08:56 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|