salix/client/ticket/src/summary/index.html

102 lines
5.0 KiB
HTML
Raw Normal View History

<vn-card class="summary ticketSummary" pad-medium>
<vn-vertical margin-medium>
2018-03-14 11:12:06 +00:00
<vn-auto>
<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-07-24 10:22:49 +00:00
<vn-horizontal class="ticketSummary__data" pad-medium-v>
2018-04-10 05:48:04 +00:00
<vn-one>
<vn-label-value label="State"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.tracking.state.name}}">
</vn-label-value>
<vn-label-value label="Comercial Name"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.client.salesPerson.firstName}} {{$ctrl.summary.client.salesPerson.name}}">
</vn-label-value>
<vn-label-value label="Agency"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.agencyMode.name}}">
</vn-label-value>
<vn-label-value label="Warehouse"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.warehouse.name}}">
</vn-label-value>
<vn-label-value label="Package size"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.packages}}">
</vn-label-value>
2018-04-10 05:48:04 +00:00
</vn-one>
<vn-one>
<vn-label-value label="Shipped"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.shipped | date: 'dd/MM/yyyy HH:mm'}}">
</vn-label-value>
<vn-label-value label="Landed"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.landed | date: 'dd/MM/yyyy'}}">
</vn-label-value>
<vn-label-value label="Route"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.routeFk}}">
</vn-label-value>
<vn-label-value label="Address"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.formattedAddress}}">
</vn-label-value>
<vn-label-value label="Phone"
2018-07-19 12:09:50 +00:00
value="{{::$ctrl.summary.address.phone}}">
</vn-label-value>
2018-04-10 05:48:04 +00:00
</vn-one>
<vn-one class="ticketSummary__notes">
2018-07-19 12:09:50 +00:00
<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>
<vn-one class="ticketSummary__taxes">
<section>
2018-07-19 12:09:50 +00:00
<p><vn-label translate>Subtotal</vn-label> {{::$ctrl.summary.subTotal | currency:' €':2}}</p>
<p><vn-label translate>VAT</vn-label> {{::$ctrl.summary.VAT | currency:' €':2}}</p>
<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>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>
<vn-icon
ng-show="sale.visible || sale.available"
orange
icon="warning"
vn-tooltip="Visible: {{::sale.visible || 0}} <br> {{::$ctrl.translate.instant('Available')}} {{::sale.available || 0}}">
</vn-icon>
<vn-icon ng-show="sale.reserved" icon="icon-reserva"></vn-icon>
2018-04-10 05:48:04 +00:00
</td>
<td number>
<span
ng-click="$ctrl.showDescriptor($event, sale.itemFk)"
class="link" pointer>
{{("000000"+sale.itemFk).slice(-6)}}
</span>
2018-05-29 12:33:29 +00:00
</td>
2018-11-06 09:49:38 +00:00
<td><vn-fetched-tags max-length="6" item="sale.item"/></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>
2018-09-04 09:49:00 +00:00
<vn-item-descriptor-popover vn-id="descriptor"
quicklinks="$ctrl.quicklinks">
</vn-item-descriptor-popover>