2022-11-14 13:30:35 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2022-12-20 10:36:37 +00:00
|
|
|
url="Tickets/getTicketsAdvance"
|
2022-12-20 10:36:58 +00:00
|
|
|
auto-load="false">
|
2022-11-14 13:30:35 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
|
|
|
vn-focus
|
|
|
|
panel="vn-advance-ticket-search-panel"
|
|
|
|
placeholder="Search tickets"
|
|
|
|
info="Search advance tickets by date"
|
2022-11-16 09:57:15 +00:00
|
|
|
suggested-filter="$ctrl.filterParams"
|
2022-11-14 13:30:35 +00:00
|
|
|
auto-state="false"
|
|
|
|
model="model">
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
|
|
|
<vn-card>
|
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
options="$ctrl.smartTableOptions"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
|
|
|
>
|
|
|
|
<slot-actions>
|
2023-10-27 13:06:20 +00:00
|
|
|
<vn-button
|
|
|
|
disabled="$ctrl.checked.length === 0"
|
2022-11-14 13:30:35 +00:00
|
|
|
icon="keyboard_double_arrow_left"
|
|
|
|
ng-click="moveTicketsAdvance.show($event)"
|
2023-10-27 13:06:20 +00:00
|
|
|
vn-tooltip="Advance tickets with negatives">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
disabled="$ctrl.checked.length === 0"
|
2023-10-30 13:16:25 +00:00
|
|
|
icon="alt_route"
|
2023-10-27 13:06:20 +00:00
|
|
|
ng-click="splitTickets.show($event)"
|
|
|
|
vn-tooltip="Advance tickets without negatives">
|
2022-11-14 13:30:35 +00:00
|
|
|
</vn-button>
|
|
|
|
</slot-actions>
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
2022-12-20 10:36:37 +00:00
|
|
|
<tr second-header>
|
|
|
|
<td></td>
|
2023-08-24 11:44:15 +00:00
|
|
|
<th colspan="9" translate>Destination</th>
|
|
|
|
<th colspan="11" translate>Origin</th>
|
2022-12-20 10:36:37 +00:00
|
|
|
</tr>
|
2022-11-14 13:30:35 +00:00
|
|
|
<tr>
|
|
|
|
<th shrink>
|
|
|
|
<vn-multi-check
|
|
|
|
model="model"
|
|
|
|
checked="$ctrl.checkAll"
|
|
|
|
check-field="checked">
|
|
|
|
</vn-multi-check>
|
|
|
|
</th>
|
2023-08-24 11:44:15 +00:00
|
|
|
<th shrink></th>
|
2023-02-10 07:46:54 +00:00
|
|
|
<th field="id">
|
2022-12-20 10:36:37 +00:00
|
|
|
<span translate>ID</span>
|
2022-11-14 13:30:35 +00:00
|
|
|
</th>
|
2023-02-10 07:46:54 +00:00
|
|
|
<th field="ipt" title="{{'Item Packing Type' | translate}}">
|
2022-11-14 13:30:35 +00:00
|
|
|
<span>IPT</span>
|
|
|
|
</th>
|
2023-08-24 11:44:15 +00:00
|
|
|
<th field="preparation">
|
|
|
|
<span translate>Preparation</span>
|
|
|
|
</th>
|
2023-02-10 07:46:54 +00:00
|
|
|
<th field="state">
|
2022-12-20 10:36:37 +00:00
|
|
|
<span translate>State</span>
|
|
|
|
</th>
|
2023-02-10 07:46:54 +00:00
|
|
|
<th field="liters">
|
|
|
|
<span translate>Liters</span>
|
|
|
|
</th>
|
|
|
|
<th field="lines">
|
|
|
|
<span translate>Lines</span>
|
|
|
|
</th>
|
2022-11-15 14:30:00 +00:00
|
|
|
<th field="totalWithVat">
|
|
|
|
<span translate>Import</span>
|
|
|
|
</th>
|
2023-02-10 07:46:54 +00:00
|
|
|
<th separator field="futureId">
|
2022-12-20 10:36:37 +00:00
|
|
|
<span translate>ID</span>
|
2022-11-14 13:30:35 +00:00
|
|
|
</th>
|
2023-02-10 08:02:44 +00:00
|
|
|
<th field="futureIpt" title="{{'Item Packing Type' | translate}}">
|
2022-12-20 10:36:37 +00:00
|
|
|
<span>IPT</span>
|
|
|
|
</th>
|
2023-02-10 07:46:54 +00:00
|
|
|
<th field="futureState">
|
2022-12-20 10:36:37 +00:00
|
|
|
<span translate>State</span>
|
2022-11-14 13:30:35 +00:00
|
|
|
</th>
|
2023-02-10 08:02:44 +00:00
|
|
|
<th field="futureLiters">
|
2022-11-14 13:30:35 +00:00
|
|
|
<span translate>Liters</span>
|
|
|
|
</th>
|
2023-10-24 07:23:03 +00:00
|
|
|
<th field="futureZoneFk">
|
|
|
|
<span translate>Zone</span>
|
|
|
|
</th>
|
2023-02-13 09:16:28 +00:00
|
|
|
<th field="notMovableLines">
|
|
|
|
<span translate>Not Movable</span>
|
2023-02-10 08:02:44 +00:00
|
|
|
</th>
|
|
|
|
<th field="futureLines">
|
2022-12-20 10:36:37 +00:00
|
|
|
<span translate>Lines</span>
|
2022-11-14 13:30:35 +00:00
|
|
|
</th>
|
2023-02-10 08:02:44 +00:00
|
|
|
<th field="futureTotalWithVat">
|
2022-11-14 13:30:35 +00:00
|
|
|
<span translate>Import</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="ticket in model.data">
|
|
|
|
<td>
|
|
|
|
<vn-check
|
|
|
|
ng-model="ticket.checked"
|
|
|
|
vn-click-stop>
|
|
|
|
</vn-check>
|
|
|
|
</td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<td>
|
|
|
|
<vn-icon
|
2023-10-25 13:48:19 +00:00
|
|
|
ng-show="ticket.futureAgency !== ticket.agency && ticket.agency"
|
2023-02-10 07:46:54 +00:00
|
|
|
icon="icon-agency-term"
|
|
|
|
title="{{$ctrl.agencies(ticket.futureAgency, ticket.agency)}}">
|
|
|
|
</vn-icon>
|
|
|
|
</td>
|
2022-11-14 13:30:35 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2023-02-10 07:46:54 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
2022-11-14 13:30:35 +00:00
|
|
|
class="link">
|
2023-10-30 13:16:25 +00:00
|
|
|
{{::ticket.id}}
|
2022-11-14 13:30:35 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<td>{{::ticket.ipt | dashIfEmpty}}</td>
|
2023-08-24 11:44:15 +00:00
|
|
|
<td>{{::ticket.preparation | dashIfEmpty}}</td>
|
2022-11-14 13:30:35 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2023-05-10 12:43:08 +00:00
|
|
|
class="chip {{ticket.classColor}}">
|
2023-02-10 07:46:54 +00:00
|
|
|
{{::ticket.state | dashIfEmpty}}
|
2022-11-14 13:30:35 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<td>{{::ticket.liters | dashIfEmpty}}</td>
|
|
|
|
<td>{{::ticket.lines | dashIfEmpty}}</td>
|
2022-11-15 14:30:00 +00:00
|
|
|
<td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<span
|
|
|
|
class="chip {{$ctrl.totalPriceColor(ticket.totalWithVat)}}"
|
|
|
|
title="{{$ctrl.totalPriceTitle(ticket.totalWithVat) | translate}}">
|
2023-10-30 13:16:25 +00:00
|
|
|
{{::ticket.totalWithVat | currency: 'EUR': 2}}
|
2022-11-15 14:30:00 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<td separator>
|
2022-11-14 13:30:35 +00:00
|
|
|
<span
|
2023-02-10 07:46:54 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.futureId)"
|
2022-11-14 13:30:35 +00:00
|
|
|
class="link">
|
2023-02-10 07:46:54 +00:00
|
|
|
{{::ticket.futureId | dashIfEmpty}}
|
2022-11-14 13:30:35 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<td>{{::ticket.futureIpt | dashIfEmpty}}</td>
|
2022-11-14 13:30:35 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2023-06-06 09:42:35 +00:00
|
|
|
class="chip {{ticket.futureClassColor}}">
|
2023-02-10 07:46:54 +00:00
|
|
|
{{::ticket.futureState | dashIfEmpty}}
|
2022-11-14 13:30:35 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2023-02-10 09:13:41 +00:00
|
|
|
<td>{{::ticket.futureLiters | dashIfEmpty}}</td>
|
2023-10-24 07:23:03 +00:00
|
|
|
<td>{{::ticket.futureZoneName | dashIfEmpty}}</td>
|
2023-02-13 09:16:28 +00:00
|
|
|
<td>{{::ticket.notMovableLines | dashIfEmpty}}</td>
|
2023-02-10 09:13:41 +00:00
|
|
|
<td>{{::ticket.futureLines | dashIfEmpty}}</td>
|
2022-11-14 13:30:35 +00:00
|
|
|
<td>
|
2023-02-10 07:46:54 +00:00
|
|
|
<span
|
|
|
|
class="chip {{$ctrl.totalPriceColor(ticket.futureTotalWithVat)}}"
|
|
|
|
title="{{$ctrl.totalPriceTitle(ticket.futureTotalWithVat) | translate}}">
|
|
|
|
{{::(ticket.futureTotalWithVat ? ticket.futureTotalWithVat : 0) | currency: 'EUR': 2}}
|
2022-11-14 13:30:35 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
</smart-table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="moveTicketsAdvance"
|
|
|
|
on-accept="$ctrl.moveTicketsAdvance()"
|
|
|
|
question="{{$ctrl.confirmationMessage}}"
|
|
|
|
message="Advance tickets">
|
|
|
|
</vn-confirm>
|
2023-10-27 13:06:20 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="splitTickets"
|
|
|
|
on-accept="$ctrl.splitTickets()"
|
|
|
|
question="{{$ctrl.confirmationMessage}}"
|
|
|
|
message="Advance tickets (without negatives)">
|
|
|
|
</vn-confirm>
|
|
|
|
<!-- Split progress -->
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="splitProgress"
|
2023-10-30 13:16:25 +00:00
|
|
|
message="Progress">
|
2023-11-03 06:57:53 +00:00
|
|
|
<tpl-body class="split-progress">
|
2023-10-27 13:06:20 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-spinner
|
|
|
|
enable="splitProgress.enable">
|
|
|
|
</vn-spinner>
|
|
|
|
<vn-label-value
|
2023-10-30 13:16:25 +00:00
|
|
|
label="Total progress"
|
|
|
|
value="[{{$ctrl.progress.length}}/{{::$ctrl.checked.length}}]">
|
2023-10-27 13:06:20 +00:00
|
|
|
</vn-label-value>
|
2023-10-30 13:16:25 +00:00
|
|
|
<span class="vn-mt-md" ng-if="$ctrl.splitErrors.length" translate>Error list</span>
|
|
|
|
<vn-vertical ng-repeat="error in $ctrl.splitErrors">
|
|
|
|
<vn-label-value
|
|
|
|
label="{{error.id}}"
|
|
|
|
value="{{error.reason}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-vertical>
|
2023-10-27 13:06:20 +00:00
|
|
|
</vn-vertical>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}" ng-click="splitProgress.cancel = true"/>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|
2022-11-14 13:30:35 +00:00
|
|
|
<vn-ticket-descriptor-popover
|
|
|
|
vn-id="ticketDescriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|