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="salesPersonFk">Sales person</vn-th>
|
2020-06-30 06:32:04 +00:00
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="isConfirmed" center>Confirmed</vn-th>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th field="created" center expand>Created</vn-th>
|
|
|
|
<vn-th field="landed" default-order="DESC" center expand>Landed</vn-th>
|
2020-11-11 14:14:05 +00:00
|
|
|
<vn-th field="created" center translate-attr="{title: 'Theoretical hour'}">T. Hour</vn-th>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th field="created" center>Real hour</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th center>Total</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2020-11-12 15:03:23 +00:00
|
|
|
<a
|
2020-03-13 19:33:12 +00:00
|
|
|
ng-repeat="order in model.data"
|
2020-11-12 15:03:23 +00:00
|
|
|
class="clickable search-result vn-tr"
|
2020-03-13 19:33:12 +00:00
|
|
|
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
|
2020-06-30 06:32:04 +00:00
|
|
|
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
|
|
|
|
class="link" >
|
|
|
|
{{::order.name | dashIfEmpty}}
|
2019-11-10 10:08:44 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td expand>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
2020-06-30 06:32:04 +00:00
|
|
|
vn-click-stop="clientDescriptor.show($event, order.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{::order.clientName}}
|
2019-11-10 10:08:44 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-07-02 05:46:55 +00:00
|
|
|
<vn-td center>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-check
|
|
|
|
ng-model="order.isConfirmed"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-td center expand>{{::order.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
<vn-td center expand>
|
2020-06-30 06:32:04 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(order.landed)}}">
|
|
|
|
{{::order.landed | date:'dd/MM/yyyy'}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-11-11 11:02:40 +00:00
|
|
|
<vn-td shrink>{{::order.hourTheoretical | date: 'HH:mm' | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td shrink>{{::ticket.hourEffective | date: 'HH:mm' | dashIfEmpty}}</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<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>
|
2020-11-12 15:03:23 +00:00
|
|
|
</a>
|
2019-11-10 10:08:44 +00:00
|
|
|
</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>
|