2018-07-18 12:38:43 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Orders/filter"
|
2018-07-18 12:38:43 +00:00
|
|
|
limit="20"
|
2019-02-27 11:03:54 +00:00
|
|
|
data="orders"
|
2019-10-02 19:02:49 +00:00
|
|
|
order="landed DESC, clientFk">
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
|
|
|
on-search="$ctrl.onSearch($params)">
|
|
|
|
</vn-auto-search>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-mb-xl">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
|
|
<vn-th field="salesPersonFk">Sales person</vn-th>
|
|
|
|
<vn-th field="isConfirmed" center>Confirmed</vn-th>
|
|
|
|
<vn-th field="sourceApp">Created from</vn-th>
|
|
|
|
<vn-th field="created" center>Created</vn-th>
|
|
|
|
<vn-th field="landed" default-order="DESC" center>Landed</vn-th>
|
|
|
|
<vn-th field="companyFk">Company</vn-th>
|
|
|
|
<vn-th center>Total</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="order in orders" class="clickable search-result"
|
|
|
|
ui-sref="order.card.summary({id: {{::order.id}}})">
|
|
|
|
<vn-td number>{{::order.id}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span class="link" ng-click="$ctrl.showClientDescriptor($event, order.clientFk)">
|
|
|
|
{{::order.clientName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, order.salesPersonFk)">
|
|
|
|
{{::order.workerNickname | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td center>
|
|
|
|
<vn-check
|
|
|
|
ng-model="order.isConfirmed"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::order.sourceApp}}</vn-td>
|
|
|
|
<vn-td center>{{::order.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
<vn-td center>{{::order.landed | date:'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td>{{::order.companyCode}}</vn-td>
|
|
|
|
<vn-td number>{{::order.total | currency: 'EUR': 2 | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, order)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-card>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-data-viewer>
|
|
|
|
<a
|
|
|
|
ui-sref="order.create"
|
|
|
|
vn-bind="+"
|
|
|
|
vn-tooltip="New order"
|
|
|
|
fixed-bottom-right>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2018-07-18 12:38:43 +00:00
|
|
|
</a>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-client-descriptor-popover
|
2019-02-15 11:39:21 +00:00
|
|
|
vn-id="clientDescriptor">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-client-descriptor-popover>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 12:24:02 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-order-summary order="$ctrl.selectedOrder"></vn-order-summary>
|
|
|
|
</vn-popup>
|
2019-09-05 11:06:40 +00:00
|
|
|
<vn-scroll-up></vn-scroll-up>
|