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>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
2020-05-29 10:10:04 +00:00
|
|
|
<vn-th prefix="t" field="salesPersonFk" class="expendable">Salesperson</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="shipped">Date</vn-th>
|
|
|
|
<vn-th>Hour</vn-th>
|
|
|
|
<vn-th field="nickname">Alias</vn-th>
|
2020-05-29 10:10:04 +00:00
|
|
|
<vn-th field="province" class="expendable">Province</vn-th>
|
2020-05-29 09:10:58 +00:00
|
|
|
<vn-th field="stateFk" >State</vn-th>
|
|
|
|
<vn-th field="agencyModeFk">Agency</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th field="warehouse">Warehouse</vn-th>
|
|
|
|
<vn-th field="refFk" class="expendable">Invoice</vn-th>
|
|
|
|
<vn-th field="zoneHour" shrink>Closure</vn-th>
|
|
|
|
<vn-th number>Total</vn-th>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2020-05-29 09:10:58 +00:00
|
|
|
<a ng-repeat="ticket in model.data" data-index="{{$index}}"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="clickable vn-tr search-result"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
|
|
|
|
<vn-td shrink>
|
|
|
|
<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>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.hasTicketRequest"
|
|
|
|
class="bright"
|
|
|
|
vn-tooltip="Purchase request"
|
|
|
|
icon="icon-100">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.isAvailable === 0"
|
|
|
|
class="bright"
|
|
|
|
vn-tooltip="Not available"
|
|
|
|
icon="icon-unavailable">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.isFreezed"
|
|
|
|
class="bright"
|
|
|
|
vn-tooltip="Client frozen"
|
|
|
|
icon="icon-frozen">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.risk"
|
|
|
|
class="bright"
|
|
|
|
vn-tooltip="{{::$ctrl.$translate.instant('Risk')}}: {{ticket.risk}}"
|
|
|
|
icon="icon-risk">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>{{::ticket.id}}</vn-td>
|
|
|
|
<vn-td expand class="expendable">
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="workerDescriptor.show($event, ticket.salesPersonFk)"
|
|
|
|
class="link">
|
2019-11-10 10:08:44 +00:00
|
|
|
{{::ticket.userNickname | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<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>
|
|
|
|
<vn-td expand>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
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>
|
|
|
|
<vn-td>
|
|
|
|
<span class="chip {{$ctrl.stateColor(ticket)}}">
|
|
|
|
{{::ticket.state}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::ticket.agencyMode}}</vn-td>
|
|
|
|
<vn-td>{{::ticket.warehouse}}</vn-td>
|
|
|
|
<vn-td class="expendable">{{::ticket.refFk | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td shrink>{{::ticket.zoneLanding | date: 'HH:mm'}}</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-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="$ctrl.goToLines(ticket.id)"
|
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"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</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-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>
|
|
|
|
<a ui-sref="ticket.create">
|
|
|
|
<vn-button class="round md vn-mb-sm"
|
|
|
|
icon="add"
|
|
|
|
vn-bind="+"
|
|
|
|
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
|
|
|
|
ticket="$ctrl.selectedTicket">
|
|
|
|
</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>
|
|
|
|
<vn-client-balance-create
|
|
|
|
vn-id="balanceCreateDialog">
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-client-balance-create>
|
2020-05-29 09:10:58 +00:00
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item ng-click="$ctrl.filterBySelection({event: $parent.$ctrl.$eventTarget})" translate>Filter by selection</vn-item>
|
|
|
|
<vn-item ng-click="$ctrl.excludeSelection($event, $parent.$ctrl.eventTarget)" translate>Exclude selection</vn-item>
|
|
|
|
<vn-item ng-click="$ctrl.removeFilter()" translate>Remove filter</vn-item>
|
|
|
|
|
|
|
|
<vn-item ng-click="contextmenu.filterBySelection()" translate style="color:green">Filter by selection 2</vn-item>
|
|
|
|
<vn-item ng-click="contextmenu.excludeSelection()" translate style="color:green">Exclude selection 2</vn-item>
|
|
|
|
<vn-item ng-click="contextmenu.removeFilter()" translate style="color:green">Remove filter 2</vn-item>
|
|
|
|
<!-- <p>Quicklinks</p>
|
|
|
|
<vn-item>Order DESC</vn-item>
|
|
|
|
<vn-item>Order ASC</vn-item> -->
|
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|