2020-04-30 10:48:52 +00:00
|
|
|
<vn-descriptor-content module="ticket">
|
|
|
|
<slot-menu>
|
|
|
|
<ul class="vn-list">
|
|
|
|
<li vn-acl="buyer">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="addTurn.show()"
|
|
|
|
translate>
|
|
|
|
Add turn
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="$ctrl.showDeliveryNote()"
|
|
|
|
translate>
|
|
|
|
Show Delivery Note
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="confirmDeliveryNote.show()"
|
|
|
|
translate>
|
|
|
|
Send Delivery Note
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="$ctrl.isEditable">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="deleteConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Delete ticket
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="$ctrl.isEditable">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="$ctrl.showChangeShipped()"
|
|
|
|
translate>
|
|
|
|
Change shipped hour
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="$ctrl.sendPaymentSms()"
|
|
|
|
translate>
|
|
|
|
SMS Pending payment
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="$ctrl.sendImportSms()"
|
|
|
|
translate>
|
|
|
|
SMS Minimum import
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="$ctrl.canShowStowaway">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="addStowaway.show()"
|
|
|
|
translate>
|
|
|
|
Add stowaway
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="$ctrl.shouldShowDeleteStowaway">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="deleteStowaway.show()"
|
|
|
|
translate>
|
|
|
|
Delete stowaway
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="!$ctrl.isInvoiced" vn-acl="invoicing">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="makeInvoiceConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Make invoice
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="$ctrl.isInvoiced" vn-acl="invoicing">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="regenerateInvoiceConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Regenerate invoice
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li ng-show="$ctrl.isEditable">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="recalculateComponentsConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Recalculate components
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</slot-menu>
|
|
|
|
<slot-body>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="attributes">
|
|
|
|
<h5>{{::$ctrl.client.name}}</h5>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Id"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.ticket.id}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Client"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.ticket.client.name}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="State"
|
2019-01-21 14:21:24 +00:00
|
|
|
value="{{$ctrl.ticket.state.state.name}}">
|
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Sales person"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.ticket.client.salesPerson.user.nickname}}">
|
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">
|
|
|
|
<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>
|
|
|
|
<div ng-transclude="btnThree">
|
|
|
|
<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"
|
|
|
|
on-change="$ctrl.goToTicket(value)">
|
|
|
|
</vn-button-menu>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-body>
|
|
|
|
</vn-descriptor-content>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="addTurn">
|
|
|
|
<div class="vn-pa-md">
|
2020-04-30 10:48:52 +00:00
|
|
|
<h5 style="text-align: center" translate>
|
|
|
|
In which day you want to add the ticket?
|
2019-10-26 23:30:01 +00:00
|
|
|
</h5>
|
|
|
|
<vn-tool-bar class="vn-mt-md">
|
|
|
|
<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>
|
|
|
|
</vn-popup>
|
2018-11-08 14:20:42 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteConfirmation"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-accept="$ctrl.deleteTicket()"
|
2018-11-08 14:20:42 +00:00
|
|
|
question="You are going to delete this ticket"
|
2019-04-08 08:57:01 +00:00
|
|
|
message="This ticket will be removed from current route! Continue anyway?">
|
2019-01-18 12:36:13 +00:00
|
|
|
</vn-confirm>
|
2019-12-17 07:38:36 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteStowaway"
|
|
|
|
on-accept="$ctrl.deleteStowaway()"
|
|
|
|
question="Delete stowaway"
|
|
|
|
message="Are you sure you want to delete this stowaway?">
|
|
|
|
</vn-confirm>
|
2019-02-11 09:06:26 +00:00
|
|
|
<vn-confirm
|
2020-04-30 10:48:52 +00:00
|
|
|
vn-id="confirmDialog"
|
|
|
|
on-accept="$ctrl.returnDialog()"
|
2019-02-11 09:06:26 +00:00
|
|
|
question="Pickup order"
|
|
|
|
message="Do you want to send it directly?">
|
2019-03-26 11:25:06 +00:00
|
|
|
</vn-confirm>
|
2019-04-12 11:54:31 +00:00
|
|
|
<vn-confirm
|
2019-04-26 06:52:43 +00:00
|
|
|
vn-id="makeInvoiceConfirmation"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-accept="$ctrl.makeInvoice()"
|
2019-04-12 11:54:31 +00:00
|
|
|
question="You are going to invoice this ticket"
|
|
|
|
message="Are you sure you want to invoice this ticket?">
|
|
|
|
</vn-confirm>
|
2019-04-26 06:52:43 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="regenerateInvoiceConfirmation"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-accept="$ctrl.regenerateInvoice()"
|
2019-04-26 06:52:43 +00:00
|
|
|
question="You are going to regenerate the invoice"
|
|
|
|
message="Are you sure you want to regenerate the invoice?">
|
|
|
|
</vn-confirm>
|
2019-09-06 09:06:44 +00:00
|
|
|
<vn-confirm
|
2020-04-30 10:48:52 +00:00
|
|
|
vn-id="confirmDeliveryNote"
|
2019-11-06 08:32:54 +00:00
|
|
|
on-accept="$ctrl.sendDeliveryNote()"
|
2019-11-20 05:53:37 +00:00
|
|
|
question="Are you sure you want to send it?"
|
|
|
|
message="Send Delivery Note">
|
|
|
|
</vn-confirm>
|
|
|
|
<vn-confirm
|
2020-04-30 10:48:52 +00:00
|
|
|
vn-id="recalculateComponentsConfirmation"
|
2019-11-20 05:53:37 +00:00
|
|
|
on-accept="$ctrl.recalculateComponents()"
|
|
|
|
question="Are you sure you want to recalculate the components?"
|
|
|
|
message="Recalculate components">
|
2020-04-30 10:48:52 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-ticket-sms
|
|
|
|
vn-id="sms"
|
|
|
|
sms="$ctrl.newSMS">
|
|
|
|
</vn-ticket-sms>
|
|
|
|
<vn-add-stowaway
|
|
|
|
vn-id="addStowaway"
|
|
|
|
card-reload="$ctrl.cardReload()"
|
|
|
|
ticket="$ctrl.ticket">
|
|
|
|
</vn-add-stowaway>
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="changeShippedDialog"
|
|
|
|
on-accept="$ctrl.changeShipped()">
|
|
|
|
<tpl-body>
|
|
|
|
<h6 translate>Change shipped hour</h6>
|
|
|
|
<vn-input-time
|
|
|
|
ng-model="$ctrl.newShipped"
|
|
|
|
label="Shipped hour"
|
|
|
|
vn-focus>
|
|
|
|
</vn-input-time>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Save</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|