2018-07-17 06:44:31 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/ticket/api/sales"
|
|
|
|
filter="::$ctrl.filter"
|
2018-07-18 13:10:05 +00:00
|
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
2018-07-17 06:44:31 +00:00
|
|
|
limit="20"
|
|
|
|
data="sales" on-data-change="$ctrl.onDataChange()">
|
|
|
|
</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>
|
2018-03-22 14:01:36 +00:00
|
|
|
<vn-card pad-large>
|
2018-04-03 14:10:39 +00:00
|
|
|
<vn-vertical>
|
2018-07-10 06:29:50 +00:00
|
|
|
<vn-title>Volume</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-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>
|
|
|
|
<vn-tr ng-repeat="sale in sales">
|
|
|
|
<vn-td number pointer
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)">
|
|
|
|
{{::sale.itemFk}}
|
|
|
|
</vn-td>
|
2018-07-19 08:44:57 +00:00
|
|
|
<vn-td><vn-fetched-tags concept="sale.concept" tags="sale.item.tags"/></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-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
2018-04-03 14:10:39 +00:00
|
|
|
</vn-vertical>
|
2018-07-17 06:44:31 +00:00
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
2018-03-22 14:01:36 +00:00
|
|
|
</vn-card>
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-vertical>
|
2018-05-29 12:33:29 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
|
|
|
|
|