2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="ticket"
|
|
|
|
description="$ctrl.ticket.client.name">
|
2020-11-09 13:52:25 +00:00
|
|
|
<slot-dot-menu>
|
2020-11-10 09:38:25 +00:00
|
|
|
<vn-ticket-descriptor-menu ticket-id="$ctrl.ticket.id" parent-reload="$ctrl.cardReload()"/>
|
2020-11-09 13:52:25 +00:00
|
|
|
</slot-dot-menu>
|
2020-04-30 10:48:52 +00:00
|
|
|
<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"
|
2020-06-23 11:40:49 +00:00
|
|
|
value="{{$ctrl.ticket.ticketState.state.name}}">
|
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.ticket.client.salesPersonFk)"
|
|
|
|
class="link">
|
2020-09-15 17:43:07 +00:00
|
|
|
{{$ctrl.ticket.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="Shipped"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.ticket.shipped | date: 'dd/MM/yyyy HH:mm' }}">
|
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.ticket.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Warehouse"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.ticket.warehouse.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.ticket.nickname}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-icon
|
2019-01-21 14:21:24 +00:00
|
|
|
vn-tooltip="Client inactive"
|
|
|
|
icon="icon-disabled"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isActive == false}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-icon
|
2019-01-30 13:13:47 +00:00
|
|
|
vn-tooltip="Client frozen"
|
2019-01-21 14:21:24 +00:00
|
|
|
icon="icon-frozen"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isFreezed == true}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-icon
|
2019-01-21 14:21:24 +00:00
|
|
|
vn-tooltip="Client has debt"
|
|
|
|
icon="icon-risk"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.debt > $ctrl.ticket.client.credit}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-icon
|
2019-01-21 14:21:24 +00:00
|
|
|
vn-tooltip="Client not checked"
|
|
|
|
icon="icon-no036"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isTaxDataChecked == false}">
|
|
|
|
</vn-icon>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-icon
|
2019-09-03 07:57:53 +00:00
|
|
|
vn-tooltip="Deleted ticket"
|
2019-09-20 15:20:54 +00:00
|
|
|
icon="icon-deletedTicket"
|
2019-09-03 07:57:53 +00:00
|
|
|
ng-class="{bright: $ctrl.ticket.isDeleted == true}">
|
|
|
|
</vn-icon>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<div ng-transclude="btnOne">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Client card"
|
|
|
|
state="['client.card.summary', {id: $ctrl.ticket.clientFk}]"
|
|
|
|
icon="person">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnTwo">
|
2020-07-03 11:28:49 +00:00
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Client ticket list"
|
|
|
|
state="['ticket.index', {q: $ctrl.filter}]"
|
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnThree">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="New order"
|
|
|
|
state="['order.create', {clientFk: $ctrl.ticket.clientFk}]"
|
|
|
|
icon="icon-basketadd">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnFour">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-quick-link
|
|
|
|
ng-if="$ctrl.ticket.stowaway"
|
|
|
|
tooltip="Ship stowaways"
|
|
|
|
state="['ticket.card.summary', {id: $ctrl.ticket.stowaway.shipFk}]"
|
|
|
|
icon="icon-stowaway">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
2020-07-03 11:28:49 +00:00
|
|
|
<div ng-transclude="btnFour">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-quick-link
|
|
|
|
ng-if="$ctrl.ticket.ship"
|
|
|
|
tooltip="Stowaway"
|
|
|
|
state="['ticket.card.summary', {id: $ctrl.ticket.ship.id}]"
|
|
|
|
icon="icon-stowaway">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-18 19:36:30 +00:00
|
|
|
<div style="text-align: center">
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-button-menu
|
|
|
|
ng-if="$ctrl.ticket.ship.length > 1"
|
|
|
|
vn-id="stowaways-button"
|
2019-02-01 10:42:31 +00:00
|
|
|
icon="icon-stowaway"
|
2019-01-21 14:21:24 +00:00
|
|
|
show-filter="false"
|
|
|
|
show-field="id"
|
|
|
|
value-field="id"
|
|
|
|
vn-tooltip="Ship stowaways"
|
2019-02-04 11:24:47 +00:00
|
|
|
tooltip-position="up"
|
2019-01-21 14:21:24 +00:00
|
|
|
data="$ctrl.ticket.ship"
|
2020-11-10 09:38:25 +00:00
|
|
|
ui-sref="ticket.card.sale({id: value})">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-button-menu>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-body>
|
2020-11-10 09:38:25 +00:00
|
|
|
</vn-descriptor-content>
|