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>
|
|
|
|
<div class="totalBox">
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-label translate>Subtotal</vn-label>
|
|
|
|
<span>{{$ctrl.subtotal | currency: 'EUR':2}}</span>
|
2018-08-07 14:04:42 +00:00
|
|
|
<p>
|
|
|
|
<vn-label translate>VAT</vn-label>
|
2019-01-31 10:44:03 +00:00
|
|
|
<span>{{$ctrl.VAT | currency: 'EUR':2}}</span>
|
2018-08-07 14:04:42 +00:00
|
|
|
</p>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-label><strong>Total</strong></vn-label>
|
|
|
|
<strong>{{$ctrl.order.total | currency: 'EUR':2}}</strong>
|
2018-08-07 14:04:42 +00:00
|
|
|
</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>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th></vn-th>
|
|
|
|
<vn-th number>Id</vn-th>
|
2018-08-07 14:04:42 +00:00
|
|
|
<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">
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td shrink>
|
2018-08-07 14:04:42 +00:00
|
|
|
<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>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td number>
|
2018-09-06 06:04:43 +00:00
|
|
|
<span ng-click="$ctrl.showDescriptor($event, row.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
|
|
|
{{row.itemFk | zeroFill:6}}
|
2018-09-06 06:04:43 +00:00
|
|
|
</span>
|
2018-08-07 14:04:42 +00:00
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand><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>
|
2019-01-14 10:35:48 +00:00
|
|
|
<vn-td>{{row.shipped | date: 'dd/MM/yyyy'}}</vn-td>
|
2018-08-07 14:04:42 +00:00
|
|
|
<vn-td number>{{row.quantity}}</vn-td>
|
|
|
|
<vn-td number>
|
2019-01-31 10:44:03 +00:00
|
|
|
{{row.price | currency: 'EUR':2}}
|
2018-08-07 14:04:42 +00:00
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td shrink ng-if="!$ctrl.order.isConfirmed">
|
2018-08-07 14:04:42 +00:00
|
|
|
<vn-icon-button
|
|
|
|
vn-tooltip="Remove item"
|
2018-12-11 07:50:54 +00:00
|
|
|
icon="delete"
|
2019-01-14 10:35:48 +00:00
|
|
|
ng-click="$ctrl.showDeleteRow($index)"
|
2018-08-07 14:04:42 +00:00
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar ng-if="!$ctrl.order.isConfirmed">
|
|
|
|
<vn-button
|
2019-02-05 08:27:01 +00:00
|
|
|
label="Confirm"
|
2018-08-07 14:04:42 +00:00
|
|
|
ng-click="$ctrl.save()">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</vn-vertical>
|
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="descriptor">
|
2019-01-14 10:35:48 +00:00
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="delete-row"
|
|
|
|
on-response="$ctrl.deleteRow(response)"
|
|
|
|
question="Delete row"
|
|
|
|
message="Are you sure you want to delete this row?">
|
|
|
|
</vn-confirm>
|