2018-08-07 14:04:42 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.rows">
|
|
|
|
</vn-watcher>
|
|
|
|
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-title vn-two>Sale</vn-title>
|
|
|
|
|
|
|
|
<div class="totalBox">
|
|
|
|
<vn-label translate>Subtotal</vn-label>
|
|
|
|
<span>{{$ctrl.order.total - $ctrl.VAT | currency:'€':2}}</span>
|
|
|
|
<p>
|
|
|
|
<vn-label translate>VAT</vn-label>
|
|
|
|
<span>{{$ctrl.VAT | currency:'€':2}}</span>
|
|
|
|
</p>
|
|
|
|
<vn-label><strong>Total</strong></vn-label>
|
|
|
|
<strong>{{$ctrl.order.total | currency:'€':2}}</strong>
|
|
|
|
</div>
|
|
|
|
</vn-horizontal>
|
2018-11-27 14:02:54 +00:00
|
|
|
<vn-table>
|
2018-08-07 14:04:42 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th style="text-align: center">Item</vn-th>
|
|
|
|
<vn-th style="text-align: center">ID</vn-th>
|
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th>Warehouse</vn-th>
|
|
|
|
<vn-th>Shipped</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th ng-if="!$ctrl.order.isConfirmed"></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="row in $ctrl.rows">
|
|
|
|
<vn-td style="text-align: center">
|
|
|
|
<img
|
|
|
|
ng-src="//verdnatura.es/vn-image-data/catalog/50x50/{{::row.item.image}}"
|
|
|
|
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{::row.item.image}}"
|
|
|
|
on-error-src/>
|
|
|
|
</vn-td>
|
2018-09-06 06:04:43 +00:00
|
|
|
<vn-td>
|
|
|
|
<span ng-click="$ctrl.showDescriptor($event, row.itemFk)"
|
|
|
|
pointer number class="link">
|
|
|
|
{{("000000"+row.itemFk).slice(-6)}}
|
|
|
|
</span>
|
2018-08-07 14:04:42 +00:00
|
|
|
</vn-td>
|
2018-11-06 09:49:38 +00:00
|
|
|
<vn-td><vn-fetched-tags max-length="6" item="row.item"/></vn-td>
|
2018-08-07 14:04:42 +00:00
|
|
|
<vn-td>{{row.warehouse.name}}</vn-td>
|
|
|
|
<vn-td>{{row.shipped | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{row.quantity}}</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
{{row.price | currency:'€':2}}
|
|
|
|
</vn-td>
|
|
|
|
<vn-td ng-if="!$ctrl.order.isConfirmed">
|
|
|
|
<vn-icon-button
|
|
|
|
medium-grey
|
|
|
|
vn-tooltip="Remove item"
|
2018-12-11 07:50:54 +00:00
|
|
|
icon="delete"
|
2018-08-07 14:04:42 +00:00
|
|
|
ng-click="$ctrl.removeRow($index)"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="$ctrl.rows.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar ng-if="!$ctrl.order.isConfirmed">
|
|
|
|
<vn-button
|
|
|
|
label="Save"
|
|
|
|
ng-click="$ctrl.save()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</vn-vertical>
|
|
|
|
|
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="descriptor">
|
|
|
|
</vn-item-descriptor-popover>
|