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"
|
|
|
|
value="{{$ctrl.summary.ticketTracking.state.name}}">
|
|
|
|
</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"
|
|
|
|
value="{{$ctrl.summary.shipped | date: 'dd/MM/yyyy'}}">
|
|
|
|
</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"
|
|
|
|
value="{{$ctrl.summary.address.street}}">
|
|
|
|
</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-04-17 12:49:55 +00:00
|
|
|
<p><vn-label translate>VAT</vn-label> {{$ctrl.summary.totalTax | 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>
|
|
|
|
<th translate style="text-align:center">Description</th>
|
|
|
|
<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> -->
|
|
|
|
</td>
|
|
|
|
<td number>{{("000000"+sale.itemFk).slice(-6)}}</td>
|
|
|
|
<td><vn-fetched-tags sale="sale"/></td>
|
|
|
|
<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>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-03-14 11:12:06 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|