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-pa-lg text-right" name="base-sum">
|
|
|
|
<span translate>Base to commission</span> {{$ctrl.base() | currency: 'EUR':3}}
|
2018-04-13 14:03:43 +00:00
|
|
|
</vn-card>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-card class="vn-mt-md">
|
|
|
|
<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 style="height: initial;">
|
|
|
|
<td rowspan="{{::sale.components.length + 1}}" number>
|
|
|
|
<span
|
2020-05-08 12:01:49 +00:00
|
|
|
ng-click="descriptor.show($event, sale.itemFk, sale.id)"
|
2019-10-11 15:38:04 +00:00
|
|
|
class="link">
|
|
|
|
{{sale.itemFk | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td rowspan="{{::sale.components.length + 1}}" expand>
|
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="::sale.item"
|
|
|
|
name="::sale.concept"
|
|
|
|
sub-name="::sale.item.subName">
|
|
|
|
</vn-fetched-tags>
|
|
|
|
</td>
|
|
|
|
<td rowspan="{{::sale.components.length + 1}}" number>
|
|
|
|
{{::sale.quantity}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
2019-12-27 07:01:53 +00:00
|
|
|
ng-repeat="saleComponent in sale.components track by saleComponent.componentFk"
|
2019-10-11 15:38:04 +00:00
|
|
|
class="components">
|
|
|
|
<td>
|
2019-12-27 07:01:53 +00:00
|
|
|
{{::saleComponent.component.componentType.type}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2019-12-27 07:01:53 +00:00
|
|
|
{{::saleComponent.component.name}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</td>
|
|
|
|
<td number>
|
2019-12-27 07:01:53 +00:00
|
|
|
{{::saleComponent.value | currency: 'EUR':3}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</td>
|
|
|
|
<td number>
|
2019-12-27 07:01:53 +00:00
|
|
|
{{::sale.quantity * saleComponent.value | currency: 'EUR':3}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="descriptor"
|
2020-05-08 12:01:49 +00:00
|
|
|
warehouse-fk="$ctrl.ticket.warehouseFk">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-item-descriptor-popover>
|