2020-03-13 19:33:12 +00:00
|
|
|
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2020-03-13 19:33:12 +00:00
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</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>
|
2020-03-13 19:33:12 +00:00
|
|
|
<vn-tr
|
|
|
|
ng-repeat="order in model.data"
|
|
|
|
class="clickable search-result"
|
|
|
|
ui-sref="order.card.summary({id: {{::order.id}}})">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td number>{{::order.id}}</vn-td>
|
|
|
|
<vn-td expand>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="clientDescriptor.show($event, order.clientFk)"
|
|
|
|
class="link">
|
2019-11-10 10:08:44 +00:00
|
|
|
{{::order.clientName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td expand>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
|
|
|
|
class="link" >
|
2019-11-10 10:08:44 +00:00
|
|
|
{{::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
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="$ctrl.preview(order)"
|
|
|
|
icon="desktop_windows"
|
|
|
|
vn-tooltip="Preview">
|
2019-11-10 10:08:44 +00:00
|
|
|
</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
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
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">
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-order-summary
|
|
|
|
order="$ctrl.selectedOrder">
|
|
|
|
</vn-order-summary>
|
2019-10-26 23:30:01 +00:00
|
|
|
</vn-popup>
|