2022-11-07 14:55:17 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="Tickets/getTicketsFuture"
|
2022-12-20 08:54:28 +00:00
|
|
|
auto-load="false">
|
2022-11-07 14:55:17 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
|
|
|
vn-focus
|
|
|
|
panel="vn-future-ticket-search-panel"
|
|
|
|
placeholder="Search tickets"
|
|
|
|
info="Search future tickets by date"
|
2022-11-16 10:10:00 +00:00
|
|
|
suggested-filter="$ctrl.filterParams"
|
2022-11-07 14:55:17 +00:00
|
|
|
auto-state="false"
|
2022-11-10 14:54:00 +00:00
|
|
|
model="model">
|
2022-11-07 14:55:17 +00:00
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
|
|
|
<vn-card>
|
2022-11-08 14:56:58 +00:00
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
options="$ctrl.smartTableOptions"
|
2022-11-10 14:54:00 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
2022-11-07 14:55:17 +00:00
|
|
|
>
|
|
|
|
<slot-actions>
|
|
|
|
<vn-button disabled="$ctrl.checked.length === 0"
|
2022-11-14 08:56:23 +00:00
|
|
|
icon="keyboard_double_arrow_right"
|
2022-11-07 14:55:17 +00:00
|
|
|
ng-click="moveTicketsFuture.show($event)"
|
|
|
|
vn-tooltip="Future tickets">
|
|
|
|
</vn-button>
|
|
|
|
</slot-actions>
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
2022-12-16 12:42:23 +00:00
|
|
|
<tr second-header>
|
|
|
|
<td></td>
|
|
|
|
<th colspan="7" translate>Origin</th>
|
|
|
|
<th colspan="4" translate>Destination</th>
|
|
|
|
</tr>
|
2022-11-07 14:55:17 +00:00
|
|
|
<tr>
|
|
|
|
<th shrink>
|
|
|
|
<vn-multi-check
|
|
|
|
model="model"
|
|
|
|
checked="$ctrl.checkAll"
|
|
|
|
check-field="checked">
|
|
|
|
</vn-multi-check>
|
|
|
|
</th>
|
2022-12-20 08:54:28 +00:00
|
|
|
<th field="totalProblems">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Problems</span>
|
|
|
|
</th>
|
|
|
|
<th field="id">
|
2022-12-16 12:42:23 +00:00
|
|
|
<span translate>ID</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</th>
|
2022-12-14 11:17:12 +00:00
|
|
|
<th field="shipped">
|
2022-12-16 12:42:23 +00:00
|
|
|
<span translate>Date</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</th>
|
2022-12-14 11:17:12 +00:00
|
|
|
<th field="ipt" title="Item Packing Type">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span>IPT</span>
|
|
|
|
</th>
|
2022-12-16 12:42:23 +00:00
|
|
|
<th field="state">
|
|
|
|
<span translate>State</span>
|
|
|
|
</th>
|
2022-12-14 11:17:12 +00:00
|
|
|
<th field="liters">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Liters</span>
|
|
|
|
</th>
|
2022-12-16 12:42:23 +00:00
|
|
|
<th shrink field="lines">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Available Lines</span>
|
|
|
|
</th>
|
2022-12-20 08:54:28 +00:00
|
|
|
<th field="futureId" separator>
|
2022-12-16 12:42:23 +00:00
|
|
|
<span translate>ID</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</th>
|
2022-12-20 08:54:28 +00:00
|
|
|
<th field="futureShipped">
|
2022-12-16 12:42:23 +00:00
|
|
|
<span translate>Date</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</th>
|
2022-12-20 08:54:28 +00:00
|
|
|
<th field="futureIpt" title="Item Packing Type">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span>IPT</span>
|
|
|
|
</th>
|
2022-12-20 08:54:28 +00:00
|
|
|
<th shrink field="futureState">
|
2022-12-16 12:42:23 +00:00
|
|
|
<span translate>State</span>
|
|
|
|
</th>
|
2022-11-07 14:55:17 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="ticket in model.data">
|
|
|
|
<td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<vn-check
|
2022-11-07 14:55:17 +00:00
|
|
|
ng-model="ticket.checked"
|
|
|
|
vn-click-stop>
|
|
|
|
</vn-check>
|
|
|
|
</td>
|
|
|
|
<td class="icon-field">
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.isTaxDataChecked === 0"
|
|
|
|
translate-attr="{title: 'No verified data'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-no036">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.hasTicketRequest"
|
|
|
|
translate-attr="{title: 'Purchase request'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-buyrequest">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.itemShortage"
|
|
|
|
translate-attr="{title: 'Not visible'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-unavailable">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.isFreezed"
|
|
|
|
translate-attr="{title: 'Client frozen'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-frozen">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.risk"
|
|
|
|
title="{{::$ctrl.$t('Risk')}}: {{ticket.risk}}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-risk">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.hasComponentLack"
|
|
|
|
translate-attr="{title: 'Component lack'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-components">
|
|
|
|
</vn-icon>
|
2023-07-03 09:38:38 +00:00
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.hasRounding"
|
2023-07-19 10:38:13 +00:00
|
|
|
translate-attr="{title: 'Rounding'}"
|
2023-07-03 09:38:38 +00:00
|
|
|
class="bright"
|
|
|
|
icon="sync_problem">
|
|
|
|
</vn-icon>
|
2022-11-07 14:55:17 +00:00
|
|
|
</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td><span
|
2022-11-07 14:55:17 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
|
|
|
class="link">
|
|
|
|
{{::ticket.id}}
|
|
|
|
</span></td>
|
2023-01-16 11:22:22 +00:00
|
|
|
<td>
|
2022-12-14 11:17:12 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(ticket.shipped)}}">
|
2023-01-16 11:22:22 +00:00
|
|
|
{{::ticket.shipped | date: 'dd/MM/yyyy HH:mm'}}
|
2022-11-08 14:56:58 +00:00
|
|
|
</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</td>
|
2023-01-17 07:54:26 +00:00
|
|
|
<td>{{::ticket.ipt | dashIfEmpty}}</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2023-05-10 12:49:19 +00:00
|
|
|
class="chip {{ticket.classColor}}">
|
2022-11-08 14:56:58 +00:00
|
|
|
{{::ticket.state}}
|
|
|
|
</span>
|
|
|
|
</td>
|
2022-11-07 14:55:17 +00:00
|
|
|
<td>{{::ticket.liters}}</td>
|
|
|
|
<td>{{::ticket.lines}}</td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<td separator>
|
2022-11-08 14:56:58 +00:00
|
|
|
<span
|
2022-12-20 08:54:28 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.futureId)"
|
2022-11-07 14:55:17 +00:00
|
|
|
class="link">
|
2022-12-20 08:54:28 +00:00
|
|
|
{{::ticket.futureId}}
|
2022-11-08 14:56:58 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2023-01-16 11:22:22 +00:00
|
|
|
<td>
|
2022-12-20 08:54:28 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(ticket.futureShipped)}}">
|
2023-01-16 11:22:22 +00:00
|
|
|
{{::ticket.futureShipped | date: 'dd/MM/yyyy HH:mm'}}
|
2022-11-08 14:56:58 +00:00
|
|
|
</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</td>
|
2023-01-17 07:54:26 +00:00
|
|
|
<td>{{::ticket.futureIpt | dashIfEmpty}}</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2023-06-06 09:42:35 +00:00
|
|
|
class="chip {{ticket.futureClassColor}}">
|
2022-12-20 08:54:28 +00:00
|
|
|
{{::ticket.futureState}}
|
2022-11-08 14:56:58 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2022-11-07 14:55:17 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
</smart-table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="moveTicketsFuture"
|
|
|
|
on-accept="$ctrl.moveTicketsFuture()"
|
2022-11-08 14:56:58 +00:00
|
|
|
question="{{$ctrl.confirmationMessage}}"
|
2022-11-07 14:55:17 +00:00
|
|
|
message="Move tickets">
|
|
|
|
</vn-confirm>
|
2022-11-08 14:56:58 +00:00
|
|
|
<vn-ticket-descriptor-popover
|
2022-11-07 14:55:17 +00:00
|
|
|
vn-id="ticketDescriptor">
|
2022-11-08 14:56:58 +00:00
|
|
|
</vn-ticket-descriptor-popover>
|