2021-06-15 11:48:42 +00:00
|
|
|
<vn-crud-model auto-load="true"
|
2021-05-11 07:43:15 +00:00
|
|
|
vn-id="model"
|
|
|
|
url="SalesMonitors/ordersFilter"
|
|
|
|
limit="6"
|
2021-05-12 13:11:07 +00:00
|
|
|
order="date_make DESC">
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-horizontal class="header">
|
|
|
|
<vn-one translate>
|
|
|
|
Recent order actions
|
|
|
|
</vn-one>
|
|
|
|
<vn-none>
|
2021-05-18 06:41:36 +00:00
|
|
|
<vn-icon
|
|
|
|
icon="delete"
|
|
|
|
vn-tooltip="Delete"
|
|
|
|
ng-if="$ctrl.totalChecked > 0"
|
|
|
|
ng-click="delete.show()">
|
|
|
|
</vn-icon>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-icon class="arrow"
|
|
|
|
icon="keyboard_arrow_up"
|
|
|
|
vn-tooltip="Minimize/Maximize"
|
|
|
|
ng-click="$ctrl.main.toggle()">
|
|
|
|
</vn-icon>
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-icon
|
|
|
|
icon="refresh"
|
|
|
|
vn-tooltip="Refresh"
|
|
|
|
ng-click="model.refresh()">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-none>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-card>
|
2021-05-18 06:41:36 +00:00
|
|
|
<vn-table model="model" class="scrollable">
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2021-05-18 06:41:36 +00:00
|
|
|
<vn-th shrink>
|
|
|
|
<vn-multi-check
|
|
|
|
model="model">
|
|
|
|
</vn-multi-check>
|
|
|
|
</vn-th>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-th field="date_send" shrink-datetime>Date</vn-th>
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-th field="salesPersonFk" shrink>SalesPerson</vn-th>
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
2022-12-20 08:48:41 +00:00
|
|
|
<a ng-repeat="order in model.data track by order.id"
|
2021-06-15 11:48:42 +00:00
|
|
|
class="clickable vn-tbody"
|
2021-05-18 06:41:36 +00:00
|
|
|
ui-sref="order.card.summary({id: {{::order.id}}})" target="_blank">
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-tr>
|
2021-05-18 06:41:36 +00:00
|
|
|
<vn-td>
|
|
|
|
<vn-check
|
|
|
|
ng-model="order.checked"
|
|
|
|
vn-click-stop>
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-td>
|
2021-06-15 11:48:42 +00:00
|
|
|
<span class="chip {{::$ctrl.chipColor(order.date_send)}}">
|
2021-05-11 07:43:15 +00:00
|
|
|
{{::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>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-td>
|
|
|
|
<span
|
|
|
|
title="{{::order.salesPerson}}"
|
|
|
|
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
|
|
|
|
class="link">
|
|
|
|
{{::order.salesPerson | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-tr>
|
2021-05-18 06:41:36 +00:00
|
|
|
<vn-tr>
|
|
|
|
<vn-td></vn-td>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-td>
|
2021-05-11 07:43:15 +00:00
|
|
|
<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>
|
2021-06-15 11:48:42 +00:00
|
|
|
{{::order.import | currency: 'EUR':2}}
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
2021-05-18 06:41:36 +00:00
|
|
|
</a>
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-table>
|
|
|
|
<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>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-monitor-sales-orders vn-table']" model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.excludeSelection()">
|
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.removeFilter()">
|
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-click="contextmenu.removeAllFilters()">
|
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isActionAllowed()"
|
|
|
|
ng-click="contextmenu.copyValue()">
|
|
|
|
Copy value
|
|
|
|
</vn-item>
|
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|
2021-05-18 06:41:36 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="delete"
|
|
|
|
on-accept="$ctrl.onDelete()"
|
|
|
|
question="All the selected elements will be deleted. Are you sure you want to continue?"
|
|
|
|
message="Delete selected elements">
|
|
|
|
</vn-confirm>
|