2018-04-03 14:10:39 +00:00
|
|
|
<mg-ajax path="/ticket/api/sales/filter" options="vnIndexNonAuto" actions="$ctrl.setVolumes()"></mg-ajax>
|
2018-05-28 07:16:06 +00:00
|
|
|
<mg-ajax path="/client/api/tickets/{{edit.params.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
|
2018-04-03 14:10:39 +00:00
|
|
|
<vn-vertical>
|
2018-03-22 14:01:36 +00:00
|
|
|
<vn-card pad-large>
|
2018-04-03 14:10:39 +00:00
|
|
|
<vn-vertical>
|
2018-03-22 14:01:36 +00:00
|
|
|
<vn-title>Volumes</vn-title>
|
2018-05-28 07:16:06 +00:00
|
|
|
<vn-one pad-small margin-medium-bottom pad-large class="totalBox">
|
|
|
|
<vn-label-value label="Total"
|
|
|
|
value="{{::edit.model.totalVolume}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Cajas"
|
|
|
|
value="{{::edit.model.totalBoxes}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
2018-04-03 14:10:39 +00:00
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th number translate>Item</th>
|
2018-05-29 11:51:39 +00:00
|
|
|
<th translate>Description</th>
|
2018-04-03 14:10:39 +00:00
|
|
|
<th number translate>Quantity</th>
|
|
|
|
<th number translate>m³ per quantity</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-05-11 06:35:28 +00:00
|
|
|
<tr ng-repeat="sale in index.model.instances track by sale.id" class="list list-element">
|
2018-05-29 12:33:29 +00:00
|
|
|
<td number pointer
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)">{{::sale.itemFk}}</td>
|
2018-04-03 14:10:39 +00:00
|
|
|
<td><vn-fetched-tags sale="sale"/></td>
|
|
|
|
<td number>{{::sale.quantity}}</td>
|
2018-05-28 07:16:06 +00:00
|
|
|
<td number>{{::sale.volume.m3 | number:3}}</td>
|
2018-04-03 14:10:39 +00:00
|
|
|
</tr>
|
2018-05-07 06:33:45 +00:00
|
|
|
<tr ng-if="index.model.count === 0" class="list list-element">
|
|
|
|
<td colspan="6" style="text-align: center" translate>No results</td>
|
|
|
|
</tr>
|
2018-04-03 14:10:39 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</vn-vertical>
|
2018-03-22 14:01:36 +00:00
|
|
|
</vn-card>
|
2018-05-11 06:35:28 +00:00
|
|
|
<vn-paging vn-one margin-large-top index="index" total="index.model.count"></vn-paging>
|
2018-07-03 11:45:25 +00:00
|
|
|
</vn-vertical>
|
2018-05-29 12:33:29 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|
|
|
|
|