2019-01-21 14:21:24 +00:00
|
|
|
<div class="vn-descriptor">
|
|
|
|
<div 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-05-31 06:57:25 +00:00
|
|
|
</div>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="body">
|
|
|
|
<div class="attributes">
|
|
|
|
<h5>{{::$ctrl.client.name}}</h5>
|
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{$ctrl.ticket.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Client"
|
|
|
|
value="{{$ctrl.ticket.client.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="State"
|
|
|
|
value="{{$ctrl.ticket.state.state.name}}">
|
|
|
|
</vn-label-value>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-label-value label="Sales person"
|
|
|
|
value="{{$ctrl.ticket.client.salesPerson.user.nickname}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-label-value label="Shipped"
|
2019-02-27 16:04:00 +00:00
|
|
|
value="{{$ctrl.ticket.shipped | dateTime: 'dd/MM/yyyy HH:mm' }}">
|
2019-01-21 14:21:24 +00:00
|
|
|
</vn-label-value>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-label-value label="Agency"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.ticket.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-label-value label="Warehouse"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.ticket.warehouse.name}}">
|
|
|
|
</vn-label-value>
|
2019-01-31 13:14:39 +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">
|
|
|
|
<vn-icon vn-one
|
|
|
|
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>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon vn-one
|
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>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon vn-one
|
|
|
|
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>
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon vn-one
|
|
|
|
vn-tooltip="Client not checked"
|
|
|
|
icon="icon-no036"
|
|
|
|
ng-class="{bright: $ctrl.ticket.client.isTaxDataChecked == false}">
|
|
|
|
</vn-icon>
|
|
|
|
</div>
|
|
|
|
<div class="quicklinks">
|
|
|
|
<a ng-if="$ctrl.quicklinks.btnOne"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnOne.tooltip}}"
|
2019-03-20 11:23:38 +00:00
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnOne.state}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
<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"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnTwo.tooltip}}"
|
2019-03-20 11:23:38 +00:00
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnTwo.state}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
<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"
|
|
|
|
vn-tooltip="{{::$ctrl.quicklinks.btnThree.tooltip}}"
|
2019-03-20 11:23:38 +00:00
|
|
|
ui-sref="{{::$ctrl.quicklinks.btnThree.state}}">
|
2019-01-21 14:21:24 +00:00
|
|
|
<vn-icon
|
|
|
|
class="mdl-button mdl-js-button mdl-button--colored"
|
|
|
|
icon="{{::$ctrl.quicklinks.btnThree.icon}}">
|
|
|
|
</vn-icon>
|
|
|
|
</a>
|
|
|
|
<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"
|
|
|
|
on-change="$ctrl.goToTicket(value)">
|
|
|
|
</vn-button-menu>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
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?">
|
2019-01-18 12:36:13 +00:00
|
|
|
</vn-confirm>
|
2019-02-04 11:24:47 +00:00
|
|
|
<vn-add-stowaway vn-id="addStowaway" card-reload="$ctrl.cardReload()" ticket="$ctrl.ticket"></vn-add-stowaway>
|
2019-02-11 09:06:26 +00:00
|
|
|
<vn-remove-stowaway vn-id="removeStowaway" card-reload="$ctrl.cardReload()" ticket="$ctrl.ticket"></vn-remove-stowaway>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm-dialog"
|
|
|
|
on-response="$ctrl.returnDialog(response)"
|
|
|
|
question="Pickup order"
|
|
|
|
message="Do you want to send it directly?">
|
|
|
|
<tpl-buttons>asd</tpl-buttons>
|
2019-03-26 11:25:06 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="changeShippedDialog"
|
|
|
|
on-response="$ctrl.changeShipped(response)">
|
|
|
|
<tpl-body>
|
|
|
|
<div>
|
|
|
|
<h5 style="text-align: center">
|
|
|
|
<span translate>Change shipped hour</span>
|
|
|
|
</h5>
|
|
|
|
<vn-input-time vn-one model="$ctrl.ticket.shipped" label="Shipped hour"></vn-input-time>
|
|
|
|
</div>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="CANCEL" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="ACCEPT" translate>Save</button>
|
|
|
|
</tpl-buttons>
|
2019-03-29 06:29:09 +00:00
|
|
|
</vn-dialog>
|
|
|
|
|
|
|
|
<!-- SMS Dialog -->
|
|
|
|
<vn-client-sms vn-id="sms" sms="$ctrl.newSMS"></vn-client-sms>
|
|
|
|
<!-- SMS Dialog -->
|