2018-07-18 13:01:37 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2018-07-24 10:55:10 +00:00
|
|
|
url="/order/api/OrderRows"
|
2018-07-18 13:01:37 +00:00
|
|
|
filter="::$ctrl.filter"
|
2018-07-24 10:55:10 +00:00
|
|
|
link="{orderFk: $ctrl.$stateParams.id}"
|
2018-07-18 13:01:37 +00:00
|
|
|
limit="20"
|
2018-07-24 10:55:10 +00:00
|
|
|
data="rows" on-data-change="$ctrl.onDataChange()">
|
2018-07-18 13:01:37 +00:00
|
|
|
</vn-crud-model>
|
2018-07-24 10:55:10 +00:00
|
|
|
<mg-ajax path="/order/api/Orders/{{$ctrl.$stateParams.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
|
2018-07-18 13:01:37 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-vertical>
|
2018-07-24 10:55:10 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-title vn-two>Volume</vn-title>
|
|
|
|
<div class="totalBox">
|
2018-07-18 13:01:37 +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-24 10:55:10 +00:00
|
|
|
</div>
|
|
|
|
</vn-horizontal>
|
2018-07-18 13:01:37 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2018-07-24 10:55:10 +00:00
|
|
|
<vn-th field="itemFk" default-order="ASC" number>Item</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
2018-07-18 13:01:37 +00:00
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
|
|
|
<vn-th number>m³ per quantity</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2018-07-24 10:55:10 +00:00
|
|
|
<vn-tr ng-repeat="row in rows">
|
2018-08-01 14:24:53 +00:00
|
|
|
<vn-td number pointer class="link"
|
2018-07-24 10:55:10 +00:00
|
|
|
ng-click="$ctrl.showDescriptor($event, row.itemFk)">
|
|
|
|
{{::row.itemFk}}
|
2018-07-18 13:01:37 +00:00
|
|
|
</vn-td>
|
2018-07-24 10:55:10 +00:00
|
|
|
<vn-td><vn-fetched-tags concept="row.item.name" tags="row.item.tags"/></vn-td>
|
|
|
|
<vn-td number>{{::row.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::row.volume | number:3}}</vn-td>
|
2018-07-18 13:01:37 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
2018-07-25 09:30:44 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|
2018-07-18 13:01:37 +00:00
|
|
|
|