2021-05-12 10:11:27 +00:00
|
|
|
<vn-crud-model
|
2020-11-11 11:34:07 +00:00
|
|
|
vn-id="model"
|
2020-11-13 08:30:40 +00:00
|
|
|
url="Travels/extraCommunityFilter"
|
2022-09-13 13:11:14 +00:00
|
|
|
filter="::$ctrl.filter"
|
2020-11-20 14:05:57 +00:00
|
|
|
data="travels"
|
2022-03-28 09:57:19 +00:00
|
|
|
order="shipped ASC, landed ASC, travelFk, loadPriority, agencyModeFk, evaNotes"
|
2021-05-12 10:11:27 +00:00
|
|
|
limit="20"
|
|
|
|
auto-load="true">
|
2020-11-11 11:34:07 +00:00
|
|
|
</vn-crud-model>
|
2020-11-13 08:30:40 +00:00
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
|
|
|
vn-focus
|
2020-11-20 14:05:57 +00:00
|
|
|
panel="vn-extra-community-search-panel"
|
2021-01-19 12:06:10 +00:00
|
|
|
info="Search by travel id or reference"
|
|
|
|
placeholder="Search by extra community travel"
|
2020-11-20 14:05:57 +00:00
|
|
|
suggested-filter="$ctrl.defaultFilter"
|
|
|
|
filter="$ctrl.defaultFilter"
|
2020-11-13 08:30:40 +00:00
|
|
|
auto-state="false"
|
|
|
|
model="model">
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
2022-09-13 13:11:14 +00:00
|
|
|
<vn-card class="travel-list scrollable">
|
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
options="$ctrl.smartTableOptions">
|
|
|
|
<slot-actions>
|
|
|
|
<section>
|
|
|
|
<vn-tool-bar class="vn-mb-md">
|
|
|
|
<vn-button
|
2022-09-14 06:08:07 +00:00
|
|
|
disabled="!$ctrl.hasDateRange"
|
2022-09-13 13:11:14 +00:00
|
|
|
icon="picture_as_pdf"
|
|
|
|
ng-click="$ctrl.showReport()"
|
|
|
|
vn-tooltip="Open as PDF">
|
|
|
|
</vn-button>
|
|
|
|
</vn-tool-bar>
|
|
|
|
</section>
|
|
|
|
</slot-actions>
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th field="id" shrink>
|
2022-09-14 06:08:07 +00:00
|
|
|
<span translate>Id</span>
|
2022-09-13 13:11:14 +00:00
|
|
|
</th>
|
2022-10-07 12:35:16 +00:00
|
|
|
<th field="cargoSupplierFk">
|
2022-09-13 13:11:14 +00:00
|
|
|
<span translate>Supplier</span>
|
|
|
|
</th>
|
2022-10-07 12:35:16 +00:00
|
|
|
<th field="agencyModeFk">
|
2022-09-14 10:45:40 +00:00
|
|
|
<span translate>Agency</span>
|
2022-09-13 13:11:14 +00:00
|
|
|
</th>
|
|
|
|
<th field="ref">
|
|
|
|
<span translate>Reference</span>
|
|
|
|
</th>
|
|
|
|
<th field="stickers" number>
|
|
|
|
<span translate>Packages</span>
|
|
|
|
</th>
|
|
|
|
<th field="kg" number>
|
|
|
|
<span translate>Bl. KG</span>
|
|
|
|
</th>
|
|
|
|
<th field="loadedKg" number>
|
|
|
|
<span translate>Phy. KG</span>
|
|
|
|
</th>
|
|
|
|
<th field="volumeKg" number>
|
|
|
|
<span translate>Vol. KG</span>
|
|
|
|
</th>
|
|
|
|
<th
|
|
|
|
field="warehouseOutFk"
|
|
|
|
translate-attr="{title: 'Warehouse Out'}">
|
|
|
|
<span translate>Wh. Out</span>
|
|
|
|
</th>
|
|
|
|
<th field="shipped">
|
|
|
|
<span translate>W. Shipped</span>
|
|
|
|
</th>
|
|
|
|
<th
|
|
|
|
field="warehouseInFk"
|
|
|
|
translate-attr="{title: 'Warehouse In'}">
|
|
|
|
<span translate>Wh. In</span>
|
|
|
|
</th>
|
|
|
|
<th field="landed">
|
|
|
|
<span translate>W. Landed</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody
|
|
|
|
ng-repeat="travel in travels"
|
|
|
|
class="vn-mb-md"
|
|
|
|
vn-droppable="$ctrl.onDrop($event)"
|
|
|
|
ng-attr-id="{{::travel.id}}"
|
|
|
|
vn-stop-click>
|
|
|
|
<tr
|
2022-09-14 06:08:07 +00:00
|
|
|
class="header"
|
|
|
|
vn-anchor="::{
|
|
|
|
state: 'travel.card.basicData',
|
|
|
|
params: {id: travel.id}
|
|
|
|
}">
|
2022-09-13 13:11:14 +00:00
|
|
|
<td vn-click-stop>
|
|
|
|
<span
|
|
|
|
class="link"
|
2020-11-20 14:05:57 +00:00
|
|
|
ng-click="travelDescriptor.show($event, travel.id)">
|
|
|
|
{{::travel.id}}
|
|
|
|
</span>
|
2022-09-13 13:11:14 +00:00
|
|
|
</td>
|
2022-10-07 12:35:16 +00:00
|
|
|
<td vn-click-stop>
|
2022-09-13 13:11:14 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="supplierDescriptor.show($event, travel.cargoSupplierFk)">
|
|
|
|
{{::travel.cargoSupplierNickname}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td expand>{{::travel.agencyModeName}}</td>
|
2022-09-14 06:08:07 +00:00
|
|
|
<td
|
|
|
|
name="reference"
|
2022-10-07 12:35:16 +00:00
|
|
|
class="td-editable"
|
2022-09-14 06:08:07 +00:00
|
|
|
vn-click-stop>
|
2022-09-13 13:11:14 +00:00
|
|
|
<vn-textfield
|
|
|
|
class="dense td-editable"
|
|
|
|
ng-model="travel.ref"
|
|
|
|
on-change="$ctrl.save(travel.id, {ref: value})">
|
|
|
|
</vn-textfield>
|
|
|
|
</td>
|
|
|
|
<td number>{{::travel.stickers}}</td>
|
2022-09-14 06:08:07 +00:00
|
|
|
<td
|
|
|
|
name="lockedKg"
|
2022-10-07 12:35:16 +00:00
|
|
|
class="number"
|
|
|
|
shrink
|
2022-09-14 06:08:07 +00:00
|
|
|
vn-click-stop>
|
2022-09-13 13:11:14 +00:00
|
|
|
<vn-input-number
|
|
|
|
number
|
2022-10-07 12:35:16 +00:00
|
|
|
shrink
|
2022-09-13 13:11:14 +00:00
|
|
|
class="td-editable number"
|
|
|
|
ng-model="travel.kg"
|
|
|
|
on-change="$ctrl.save(travel.id, {kg: value})"
|
2022-09-14 06:08:07 +00:00
|
|
|
min="0">
|
2022-09-13 13:11:14 +00:00
|
|
|
</vn-input-number>
|
|
|
|
</td>
|
|
|
|
<td number>{{::travel.loadedKg}}</td>
|
|
|
|
<td number>{{::travel.volumeKg}}</td>
|
|
|
|
<td expand>{{::travel.warehouseOutName}}</td>
|
|
|
|
<td expand>{{::travel.shipped | date: 'dd/MM/yyyy'}}</td>
|
|
|
|
<td expand>{{::travel.warehouseInName}}</td>
|
|
|
|
<td expand>{{::travel.landed | date: 'dd/MM/yyyy'}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
ng-repeat="entry in travel.entries"
|
|
|
|
draggable
|
2020-11-20 14:05:57 +00:00
|
|
|
ng-attr-id="{{::entry.id}}"
|
|
|
|
ng-click="$event.preventDefault()">
|
2022-09-13 13:11:14 +00:00
|
|
|
<td>
|
2020-11-20 14:05:57 +00:00
|
|
|
<span class="link"
|
|
|
|
ng-click="entryDescriptor.show($event, entry.id)">
|
|
|
|
{{::entry.id}}
|
|
|
|
</span>
|
2022-09-13 13:11:14 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="supplierDescriptor.show($event, entry.supplierFk)">
|
|
|
|
{{::entry.supplierName}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td></td>
|
2022-10-07 12:35:16 +00:00
|
|
|
<td class="td-editable">{{::entry.ref}}</td>
|
2022-09-13 13:11:14 +00:00
|
|
|
<td number>{{::entry.stickers}}</td>
|
|
|
|
<td number></td>
|
|
|
|
<td number>{{::entry.loadedkg}}</td>
|
|
|
|
<td number>{{::entry.volumeKg}}</td>
|
|
|
|
<td>
|
2021-01-08 09:16:38 +00:00
|
|
|
<span ng-if="::entry.notes" vn-tooltip="{{::entry.notes}}">
|
2020-11-20 14:05:57 +00:00
|
|
|
{{::entry.notes}}
|
|
|
|
</span>
|
2022-09-13 13:11:14 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2021-01-08 09:16:38 +00:00
|
|
|
<span ng-if="::entry.evaNotes" vn-tooltip="{{::entry.evaNotes}}">
|
2020-11-20 14:05:57 +00:00
|
|
|
{{::entry.evaNotes}}
|
|
|
|
</span>
|
2022-09-13 13:11:14 +00:00
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
</smart-table>
|
|
|
|
</vn-card>
|
2020-11-20 14:05:57 +00:00
|
|
|
<vn-travel-descriptor-popover
|
|
|
|
vn-id="travelDescriptor">
|
|
|
|
</vn-travel-descriptor-popover>
|
|
|
|
<vn-entry-descriptor-popover
|
|
|
|
vn-id="entryDescriptor">
|
|
|
|
</vn-entry-descriptor-popover>
|
2022-09-13 13:11:14 +00:00
|
|
|
<vn-supplier-descriptor-popover
|
|
|
|
vn-id="supplierDescriptor">
|
|
|
|
</vn-supplier-descriptor-popover>
|