2019-01-21 14:21:24 +00:00
|
|
|
<div class="vn-descriptor">
|
|
|
|
<div class="header">
|
2018-07-18 12:21:58 +00:00
|
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="order.index">
|
|
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
|
|
</a>
|
|
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="order.card.summary">
|
|
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
|
|
</a>
|
2019-08-29 11:16:38 +00:00
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
data="$ctrl.moreOptions"
|
|
|
|
on-change="value()">
|
|
|
|
</vn-icon-menu>
|
2018-07-18 12:21:58 +00:00
|
|
|
</div>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="body">
|
|
|
|
<div class="attributes">
|
|
|
|
<vn-label-value label="ID"
|
|
|
|
value="{{$ctrl.order.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Client"
|
|
|
|
value="{{$ctrl.order.client.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="State"
|
2019-08-29 11:16:38 +00:00
|
|
|
value="{{$ctrl.order.isConfirmed ? $ctrl.$translate.instant('Confirmed') : $ctrl.$translate.instant('Not confirmed')}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Sales person"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.order.client.salesPerson.user.nickname}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Landed"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.order.landed | date: 'dd/MM/yyyy' }}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Agency"
|
|
|
|
value="{{$ctrl.order.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Alias"
|
|
|
|
value="{{$ctrl.order.address.nickname}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Items"
|
|
|
|
value="{{$ctrl.order.rows.length || 0}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Total"
|
2019-01-31 10:44:03 +00:00
|
|
|
value="{{$ctrl.order.total | currency: 'EUR': 2}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
2019-10-18 19:36:30 +00:00
|
|
|
<vn-quick-links
|
|
|
|
links="$ctrl.quicklinks">
|
|
|
|
</vn-quick-links>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-29 11:16:38 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteOrderConfirmation"
|
2019-10-30 15:57:14 +00:00
|
|
|
on-response="$ctrl.deleteOrder($response)"
|
2019-08-29 11:16:38 +00:00
|
|
|
message="You are going to delete this order"
|
|
|
|
question="continue anyway?">
|
|
|
|
</vn-confirm>
|