2018-04-23 09:56:59 +00:00
|
|
|
<vn-card class="summary ticketSummary" pad-medium>
|
|
|
|
<vn-vertical margin-medium>
|
2018-03-14 11:12:06 +00:00
|
|
|
<vn-auto>
|
2018-04-17 10:19:40 +00:00
|
|
|
<h5 text-center pad-small-v class="title">{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}} - {{$ctrl.summary.nickname}}</h5>
|
2018-03-14 11:12:06 +00:00
|
|
|
</vn-auto>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-horizontal class="ticketSummary__data">
|
2018-04-10 05:48:04 +00:00
|
|
|
<vn-one>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-label-value label="State"
|
2018-05-08 07:40:37 +00:00
|
|
|
value="{{$ctrl.summary.tracking.state.name}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Comercial Name"
|
|
|
|
value="{{$ctrl.summary.client.salesPerson.firstName}} {{$ctrl.summary.client.salesPerson.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Agency"
|
|
|
|
value="{{$ctrl.summary.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Warehouse"
|
|
|
|
value="{{$ctrl.summary.warehouse.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Package size"
|
|
|
|
value="{{$ctrl.summary.packages}}">
|
|
|
|
</vn-label-value>
|
2018-04-10 05:48:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-label-value label="Shipped"
|
2018-05-15 07:43:45 +00:00
|
|
|
value="{{$ctrl.summary.shipped | date: 'dd/MM/yyyy HH:mm'}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Landed"
|
|
|
|
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy'}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Route"
|
|
|
|
value="{{$ctrl.summary.routeFk}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Address"
|
2018-07-18 07:23:51 +00:00
|
|
|
value="{{$ctrl.formattedAddress}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Phone"
|
|
|
|
value="{{$ctrl.summary.address.phone}}">
|
|
|
|
</vn-label-value>
|
2018-04-10 05:48:04 +00:00
|
|
|
</vn-one>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-one class="ticketSummary__notes">
|
|
|
|
<vn-label-value label="{{note.observationType.description}}" ng-repeat="note in $ctrl.summary.notes track by note.id"
|
|
|
|
value="{{note.description}}">
|
|
|
|
</vn-label-value>
|
2018-04-10 05:48:04 +00:00
|
|
|
</vn-one>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-one class="ticketSummary__taxes">
|
|
|
|
<section>
|
|
|
|
<p><vn-label translate>Subtotal</vn-label> {{$ctrl.summary.subTotal | currency:' €':2}}</p>
|
2018-06-19 10:10:38 +00:00
|
|
|
<p><vn-label translate>VAT</vn-label> {{$ctrl.summary.VAT | currency:' €':2}}</p>
|
2018-04-17 10:19:40 +00:00
|
|
|
<p><vn-label><strong>Total</strong></vn-label> <strong>{{$ctrl.summary.total | currency:' €':2}}</strong></p>
|
|
|
|
</section>
|
2018-04-10 05:48:04 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th number translate>Item</th>
|
2018-05-29 11:51:39 +00:00
|
|
|
<th translate>Description</th>
|
2018-04-10 05:48:04 +00:00
|
|
|
<th number translate>Quantity</th>
|
|
|
|
<th number translate>Price</th>
|
|
|
|
<th number translate>Discount</th>
|
|
|
|
<th number translate>Amount</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="sale in $ctrl.summary.sales track by sale.id">
|
|
|
|
<td>
|
|
|
|
<!-- <i pointer
|
|
|
|
class="material-icons"
|
|
|
|
vn-tooltip="delete expedition"
|
|
|
|
ng-click="$ctrl.deleteExpedition(expedition)">warning</i> -->
|
2018-06-19 07:09:49 +00:00
|
|
|
<vn-icon ng-show="sale.reserved" icon="icon-reserved"></vn-icon>
|
2018-04-10 05:48:04 +00:00
|
|
|
</td>
|
2018-05-29 12:33:29 +00:00
|
|
|
<td number pointer
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)">
|
|
|
|
{{("000000"+sale.itemFk).slice(-6)}}
|
|
|
|
</td>
|
2018-07-19 08:44:57 +00:00
|
|
|
<td><vn-fetched-tags concept="sale.concept" tags="sale.item.tags"/></td>
|
2018-04-10 05:48:04 +00:00
|
|
|
<td number>{{::sale.quantity}}</td>
|
|
|
|
<td number>{{::sale.price | currency:'€':2}}</td>
|
|
|
|
<td number>{{::sale.discount}} %</td>
|
|
|
|
<td number>{{::sale.quantity * sale.price | currency:'€':2}}</td>
|
|
|
|
</tr>
|
2018-07-09 12:38:08 +00:00
|
|
|
<tr ng-if="!$ctrl.summary.sales" class="list list-element">
|
|
|
|
<td colspan="8" style="text-align: center" translate>No results</td>
|
|
|
|
</tr>
|
2018-04-10 05:48:04 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-03-14 11:12:06 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
2018-05-29 12:33:29 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|