salix/modules/travel/front/summary/index.html

173 lines
7.2 KiB
HTML
Raw Normal View History

2019-10-24 10:49:18 +00:00
<vn-card class="summary">
2020-11-23 12:41:51 +00:00
<h5>
2021-01-12 10:00:42 +00:00
<a
ng-if="::$ctrl.travelData.id"
2020-11-23 12:41:51 +00:00
vn-tooltip="Go to the travel"
ui-sref="travel.card.summary({id: {{::$ctrl.travelData.id}}})"
name="goToSummary">
<vn-icon-button icon="launch"></vn-icon-button>
</a>
<span>{{$ctrl.travelData.id}} - {{$ctrl.travelData.ref}}</span>
2020-12-28 13:53:26 +00:00
<vn-travel-descriptor-menu travel-id="$ctrl.travel.id"/>
2020-11-23 12:41:51 +00:00
</h5>
2019-10-24 10:49:18 +00:00
<vn-horizontal>
<vn-one>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Shipped"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.shipped | date: 'dd/MM/yyyy'}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Warehouse Out"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.warehouseOut.name}}">
</vn-label-value>
<vn-check
label="Delivered"
ng-model="$ctrl.travelData.isDelivered"
2019-10-24 10:49:18 +00:00
disabled="true">
</vn-check>
</vn-one>
<vn-one>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Landed"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.landed | date: 'dd/MM/yyyy'}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Warehouse In"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.warehouseIn.name}}">
</vn-label-value>
<vn-check
label="Received"
ng-model="$ctrl.travelData.isReceived"
2019-10-24 10:49:18 +00:00
disabled="true">
</vn-check>
</vn-one>
<vn-one>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Agency"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.agency.name}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Reference"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.ref}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="m³"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.m3}}">
</vn-label-value>
2020-04-25 09:50:04 +00:00
<vn-label-value
label="Total entries"
2019-10-24 10:49:18 +00:00
value="{{$ctrl.travelData.totalEntries}}">
</vn-label-value>
</vn-one>
<vn-auto>
<h4 translate>Entries</h4>
2020-01-08 12:52:04 +00:00
<vn-table>
2019-10-24 10:49:18 +00:00
<vn-thead>
<vn-tr>
<vn-th shrink>Confirmed</vn-th>
<vn-th shrink>Entry Id</vn-th>
<vn-th shrink>Supplier</vn-th>
<vn-th shrink>Reference</vn-th>
<vn-th shrink title="Half box">HB</vn-th>
2020-01-08 12:55:26 +00:00
<vn-th shrink>Freight</vn-th>
<vn-th shrink>Package</vn-th>
2019-10-24 10:49:18 +00:00
<vn-th shrink>CC</vn-th>
<vn-th shrink>Pallet</vn-th>
<vn-th shrink></vn-th>
2019-10-24 10:49:18 +00:00
<vn-th shrink></vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="entry in $ctrl.entries">
2020-01-08 12:52:04 +00:00
<vn-td shrink>
<vn-check
2020-05-20 11:19:02 +00:00
ng-model="entry.isConfirmed"
2020-01-08 12:52:04 +00:00
disabled="true">
</vn-check>
</vn-td>
<vn-td shrink>
<span class="link"
vn-click-stop="entryDescriptor.show($event, entry.id)">
{{entry.id}}
</span>
</vn-td>
2020-06-02 08:17:46 +00:00
<vn-td expand>{{entry.supplierName}}</vn-td>
2019-10-24 10:49:18 +00:00
<vn-td shrink>{{entry.ref}}</vn-td>
<vn-td shrink>{{entry.hb}}</vn-td>
2020-01-08 12:52:04 +00:00
<vn-td shrink>{{entry.freightValue | currency: 'EUR': 2}}</vn-td>
<vn-td shrink>{{entry.packageValue | currency: 'EUR': 2}}</vn-td>
2019-10-24 10:49:18 +00:00
<vn-td shrink>{{entry.cc}}</vn-td>
<vn-td shrink>{{entry.pallet}}</vn-td>
<vn-td shrink>{{entry.m3}}</vn-td>
<vn-td shrink>
<vn-icon
ng-if="entry.notes.length"
vn-tooltip="{{entry.notes}}"
2020-05-06 12:38:09 +00:00
icon="insert_drive_file"
class="bright">
2019-10-24 10:49:18 +00:00
</vn-icon>
<vn-icon
2020-01-08 12:52:04 +00:00
ng-if="entry.observation.length"
2019-12-05 13:20:11 +00:00
vn-tooltip="{{entry.observation}}"
2020-05-06 12:38:09 +00:00
icon="insert_drive_file"
class="bright">
2019-10-24 10:49:18 +00:00
</vn-icon>
</vn-td>
</vn-tr>
</vn-tbody>
2020-01-08 12:52:04 +00:00
<vn-tfoot>
<vn-tr>
<vn-td></vn-td>
<vn-td></vn-td>
<vn-td></vn-td>
<vn-td></vn-td>
<vn-td shrink><strong>{{$ctrl.total('hb')}}</strong></vn-td>
<vn-td shrink><strong>{{$ctrl.total('freightValue') | currency: 'EUR': 2}}</strong></vn-td>
<vn-td shrink><strong>{{$ctrl.total('packageValue') | currency: 'EUR': 2}}</strong></vn-td>
2020-05-20 11:19:02 +00:00
<vn-td shrink><strong>{{$ctrl.total('cc') | number:2}}</strong></vn-td>
<vn-td shrink><strong>{{$ctrl.total('pallet') | number:2}}</strong></vn-td>
<vn-td shrink><strong>{{$ctrl.total('m3') | number:2}}</strong></vn-td>
2020-01-08 12:52:04 +00:00
<vn-td></vn-td>
</vn-tr>
</vn-tfoot>
2019-10-24 10:49:18 +00:00
</vn-table>
</vn-auto>
2020-05-20 11:19:02 +00:00
<vn-auto ng-if="$ctrl.travelThermographs.length != 0">
<h4 ng-show="$ctrl.isBuyer">
<a
2021-01-12 10:00:42 +00:00
ui-sref="travel.card.thermograph.index({id:$ctrl.travelData.id})"
target="_self">
<span translate vn-tooltip="Go to">Thermograph</span>
</a>
</h4>
<h4
2021-01-12 09:11:37 +00:00
translate
ng-show="!$ctrl.isBuyer">
Thermograph
</h4>
2020-01-13 10:53:10 +00:00
<vn-table>
<vn-thead>
<vn-tr>
<vn-th>Code</vn-th>
<vn-th>Temperature</vn-th>
<vn-th expand>State</vn-th>
<vn-th>Destination</vn-th>
<vn-th expand>Created</vn-th>
2020-01-13 10:53:10 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="thermograph in $ctrl.travelThermographs">
<vn-td>{{thermograph.thermographFk}} </vn-td>
<vn-td>{{thermograph.temperatureFk}}</vn-td>
2020-01-13 10:53:10 +00:00
<vn-td>{{thermograph.result}}</vn-td>
<vn-td>{{thermograph.warehouse.name}}</vn-td>
<vn-td expand>{{thermograph.created | date: 'dd/MM/yyyy'}}</vn-td>
2020-01-13 10:53:10 +00:00
</vn-tr>
</vn-tbody>
</vn-table>
</vn-auto>
2019-10-24 10:49:18 +00:00
</vn-horizontal>
</vn-card>
<vn-entry-descriptor-popover
vn-id="entryDescriptor">
</vn-entry-descriptor-popover>