2020-02-07 12:38:32 +00:00
|
|
|
<vn-crud-model
|
|
|
|
url="TicketUpdateActions"
|
|
|
|
data="ticketUpdateActions"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
2020-06-05 08:01:21 +00:00
|
|
|
<vn-card ng-show="$ctrl.totalPriceDifference" class="vn-w-lg vn-pa-md vn-mb-md">
|
2020-02-07 12:38:32 +00:00
|
|
|
<h6
|
|
|
|
class="text-secondary"
|
|
|
|
style="font-weight: normal;"
|
|
|
|
translate>
|
|
|
|
Charge difference to
|
|
|
|
</h6>
|
|
|
|
<div ng-repeat="action in ticketUpdateActions">
|
|
|
|
<vn-radio
|
2020-02-10 06:03:09 +00:00
|
|
|
ng-model="$ctrl.ticket.option"
|
|
|
|
label="{{::action.description}}"
|
|
|
|
val={{::action.id}}>
|
2020-02-07 12:38:32 +00:00
|
|
|
</vn-radio>
|
|
|
|
</div>
|
|
|
|
</vn-card>
|
2019-11-14 14:24:08 +00:00
|
|
|
<vn-card class="vn-w-lg">
|
|
|
|
<vn-table>
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Item</vn-th>
|
|
|
|
<vn-th style="text-align:center">Description</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price (PPU)</vn-th>
|
2020-02-26 12:18:29 +00:00
|
|
|
<vn-th number>New (PPU)</vn-th>
|
|
|
|
<vn-th number>Difference</vn-th>
|
2019-11-14 14:24:08 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="sale in $ctrl.ticket.sale.items track by sale.id">
|
|
|
|
<vn-td number>{{("000000"+sale.itemFk).slice(-6)}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="::sale.item"
|
|
|
|
name="::sale.concept">
|
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.price | currency: 'EUR': 2}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.component.newPrice | currency: 'EUR': 2}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.component.difference | currency: 'EUR': 2}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-tfoot>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-td></vn-td>
|
|
|
|
<vn-td></vn-td>
|
|
|
|
<vn-td></vn-td>
|
|
|
|
<vn-td number><strong>{{$ctrl.totalPrice | currency: 'EUR': 2}}</strong></vn-td>
|
|
|
|
<vn-td number><strong>{{$ctrl.totalNewPrice | currency: 'EUR': 2}}</strong></vn-td>
|
|
|
|
<vn-td number><strong>{{$ctrl.totalPriceDifference | currency: 'EUR': 2}}</strong></vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tfoot>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|