fix(tickets): fixed ticket duplications on ticket summary and ticket index caused by pagination
gitea/salix/pipeline/head This commit looks good Details

Refs: 3093
This commit is contained in:
Joan Sanchez 2021-09-17 08:50:22 +02:00
parent 6e67dd408e
commit 786589f214
2 changed files with 15 additions and 2 deletions

View File

@ -6,7 +6,7 @@
filter="::$ctrl.ticketFilter"
limit="5"
data="tickets"
order="shipped DESC">
order="shipped DESC, id">
</vn-crud-model>
<vn-card class="summary">
<h5>
@ -293,6 +293,8 @@
<vn-tr>
<vn-th field="id" number>Id</vn-th>
<vn-th field="nickname" expand>Nickname</vn-th>
<vn-th field="agencyModeFk" expand>Agency</vn-th>
<vn-th field="routeFk" shrink>Route</vn-th>
<vn-th field="packages" shrink>Packages</vn-th>
<vn-th field="shipped" shrink-date>Date</vn-th>
<vn-th>State</vn-th>
@ -313,6 +315,17 @@
{{::ticket.nickname}}
</span>
</vn-td>
<vn-td expand>
{{::ticket.agencyMode.name}}
</vn-td>
<vn-td shrink>
<span
title="{{::ticket.route}}"
vn-click-stop="routeDescriptor.show($event, ticket.routeFk)"
class="link">
{{::ticket.routeFk}}
</span>
</vn-td>
<vn-td shrink>
{{::ticket.packages}}
</vn-td>

View File

@ -2,7 +2,7 @@
vn-id="model"
url="Tickets/filter"
limit="20"
order="shippedDate DESC, shippedHour ASC, zoneLanding ASC">
order="shippedDate DESC, shippedHour ASC, zoneLanding ASC, id">
</vn-crud-model>
<vn-portal slot="topbar">
<vn-searchbar