2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="order"
|
|
|
|
description="$ctrl.order.client.name">
|
2020-04-30 10:48:52 +00:00
|
|
|
<slot-menu>
|
2020-05-06 12:38:09 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="deleteOrderConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Delete order
|
|
|
|
</vn-item>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-menu>
|
|
|
|
<slot-body>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="attributes">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="State"
|
|
|
|
value="{{$ctrl.$t($ctrl.order.isConfirmed ? 'Confirmed' : 'Not confirmed')}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2020-09-03 13:11:16 +00:00
|
|
|
label="Sales person">
|
|
|
|
<span
|
|
|
|
ng-click="workerDescriptor.show($event, $ctrl.order.client.salesPersonFk)"
|
|
|
|
class="link">
|
2020-09-15 17:43:07 +00:00
|
|
|
{{$ctrl.order.client.salesPersonUser.name}}
|
2020-09-03 13:11:16 +00:00
|
|
|
</span>
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<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>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Agency"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.order.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Alias"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.order.address.nickname}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Items"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.order.rows.length || 0}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<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>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<div ng-transclude="btnOne">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Order ticket list"
|
|
|
|
state="['ticket.index', {q: $ctrl.ticketFilter}]"
|
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnTwo">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Client card"
|
|
|
|
state="['client.card.summary', {id: $ctrl.order.clientFk}]"
|
|
|
|
icon="person">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnThree">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</slot-body>
|
|
|
|
</vn-descriptor-content>
|
2019-08-29 11:16:38 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteOrderConfirmation"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-accept="$ctrl.deleteOrder()"
|
2019-08-29 11:16:38 +00:00
|
|
|
message="You are going to delete this order"
|
|
|
|
question="continue anyway?">
|
2020-09-03 13:11:16 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|