2018-11-27 14:02:54 +00:00
|
|
|
<vn-crud-model auto-load="false"
|
2018-07-17 06:44:31 +00:00
|
|
|
vn-id="model"
|
|
|
|
url="/ticket/api/sales"
|
|
|
|
filter="::$ctrl.filter"
|
2018-07-18 13:10:05 +00:00
|
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
2019-03-26 08:33:54 +00:00
|
|
|
data="$ctrl.sales"
|
|
|
|
limit="20">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model auto-load="true"
|
|
|
|
url="/ticket/api/tickets/{{$ctrl.$stateParams.id}}/getVolume"
|
|
|
|
data="$ctrl.volumes">
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<mg-ajax path="/client/api/tickets/{{$ctrl.$stateParams.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
|
2018-04-03 14:10:39 +00:00
|
|
|
<vn-vertical>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-07-19 12:06:35 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<div class="totalBox">
|
2018-05-28 07:16:06 +00:00
|
|
|
<vn-label-value label="Total"
|
|
|
|
value="{{::edit.model.totalVolume}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Cajas"
|
|
|
|
value="{{::edit.model.totalBoxes}}">
|
|
|
|
</vn-label-value>
|
2018-07-19 12:06:35 +00:00
|
|
|
</div>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-vertical>
|
2018-07-17 06:44:31 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="itemFk" number>Item</vn-th>
|
|
|
|
<vn-th field="concept" default-order="ASC">Description</vn-th>
|
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
|
|
|
<vn-th number>m³ per quantity</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2019-03-26 08:33:54 +00:00
|
|
|
<vn-tr ng-repeat="sale in $ctrl.sales">
|
2018-09-06 06:04:43 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
|
|
|
{{sale.itemFk | zeroFill:6}}
|
2018-09-06 06:04:43 +00:00
|
|
|
</span>
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-td>
|
2019-03-22 14:05:15 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
2019-03-29 07:01:15 +00:00
|
|
|
item="::sale.item"
|
2019-07-02 10:12:15 +00:00
|
|
|
name="::sale.concept"
|
2019-03-22 14:05:15 +00:00
|
|
|
sub-name="::sale.item.subName"/>
|
|
|
|
</vn-td>
|
2018-07-17 06:44:31 +00:00
|
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.volume.m3 | number:3}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-04-03 14:10:39 +00:00
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-03-22 14:01:36 +00:00
|
|
|
</vn-card>
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-vertical>
|
2018-09-04 09:49:00 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="descriptor"
|
|
|
|
quicklinks="$ctrl.quicklinks">
|
|
|
|
</vn-item-descriptor-popover>
|
2018-05-29 12:33:29 +00:00
|
|
|
|