2018-04-10 05:39:43 +00:00
|
|
|
<vn-card margin-medium-v class="vn-descriptor">
|
|
|
|
<vn-horizontal class="header">
|
2018-05-25 08:03:45 +00:00
|
|
|
<a translate-attr="{title: 'Return to module index'}" ui-sref="ticket.index">
|
2018-04-10 05:39:43 +00:00
|
|
|
<vn-icon icon="chevron_left"></vn-icon>
|
|
|
|
</a>
|
2018-09-04 09:49:00 +00:00
|
|
|
<a translate-attr="{title: 'Preview'}" ui-sref="ticket.card.summary({id: $ctrl.ticket.id})">
|
2018-04-10 05:39:43 +00:00
|
|
|
<vn-icon icon="desktop_windows"></vn-icon>
|
|
|
|
</a>
|
2018-11-08 14:20:42 +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="$ctrl.onMoreChange(value)"
|
|
|
|
on-open="$ctrl.onMoreOpen()">
|
|
|
|
</vn-icon-menu>
|
2018-04-10 05:39:43 +00:00
|
|
|
</vn-horizontal>
|
2018-05-31 06:57:25 +00:00
|
|
|
<div pad-medium>
|
2018-07-26 12:02:23 +00:00
|
|
|
<h5>{{::$ctrl.client.name}}</h5>
|
2018-05-31 06:57:25 +00:00
|
|
|
<vn-label-value label="Id"
|
2018-08-30 06:50:03 +00:00
|
|
|
value="{{$ctrl.ticket.id}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Client"
|
2018-08-30 06:50:03 +00:00
|
|
|
value="{{$ctrl.ticket.client.name}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="State"
|
2018-11-15 16:01:05 +00:00
|
|
|
value="{{$ctrl.ticket.state.state.name}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Sales person"
|
2018-08-30 06:50:03 +00:00
|
|
|
value="{{$ctrl.ticket.client.salesPerson.firstName}} {{$ctrl.ticket.client.salesPerson.name}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Shipped"
|
2018-07-30 12:05:27 +00:00
|
|
|
value="{{$ctrl.ticket.shipped | date: 'dd/MM/yyyy HH:mm' }}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Agency"
|
2018-08-30 06:50:03 +00:00
|
|
|
value="{{$ctrl.ticket.agencyMode.name}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Warehouse"
|
2018-08-30 06:50:03 +00:00
|
|
|
value="{{$ctrl.ticket.warehouse.name}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Alias"
|
2018-08-30 06:50:03 +00:00
|
|
|
value="{{$ctrl.ticket.nickname}}">
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
<vn-horizontal pad-medium-bottom class="footer">
|
|
|
|
<vn-icon vn-one
|
|
|
|
vn-tooltip="Client inactive"
|
|
|
|
icon="icon-disabled"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isActive == false}">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon vn-one
|
|
|
|
vn-tooltip="Client Frozen"
|
|
|
|
icon="icon-frozen"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isFreezed == true}">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon vn-one
|
|
|
|
vn-tooltip="Client has debt"
|
|
|
|
icon="icon-risk"
|
|
|
|
ng-class="{bright: $ctrl.clientDebt > 0}">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon vn-one
|
|
|
|
vn-tooltip="Client not checked"
|
|
|
|
icon="icon-no036"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isTaxDataChecked == false}">
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-icon>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal pad-small class="quicklinks">
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnOne" pad-small-right
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnOne.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnOne.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnOne.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnTwo" pad-small-right
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnTwo.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnTwo.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnTwo.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnThree" pad-small-right
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnThree.tooltip}}"
|
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnThree.state}}" target="_blank">
|
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnThree.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
2018-05-31 06:57:25 +00:00
|
|
|
</vn-horizontal>
|
2018-04-10 05:39:43 +00:00
|
|
|
</vn-card>
|
2018-11-08 14:20:42 +00:00
|
|
|
<vn-dialog class="dialog-summary"
|
|
|
|
vn-id="addTurn">
|
|
|
|
<tpl-body>
|
|
|
|
<div>
|
|
|
|
<h5 style="text-align: center">
|
|
|
|
<span translate>In which day you want to add the ticket?</span>
|
|
|
|
</h5>
|
|
|
|
<vn-tool-bar margin-medium-top>
|
|
|
|
<vn-button
|
|
|
|
label="Monday"
|
|
|
|
ng-click="$ctrl.addTurn(0)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
label="Tuesday"
|
|
|
|
ng-click="$ctrl.addTurn(1)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
label="Wednesday"
|
|
|
|
ng-click="$ctrl.addTurn(2)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
label="Thursday"
|
|
|
|
ng-click="$ctrl.addTurn(3)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
label="Friday"
|
|
|
|
ng-click="$ctrl.addTurn(4)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
label="Saturday"
|
|
|
|
ng-click="$ctrl.addTurn(5)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
label="Sunday"
|
|
|
|
ng-click="$ctrl.addTurn(6)">
|
|
|
|
</vn-button>
|
|
|
|
</vn-tool-bar>
|
|
|
|
</div>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteConfirmation"
|
|
|
|
on-response="$ctrl.deleteTicket(response)"
|
|
|
|
question="You are going to delete this ticket"
|
|
|
|
message="Continue anyway?">
|
|
|
|
</vn-confirm>
|