2018-11-29 10:09:08 +00:00
|
|
|
<vn-crud-model
|
2018-08-31 05:53:38 +00:00
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Sales"
|
2020-03-18 07:35:59 +00:00
|
|
|
link="{ticketFk: $ctrl.$params.id}"
|
2018-08-31 05:53:38 +00:00
|
|
|
filter="::$ctrl.filter"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="components"
|
|
|
|
auto-load="true">
|
2018-08-31 05:53:38 +00:00
|
|
|
</vn-crud-model>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-data-viewer model="model" class="vn-w-xl">
|
|
|
|
<vn-card class="vn-mt-md">
|
2021-06-14 13:52:46 +00:00
|
|
|
<div class="tableWrapper">
|
|
|
|
<table class="vn-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th number translate>Item</th>
|
|
|
|
<th translate expand>Description</th>
|
|
|
|
<th number translate>Quantity</th>
|
|
|
|
<th translate>Serie</th>
|
|
|
|
<th translate>Components</th>
|
|
|
|
<th number translate>Import</th>
|
|
|
|
<th number translate>Total</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody ng-repeat="sale in components track by sale.id">
|
|
|
|
<tr class="initial">
|
|
|
|
<td rowspan="{{::sale.components.length + 1}}" number>
|
|
|
|
<span
|
|
|
|
ng-click="itemDescriptor.show($event, sale.itemFk, sale.id)"
|
|
|
|
class="link">
|
2023-02-17 10:19:35 +00:00
|
|
|
{{sale.itemFk}}
|
2021-06-14 13:52:46 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td rowspan="{{::sale.components.length + 1}}" vn-fetched-tags>
|
2021-09-23 15:19:47 +00:00
|
|
|
<div>
|
|
|
|
<vn-one title="{{::sale.item.name}}">{{::sale.item.name}}</vn-one>
|
|
|
|
<vn-one ng-if="::sale.item.subName">
|
|
|
|
<h3 title="{{::sale.item.subName}}">{{::sale.item.subName}}</h3>
|
|
|
|
</vn-one>
|
|
|
|
</div>
|
2021-06-14 13:52:46 +00:00
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="::sale.item"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-fetched-tags>
|
|
|
|
</td>
|
|
|
|
<td rowspan="{{::sale.components.length + 1}}" number>
|
|
|
|
{{::sale.quantity}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
ng-repeat="saleComponent in sale.components track by saleComponent.componentFk"
|
|
|
|
class="components">
|
|
|
|
<td>
|
2024-07-01 09:11:16 +00:00
|
|
|
{{::saleComponent.component.componentType.name}}
|
2021-06-14 13:52:46 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{::saleComponent.component.name}}
|
|
|
|
</td>
|
|
|
|
<td number>
|
|
|
|
{{::saleComponent.value | currency: 'EUR':3}}
|
|
|
|
</td>
|
|
|
|
<td number>
|
|
|
|
{{::sale.quantity * saleComponent.value | currency: 'EUR':3}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2020-07-16 05:43:07 +00:00
|
|
|
<vn-side-menu side="right">
|
2020-09-09 13:49:59 +00:00
|
|
|
<div class="totalBox align-left">
|
|
|
|
<h6 class="align-center" translate>Total</h6>
|
|
|
|
<div> <vn-label translate>Base to commission</vn-label> {{$ctrl.base() | currency: 'EUR':2}} </div>
|
|
|
|
<div> <vn-label translate>Total without VAT</vn-label> {{$ctrl.getTotal() | currency: 'EUR': 3}} </div>
|
|
|
|
</div>
|
|
|
|
<div class="totalBox align-left">
|
|
|
|
<h6 class="align-center" translate>Components</h6>
|
|
|
|
<section ng-repeat="component in $ctrl.componentsList">
|
|
|
|
<div>
|
|
|
|
<vn-label>{{component.name}}</vn-label> {{component.value | currency: 'EUR': 3}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="totalBox align-left">
|
2020-10-29 10:09:58 +00:00
|
|
|
<h6 class="align-center" translate>Zone breakdown</h6>
|
2020-10-29 10:46:37 +00:00
|
|
|
<div> <vn-label translate>Price</vn-label> {{$ctrl.ticket.zonePrice | currency: 'EUR': 2}} </div>
|
|
|
|
<div> <vn-label translate>Bonus</vn-label> {{$ctrl.ticket.zoneBonus | currency: 'EUR': 2}} </div>
|
2020-10-29 10:09:58 +00:00
|
|
|
<div> <vn-label translate>Zone</vn-label>
|
|
|
|
<span
|
|
|
|
title="{{$ctrl.ticket.zone.name}}"
|
|
|
|
vn-click-stop="zoneDescriptor.show($event, $ctrl.ticket.zone.id)"
|
|
|
|
class="link">
|
|
|
|
{{$ctrl.ticket.zone.name | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div ng-show="$ctrl.ticket.zone.isVolumetric">
|
|
|
|
<vn-label translate>Volume</vn-label> {{$ctrl.ticketVolume}}
|
|
|
|
</div>
|
|
|
|
<div ng-show="!$ctrl.ticket.zone.isVolumetric">
|
|
|
|
<vn-label translate>Packages</vn-label> {{$ctrl.ticket.packages}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="totalBox align-left">
|
|
|
|
<h6 class="align-center" translate>Theorical cost</h6>
|
|
|
|
<div class="total"> <vn-label translate>Price total</vn-label> {{$ctrl.theoricalCost | currency: 'EUR': 2}} </div>
|
2020-09-09 13:49:59 +00:00
|
|
|
</div>
|
2020-07-16 05:43:07 +00:00
|
|
|
</vn-side-menu>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-item-descriptor-popover
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="item-descriptor"
|
2020-05-08 12:01:49 +00:00
|
|
|
warehouse-fk="$ctrl.ticket.warehouseFk">
|
2020-10-29 10:09:58 +00:00
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
<vn-zone-descriptor-popover
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="zone-descriptor">
|
2020-10-29 10:09:58 +00:00
|
|
|
</vn-zone-descriptor-popover>
|
|
|
|
|
|
|
|
|