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>
|
2021-05-12 10:11:27 +00:00
|
|
|
<vn-th field="landed" shrink-date>Landed</vn-th>
|
2021-01-20 10:28:15 +00:00
|
|
|
<vn-th field="created" center>Hour</vn-th>
|
2021-01-21 17:42:40 +00:00
|
|
|
<vn-th field="agencyName" center>Agency</vn-th>
|
2021-10-14 06:48:57 +00:00
|
|
|
<vn-th field="total" center>Total</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
</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>
|
2022-04-28 05:53:06 +00:00
|
|
|
<vn-td>
|
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>
|
2022-04-28 05:53:06 +00:00
|
|
|
<vn-td center expand>{{::order.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
2021-02-16 14:50:48 +00:00
|
|
|
<vn-td shrink-date>
|
2020-06-30 06:32:04 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(order.landed)}}">
|
|
|
|
{{::order.landed | date:'dd/MM/yyyy'}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2021-01-21 17:42:40 +00:00
|
|
|
<vn-td shrink>{{::(order.hourTheoretical
|
|
|
|
? order.hourTheoretical
|
|
|
|
: order.hourEffective) | dashIfEmpty
|
|
|
|
}}</vn-td>
|
2021-01-20 10:28:15 +00:00
|
|
|
<vn-td expand>{{::order.agencyName}}</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)"
|
2020-11-24 07:22:54 +00:00
|
|
|
icon="preview"
|
2020-04-25 09:50:04 +00:00
|
|
|
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>
|