2019-10-28 16:31:33 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
2018-07-18 13:01:37 +00:00
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="OrderRows"
|
2018-07-18 13:01:37 +00:00
|
|
|
filter="::$ctrl.filter"
|
2020-03-17 14:18:02 +00:00
|
|
|
link="{orderFk: $ctrl.$params.id}"
|
2018-07-18 13:01:37 +00:00
|
|
|
limit="20"
|
2019-10-28 16:31:33 +00:00
|
|
|
data="rows"
|
|
|
|
on-data-change="$ctrl.onDataChange()">
|
2018-07-18 13:01:37 +00:00
|
|
|
</vn-crud-model>
|
2020-03-17 14:18:02 +00:00
|
|
|
<mg-ajax path="Orders/{{$ctrl.$params.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
|
2019-10-28 16:31:33 +00:00
|
|
|
<vn-data-viewer model="model" class="header vn-w-lg">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-10-28 16:31:33 +00:00
|
|
|
<vn-label-value
|
2023-05-08 14:30:21 +00:00
|
|
|
label="Total"
|
2019-10-28 16:31:33 +00:00
|
|
|
value="{{::edit.model.totalVolume}} M³">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
2023-05-08 14:30:21 +00:00
|
|
|
label="Cajas"
|
2019-10-28 16:31:33 +00:00
|
|
|
value="{{::edit.model.totalBoxes | dashIfEmpty}} U">
|
|
|
|
</vn-label-value>
|
2018-07-18 13:01:37 +00:00
|
|
|
</vn-card>
|
2019-10-28 16:31:33 +00:00
|
|
|
<vn-card class="vn-mt-md">
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2023-05-08 14:30:21 +00:00
|
|
|
<vn-th shrink field="itemFk" number>Item</vn-th>
|
2019-10-28 16:31:33 +00:00
|
|
|
<vn-th>Description</vn-th>
|
2021-01-28 14:10:47 +00:00
|
|
|
<vn-th shrink field="quantity" number>Quantity</vn-th>
|
|
|
|
<vn-th shrink number>m³ per quantity</vn-th>
|
2019-10-28 16:31:33 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="row in rows">
|
2021-01-28 14:10:47 +00:00
|
|
|
<vn-td shrink number>
|
2019-10-28 16:31:33 +00:00
|
|
|
<span
|
2021-05-21 13:31:05 +00:00
|
|
|
ng-click="itemDescriptor.show($event, row.itemFk)"
|
2019-10-28 16:31:33 +00:00
|
|
|
class="link">
|
|
|
|
{{::row.itemFk}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2021-09-23 15:19:47 +00:00
|
|
|
<vn-td vn-fetched-tags>
|
|
|
|
<div>
|
|
|
|
<vn-one title="{{::row.item.name}}">{{::row.item.name}}</vn-one>
|
|
|
|
<vn-one ng-if="::row.item.subName">
|
|
|
|
<h3 title="{{::row.item.subName}}">{{::row.item.subName}}</h3>
|
|
|
|
</vn-one>
|
|
|
|
</div>
|
2019-10-28 16:31:33 +00:00
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="::row.item"
|
2021-01-28 14:10:47 +00:00
|
|
|
tabindex="-1">
|
2019-10-28 16:31:33 +00:00
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
2021-01-28 14:10:47 +00:00
|
|
|
<vn-td shrink number>{{::row.quantity}}</vn-td>
|
|
|
|
<vn-td shrink number>{{::row.volume | number:3}}</vn-td>
|
2019-10-28 16:31:33 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-item-descriptor-popover
|
2021-05-21 13:31:05 +00:00
|
|
|
vn-id="item-descriptor"
|
|
|
|
warehouse-fk="$ctrl.vnConfig.warehouseFk">
|
2019-10-28 16:31:33 +00:00
|
|
|
</vn-item-descriptor-popover>
|
2018-07-18 13:01:37 +00:00
|
|
|
|