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"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="sales"
|
2018-07-17 06:44:31 +00:00
|
|
|
filter="::$ctrl.filter"
|
2020-03-18 07:35:59 +00:00
|
|
|
link="{ticketFk: $ctrl.$params.id}"
|
2019-03-26 08:33:54 +00:00
|
|
|
data="$ctrl.sales"
|
|
|
|
limit="20">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model auto-load="true"
|
2020-03-18 07:35:59 +00:00
|
|
|
url="tickets/{{$ctrl.$params.id}}/getVolume"
|
2019-03-26 08:33:54 +00:00
|
|
|
data="$ctrl.volumes">
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-crud-model>
|
2020-03-18 07:35:59 +00:00
|
|
|
<mg-ajax path="tickets/{{$ctrl.$params.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
|
2021-05-21 13:31:28 +00:00
|
|
|
ng-click="itemDescriptor.show($event, sale.itemFk, sale.id)"
|
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>
|
2021-01-28 14:10:47 +00:00
|
|
|
<vn-td vn-fetched-tags>
|
2021-09-23 15:19:47 +00:00
|
|
|
<div>
|
|
|
|
<vn-one title="{{::sale.item.name}}">{{::sale.item.name}}</vn-one>
|
|
|
|
<vn-one ng-if="::sale.item.subName">
|
|
|
|
<h3 title="{{::sale.item.subName}}">{{::sale.item.subName}}</h3>
|
|
|
|
</vn-one>
|
|
|
|
</div>
|
2021-01-28 14:10:47 +00:00
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
2019-03-29 07:01:15 +00:00
|
|
|
item="::sale.item"
|
2021-01-28 14:10:47 +00:00
|
|
|
tabindex="-1">
|
|
|
|
</vn-fetched-tags>
|
2019-03-22 14:05:15 +00:00
|
|
|
</vn-td>
|
2018-07-17 06:44:31 +00:00
|
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
2020-06-12 09:26:32 +00:00
|
|
|
<vn-td number>{{::sale.saleVolume.volume | number:3}}</vn-td>
|
2018-07-17 06:44:31 +00:00
|
|
|
</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>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-item-descriptor-popover
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="item-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>
|
2018-05-29 12:33:29 +00:00
|
|
|
|