2018-04-18 07:47:05 +00:00
|
|
|
<form name="form">
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th number translate>Item</th>
|
|
|
|
<th translate style="text-align:center">Description</th>
|
|
|
|
<th number translate>Quantity</th>
|
2018-05-16 06:13:39 +00:00
|
|
|
<th number translate>Price (PPU)</th>
|
|
|
|
<th number translate>New price (PPU)</th>
|
|
|
|
<th number translate>Price difference</th>
|
2018-04-18 07:47:05 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-05-16 06:13:39 +00:00
|
|
|
<tr ng-repeat="sale in $ctrl.ticket.sale.items track by sale.id">
|
2018-04-18 07:47:05 +00:00
|
|
|
<td number>{{("000000"+sale.itemFk).slice(-6)}}</td>
|
2019-02-20 11:12:16 +00:00
|
|
|
<td expand>
|
|
|
|
<vn-fetched-tags
|
2019-03-22 14:05:15 +00:00
|
|
|
max-length="6"
|
|
|
|
item="::sale.item"
|
|
|
|
title="::sale.concept">
|
2019-02-20 11:12:16 +00:00
|
|
|
</vn-fetched-tags>
|
|
|
|
</td>
|
2018-04-18 07:47:05 +00:00
|
|
|
<td number>{{::sale.quantity}}</td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<td number>{{::sale.price | currency: 'EUR': 2}}</td>
|
|
|
|
<td number>{{::sale.component.newPrice | currency: 'EUR': 2}}</td>
|
|
|
|
<td number>{{::sale.component.difference | currency: 'EUR': 2}}</td>
|
2018-04-18 07:47:05 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
2018-05-16 06:13:39 +00:00
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3"></td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<td number><strong>{{$ctrl.totalPrice | currency: 'EUR': 2}}</strong></td>
|
|
|
|
<td number><strong>{{$ctrl.totalNewPrice | currency: 'EUR': 2}}</strong></td>
|
|
|
|
<td number><strong>{{$ctrl.totalPriceDifference | currency: 'EUR': 2}}</strong></td>
|
2018-05-16 06:13:39 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
2018-04-18 07:47:05 +00:00
|
|
|
</table>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
</form>
|