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-w-xl">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th shrink>
|
|
|
|
<vn-multi-check
|
|
|
|
model="model">
|
|
|
|
</vn-multi-check>
|
|
|
|
</vn-th>
|
2020-11-11 08:11:11 +00:00
|
|
|
<vn-th class="icon-field"></vn-th>
|
|
|
|
<vn-th field="id">Id</vn-th>
|
2020-06-08 10:14:27 +00:00
|
|
|
<vn-th field="salesPersonFk" class="expendable">Salesperson</vn-th>
|
2020-06-09 10:16:40 +00:00
|
|
|
<vn-th field="shipped">Date</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th>Hour</vn-th>
|
2021-02-03 16:01:43 +00:00
|
|
|
<vn-th field="hour" shrink>Closure</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="nickname">Alias</vn-th>
|
2020-06-08 10:14:27 +00:00
|
|
|
<vn-th field="provinceFk" class="expendable">Province</vn-th>
|
2020-05-29 09:10:58 +00:00
|
|
|
<vn-th field="stateFk" >State</vn-th>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-th field="zoneFk">Zone</vn-th>
|
2020-06-08 10:14:27 +00:00
|
|
|
<vn-th field="warehouseFk">Warehouse</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th number>Total</vn-th>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2020-06-08 11:17:18 +00:00
|
|
|
<a ng-repeat="ticket in model.data"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="clickable vn-tr search-result"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
|
2020-11-11 08:11:11 +00:00
|
|
|
<vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-check
|
|
|
|
ng-model="ticket.checked"
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2020-11-11 08:11:11 +00:00
|
|
|
<vn-td class="icon-field">
|
2020-10-28 08:57:39 +00:00
|
|
|
<vn-icon
|
2020-11-11 08:11:11 +00:00
|
|
|
ng-show="::ticket.isTaxDataChecked === 0"
|
|
|
|
translate-attr="{title: 'No verified data'}"
|
2020-10-28 08:57:39 +00:00
|
|
|
class="bright"
|
2020-11-11 08:11:11 +00:00
|
|
|
icon="icon-no036">
|
2020-10-28 08:57:39 +00:00
|
|
|
</vn-icon>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-icon
|
2020-11-11 08:11:11 +00:00
|
|
|
ng-show="::ticket.hasTicketRequest"
|
2020-10-28 08:57:39 +00:00
|
|
|
translate-attr="{title: 'Purchase request'}"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="bright"
|
|
|
|
icon="icon-100">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
2020-11-11 08:11:11 +00:00
|
|
|
ng-show="::ticket.isAvailable === 0"
|
2020-10-28 08:57:39 +00:00
|
|
|
translate-attr="{title: 'Not available'}"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="bright"
|
|
|
|
vn-tooltip="Not available"
|
|
|
|
icon="icon-unavailable">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
2020-11-11 08:11:11 +00:00
|
|
|
ng-show="::ticket.isFreezed"
|
2020-10-28 08:57:39 +00:00
|
|
|
translate-attr="{title: 'Client frozen'}"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="bright"
|
|
|
|
icon="icon-frozen">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
2020-11-11 08:11:11 +00:00
|
|
|
ng-show="::ticket.risk"
|
2020-10-28 08:57:39 +00:00
|
|
|
title="{{::$ctrl.$t('Risk')}}: {{ticket.risk}}"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="bright"
|
|
|
|
icon="icon-risk">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
2020-11-11 08:11:11 +00:00
|
|
|
<vn-td shrink>{{::ticket.id}}</vn-td>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-td class="expendable">
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
2020-07-30 10:51:19 +00:00
|
|
|
title="{{::ticket.userName}}"
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="workerDescriptor.show($event, ticket.salesPersonFk)"
|
|
|
|
class="link">
|
2020-07-30 10:51:19 +00:00
|
|
|
{{::ticket.userName | dashIfEmpty}}
|
2019-11-10 10:08:44 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-td expand>
|
2019-11-10 10:08:44 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(ticket.shipped)}}">
|
|
|
|
{{::ticket.shipped | date: 'dd/MM/yyyy'}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::ticket.shipped | date: 'HH:mm'}}</vn-td>
|
2021-02-03 16:01:43 +00:00
|
|
|
<vn-td shrink>{{::ticket.zoneLanding | date: 'HH:mm'}}</vn-td>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-td>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
2020-07-30 10:51:19 +00:00
|
|
|
title="{{::ticket.nickname}}"
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="clientDescriptor.show($event, ticket.clientFk)"
|
|
|
|
class="link">
|
2019-11-10 10:08:44 +00:00
|
|
|
{{::ticket.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td class="expendable">{{::ticket.province}}</vn-td>
|
2020-09-14 14:08:37 +00:00
|
|
|
<vn-td class="expendable">
|
|
|
|
<span
|
|
|
|
ng-show="ticket.refFk"
|
|
|
|
title="{{::ticket.refFk}}"
|
|
|
|
vn-click-stop="invoiceOutDescriptor.show($event, ticket.invoiceOutId)"
|
|
|
|
class="link">
|
2020-09-14 14:34:11 +00:00
|
|
|
{{::ticket.refFk}}
|
2020-09-14 14:08:37 +00:00
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
ng-show="!ticket.refFk"
|
|
|
|
class="chip {{$ctrl.stateColor(ticket)}}">
|
2020-06-18 11:50:52 +00:00
|
|
|
{{ticket.state}}
|
2019-11-10 10:08:44 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-td>
|
|
|
|
<span
|
|
|
|
title="{{::ticket.zoneName}}"
|
|
|
|
vn-click-stop="zoneDescriptor.show($event, ticket.zoneFk)"
|
|
|
|
class="link">
|
|
|
|
{{::ticket.zoneName | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td>{{::ticket.warehouse}}</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<span class="chip {{$ctrl.totalPriceColor(ticket)}}">
|
|
|
|
{{::ticket.total | currency: 'EUR': 2}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td actions>
|
|
|
|
<vn-icon-button
|
2020-11-24 11:10:02 +00:00
|
|
|
vn-anchor="::{
|
|
|
|
state: 'ticket.card.sale',
|
|
|
|
params: {id: ticket.id},
|
|
|
|
target: '_blank'
|
|
|
|
}"
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-tooltip="Go to lines"
|
|
|
|
icon="icon-lines">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="$ctrl.preview(ticket)"
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-tooltip="Preview"
|
2020-11-24 07:22:54 +00:00
|
|
|
icon="preview">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</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>
|
2020-03-09 10:50:23 +00:00
|
|
|
<div fixed-bottom-right>
|
|
|
|
<vn-vertical style="align-items: center;">
|
2020-06-16 10:36:34 +00:00
|
|
|
<vn-button class="round sm vn-mb-sm"
|
|
|
|
icon="print"
|
|
|
|
ng-show="$ctrl.totalChecked > 0"
|
2020-06-17 13:38:37 +00:00
|
|
|
ng-click="$ctrl.setDelivered()"
|
|
|
|
vn-tooltip="Set as delivered and open delivery note(s)"
|
2020-06-16 10:36:34 +00:00
|
|
|
tooltip-position="left">
|
|
|
|
</vn-button>
|
2020-03-10 13:28:50 +00:00
|
|
|
<vn-button class="round sm vn-mb-sm"
|
2020-03-09 10:50:23 +00:00
|
|
|
icon="icon-recovery"
|
|
|
|
ng-show="$ctrl.totalChecked > 0"
|
|
|
|
ng-click="$ctrl.openBalanceDialog()"
|
|
|
|
vn-tooltip="Payment on account..."
|
|
|
|
tooltip-position="left">
|
|
|
|
</vn-button>
|
2020-09-02 12:08:56 +00:00
|
|
|
<a ui-sref="ticket.create" vn-bind="+">
|
2020-03-09 10:50:23 +00:00
|
|
|
<vn-button class="round md vn-mb-sm"
|
|
|
|
icon="add"
|
|
|
|
vn-tooltip="New ticket"
|
|
|
|
tooltip-position="left">
|
|
|
|
</vn-button>
|
|
|
|
</a>
|
|
|
|
</vn-vertical>
|
|
|
|
</div>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-ticket-summary
|
2020-09-24 13:00:00 +00:00
|
|
|
ticket="$ctrl.selectedTicket"
|
|
|
|
model="model">
|
2020-04-25 09:50:04 +00:00
|
|
|
</vn-ticket-summary>
|
2019-10-26 23:30:01 +00:00
|
|
|
</vn-popup>
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
2019-04-25 05:57:26 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-zone-descriptor-popover
|
|
|
|
vn-id="zoneDescriptor">
|
|
|
|
</vn-zone-descriptor-popover>
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-client-balance-create
|
|
|
|
vn-id="balanceCreateDialog">
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-client-balance-create>
|
2020-09-14 11:11:53 +00:00
|
|
|
<vn-invoice-out-descriptor-popover
|
|
|
|
vn-id="invoiceOutDescriptor">
|
|
|
|
</vn-invoice-out-descriptor-popover>
|
2020-11-12 12:18:31 +00:00
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model"
|
2020-06-09 10:16:40 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
2020-05-29 09:10:58 +00:00
|
|
|
<slot-menu>
|
2020-06-08 10:14:27 +00:00
|
|
|
<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
|
2020-06-09 11:18:29 +00:00
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
2020-06-08 10:14:27 +00:00
|
|
|
ng-click="contextmenu.removeFilter()" >
|
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
2020-06-09 10:16:40 +00:00
|
|
|
<vn-item translate
|
|
|
|
ng-click="contextmenu.removeAllFilters()" >
|
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
2020-05-29 09:10:58 +00:00
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|