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-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>
|
2018-04-17 10:19:40 +00:00
|
|
|
<vn-label-value label="State"
|
2018-11-19 11:14:17 +00:00
|
|
|
value="{{::$ctrl.summary.state.state.name}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</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}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Agency"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.summary.agencyMode.name}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Warehouse"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.summary.warehouse.name}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Package size"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.summary.packages}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</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-07-19 12:09:50 +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"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.summary.landed | date: 'dd/MM/yyyy'}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Route"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.summary.routeFk}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Address"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.formattedAddress}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Phone"
|
2018-07-19 12:09:50 +00:00
|
|
|
value="{{::$ctrl.summary.address.phone}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</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">
|
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}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</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>
|
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>
|
2018-04-17 10:19:40 +00:00
|
|
|
</section>
|
2018-04-10 05:48:04 +00:00
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2018-12-10 13:24:10 +00:00
|
|
|
<vn-one margin-medium-v>
|
|
|
|
<h5 translate>Sale</h5>
|
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th number translate>Item</th>
|
|
|
|
<th translate>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>
|
|
|
|
<a ui-sref="claim.card.basicData({id: sale.claimBeginning.claimFk})">
|
|
|
|
<vn-icon
|
|
|
|
ng-show="sale.claimBeginning.claimFk"
|
|
|
|
orange
|
|
|
|
icon="icon-claims"
|
|
|
|
vn-tooltip="{{::$ctrl.$translate.instant('Claim')}}: {{::sale.claimBeginning.claimFk}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="sale.visible || sale.available"
|
2018-11-21 09:09:36 +00:00
|
|
|
orange
|
2018-12-10 13:24:10 +00:00
|
|
|
icon="warning"
|
|
|
|
vn-tooltip="Visible: {{::sale.visible || 0}} <br> {{::$ctrl.translate.instant('Available')}} {{::sale.available || 0}}">
|
2018-11-21 09:09:36 +00:00
|
|
|
</vn-icon>
|
2018-12-10 13:24:10 +00:00
|
|
|
<vn-icon ng-show="sale.reserved" icon="icon-reserva"></vn-icon>
|
|
|
|
</td>
|
|
|
|
<td number>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)"
|
|
|
|
class="link" pointer>
|
|
|
|
{{("000000"+sale.itemFk).slice(-6)}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td><vn-fetched-tags max-length="6" item="sale.item"/></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>
|
|
|
|
<tr ng-if="!$ctrl.summary.sales" class="list list-element">
|
|
|
|
<td colspan="8" style="text-align: center" translate>No results</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one margin-medium-v ng-if="$ctrl.summary.packagings.length != 0">
|
|
|
|
<h5 translate>Packages</h5>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Created</vn-th>
|
|
|
|
<vn-th number>Package</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="package in $ctrl.summary.packagings">
|
|
|
|
<vn-td number>{{package.created | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td number>{{package.packaging.item.name}}</vn-td>
|
|
|
|
<vn-td number>{{package.quantity}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one margin-medium ng-if="$ctrl.summary.services.length != 0">
|
|
|
|
<h5 translate>Service</h5>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Id</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th>Tax class</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="service in $ctrl.summary.services">
|
|
|
|
<vn-td number>{{::service.id}}</vn-td>
|
|
|
|
<vn-td>{{::service.description}}</vn-td>
|
|
|
|
<vn-td number>{{::service.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::service.price}}</vn-td>
|
|
|
|
<vn-td>{{::service.taxClass.description}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="$ctrl.summary.services.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal ng-if="$ctrl.summary.requests.length != 0">
|
|
|
|
<vn-one margin-medium-v>
|
|
|
|
<h5 translate>Purchase request</h5>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Id</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th number>Created</vn-th>
|
|
|
|
<vn-th>Requester</vn-th>
|
|
|
|
<vn-th>Atender</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th number>Sale id</vn-th>
|
|
|
|
<vn-th number>Ok</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="request in $ctrl.summary.requests">
|
|
|
|
<vn-td number>{{::request.id}}</vn-td>
|
|
|
|
<vn-td>{{::request.description}}</vn-td>
|
|
|
|
<vn-td number>{{::request.created | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td>{{::request.requester.firstName}} {{::request.requester.name}}</vn-td>
|
|
|
|
<vn-td>{{::request.atender.firstName}} {{::request.atender.name}}</vn-td>
|
|
|
|
<vn-td number>{{::request.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::request.price}}</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
ng-show="::request.saleFk"
|
|
|
|
ng-click="$ctrl.showDescriptor($event, request.sale)"
|
|
|
|
pointer class="link">
|
|
|
|
{{("000000"+request.saleFk).slice(-6)}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<vn-check vn-one
|
|
|
|
field="::request.isOk"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="$ctrl.summary.requests.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-one>
|
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>
|