2019-01-20 15:47:04 +00:00
|
|
|
<vn-card class="summary">
|
|
|
|
<h5 >{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}} - {{$ctrl.summary.nickname}}</h5>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="State"
|
|
|
|
value="{{$ctrl.summary.state.state.name}}">
|
|
|
|
</vn-label-value>
|
2019-01-24 09:04:18 +00:00
|
|
|
<vn-label-value label="Salesperson"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.summary.client.salesPerson.user.nickname}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</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>
|
2019-01-23 15:51:39 +00:00
|
|
|
<vn-label-value label="Invoice"
|
|
|
|
value="{{$ctrl.summary.refFk}}">
|
|
|
|
</vn-label-value>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Shipped"
|
|
|
|
value="{{$ctrl.summary.shipped | date: 'dd/MM/yyyy HH:mm'}}">
|
|
|
|
</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.formattedAddress}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Phone"
|
|
|
|
value="{{$ctrl.summary.address.phone}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one class="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>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one class="taxes">
|
2019-01-31 10:44:03 +00:00
|
|
|
<p><vn-label translate>Subtotal</vn-label> {{$ctrl.summary.subTotal | currency: 'EUR':2}}</p>
|
|
|
|
<p><vn-label translate>VAT</vn-label> {{$ctrl.summary.VAT | currency: 'EUR':2}}</p>
|
|
|
|
<p><vn-label><strong>Total</strong></vn-label> <strong>{{$ctrl.summary.total | currency: 'EUR':2}}</strong></p>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-auto name="sales">
|
|
|
|
<h4 translate>Sale</h4>
|
2019-01-30 22:47:06 +00:00
|
|
|
<vn-table class="vn-grid">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
<vn-th number>Item</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th number>Discount</vn-th>
|
|
|
|
<vn-th number>Amount</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="sale in $ctrl.summary.sales track by sale.id">
|
|
|
|
<vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<a ui-sref="claim.card.basicData({id: sale.claimBeginning.claimFk})">
|
|
|
|
<vn-icon
|
2019-02-12 14:39:37 +00:00
|
|
|
ng-show="sale.claimBeginning.claimFk"
|
2019-01-27 23:26:01 +00:00
|
|
|
icon="icon-claims"
|
|
|
|
vn-tooltip="{{::$ctrl.$translate.instant('Claim')}}: {{::sale.claimBeginning.claimFk}}">
|
2018-11-21 09:09:36 +00:00
|
|
|
</vn-icon>
|
2019-01-27 23:26:01 +00:00
|
|
|
</a>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="sale.visible || sale.available"
|
2019-02-08 16:49:51 +00:00
|
|
|
color-main
|
2019-01-27 23:26:01 +00:00
|
|
|
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>
|
2019-01-30 22:47:06 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
2019-01-27 23:26:01 +00:00
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
2019-01-27 23:26:01 +00:00
|
|
|
{{sale.itemFk | zeroFill:6}}
|
|
|
|
</span>
|
2019-01-30 22:47:06 +00:00
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand><vn-fetched-tags max-length="6" item="sale.item" title="sale.concept"/></vn-td>
|
2019-01-30 22:47:06 +00:00
|
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<vn-td number>{{::sale.price | currency: 'EUR':2}}</vn-td>
|
2019-01-30 22:47:06 +00:00
|
|
|
<vn-td number>{{::sale.discount}} %</vn-td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<vn-td number>{{::sale.quantity * sale.price | currency: 'EUR':2}}</vn-td>
|
2019-01-30 22:47:06 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
<vn-one ng-if="$ctrl.summary.packagings.length != 0">
|
|
|
|
<h4 translate>Packages</h4>
|
2019-01-27 23:26:01 +00:00
|
|
|
<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-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one ng-if="$ctrl.summary.services.length != 0">
|
|
|
|
<h4 translate>Service</h4>
|
2019-01-27 23:26:01 +00:00
|
|
|
<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>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>{{::service.description}}</vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<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-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-auto ng-if="$ctrl.summary.requests.length != 0">
|
|
|
|
<h4 translate>Purchase request</h4>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<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">
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>{{::request.description}}</vn-td>
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-td number>{{::request.created | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td>{{::request.requester.user.name}}</vn-td>
|
|
|
|
<vn-td>{{::request.atender.user.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.saleFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
|
|
|
{{request.saleFk | zeroFill:6}}
|
2019-01-27 23:26:01 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<vn-check vn-one
|
|
|
|
field="::request.isOk"
|
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-horizontal>
|
2018-05-29 12:33:29 +00:00
|
|
|
</vn-card>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="descriptor"
|
2018-09-04 09:49:00 +00:00
|
|
|
quicklinks="$ctrl.quicklinks">
|
|
|
|
</vn-item-descriptor-popover>
|