86 lines
2.7 KiB
HTML
86 lines
2.7 KiB
HTML
<vn-crud-model auto-load="true"
|
|
vn-id="model"
|
|
url="SalesMonitors/ordersFilter"
|
|
limit="6"
|
|
order="dated DESC">
|
|
</vn-crud-model>
|
|
<vn-horizontal class="header">
|
|
<vn-one translate>
|
|
Recent order actions
|
|
</vn-one>
|
|
<vn-none>
|
|
<vn-icon
|
|
icon="refresh"
|
|
vn-tooltip="Refresh"
|
|
ng-click="model.refresh()">
|
|
</vn-icon>
|
|
</vn-none>
|
|
</vn-horizontal>
|
|
<vn-card>
|
|
<vn-table model="model" class="fixed-header scrollable sm">
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th field="date_send" shrink-datetime>Date</vn-th>
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
<vn-th field="nickname">Import</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody ng-repeat="order in model.data">
|
|
<vn-tr>
|
|
<vn-td>
|
|
<span class="chip success">
|
|
{{::order.date_send | date: 'dd/MM/yyyy'}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span
|
|
title="{{::order.clientName}}"
|
|
vn-click-stop="clientDescriptor.show($event, order.clientFk)"
|
|
class="link">
|
|
{{::order.clientName}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td number>{{::order.import | currency: 'EUR':2}}</vn-td>
|
|
</vn-tr>
|
|
<vn-tr class="dark-row">
|
|
<vn-td shrink-datetime>
|
|
<span>
|
|
{{::order.date_make | date: 'dd/MM/yyyy HH:mm'}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span title="{{::order.agencyName}}">
|
|
{{::order.agencyName | dashIfEmpty}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span
|
|
title="{{::order.salesPerson}}"
|
|
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
|
|
class="link">
|
|
{{::order.salesPerson | dashIfEmpty}}
|
|
</span>
|
|
</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
<div
|
|
ng-if="!model.data.length"
|
|
class="empty-rows vn-pa-sm"
|
|
translate>
|
|
No results
|
|
</div>
|
|
<vn-pagination
|
|
model="model"
|
|
class="vn-pt-xs"
|
|
scroll-selector="vn-monitor-sales-orders vn-table"
|
|
scroll-offset="100">
|
|
</vn-pagination>
|
|
</vn-card>
|
|
<vn-worker-descriptor-popover
|
|
vn-id="workerDescriptor">
|
|
</vn-worker-descriptor-popover>
|
|
<vn-client-descriptor-popover
|
|
vn-id="clientDescriptor">
|
|
</vn-client-descriptor-popover>
|