2020-11-09 13:52:25 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="more_vert"
|
|
|
|
vn-popover="menu">
|
|
|
|
</vn-icon-button>
|
2021-10-01 10:41:31 +00:00
|
|
|
|
2020-11-09 13:52:25 +00:00
|
|
|
<vn-menu vn-id="menu">
|
|
|
|
<vn-list>
|
2022-10-27 06:46:22 +00:00
|
|
|
<vn-item
|
|
|
|
vn-acl="administrative"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
ng-click="transferClient.show()"
|
|
|
|
translate>
|
|
|
|
Transfer client
|
|
|
|
</vn-item>
|
2020-11-09 13:52:25 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="addTurn.show()"
|
|
|
|
vn-acl="buyer"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
name="addTurn"
|
|
|
|
translate>
|
|
|
|
Add turn
|
|
|
|
</vn-item>
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-item class="dropdown"
|
2023-01-10 14:03:23 +00:00
|
|
|
vn-click-stop="showDeliveryNoteMenu.show($event, 'left'); $ctrl.hasDocuware()"
|
2020-11-09 13:52:25 +00:00
|
|
|
translate>
|
2021-10-07 08:04:50 +00:00
|
|
|
Show Delivery Note...
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-menu vn-id="showDeliveryNoteMenu">
|
2023-01-11 14:19:09 +00:00
|
|
|
<vn-list>
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-item
|
2022-03-22 14:13:34 +00:00
|
|
|
ng-click="$ctrl.showPdfDeliveryNote('deliveryNote')"
|
2021-10-01 10:41:31 +00:00
|
|
|
translate>
|
2022-02-16 13:57:47 +00:00
|
|
|
as PDF
|
2021-10-01 10:41:31 +00:00
|
|
|
</vn-item>
|
2022-03-22 14:13:34 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.showPdfDeliveryNote('withoutPrices')"
|
|
|
|
translate>
|
2022-11-23 14:15:40 +00:00
|
|
|
as PDF without prices
|
2022-03-22 14:13:34 +00:00
|
|
|
</vn-item>
|
2023-01-10 14:03:23 +00:00
|
|
|
<a class="vn-item"
|
|
|
|
ng-if="$ctrl.hasDocuwareFile"
|
2023-01-11 14:19:09 +00:00
|
|
|
href='api/Docuwares/{{$ctrl.ticket.id}}/download/deliveryNote?access_token={{$ctrl.vnToken.token}}'
|
2023-01-10 14:03:23 +00:00
|
|
|
target="_blank"
|
|
|
|
translate>
|
2023-01-11 14:19:09 +00:00
|
|
|
as PDF signed
|
2023-01-10 14:03:23 +00:00
|
|
|
</a>
|
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.showCsvDeliveryNote()"
|
|
|
|
translate>
|
|
|
|
as CSV
|
|
|
|
</vn-item>
|
2021-10-01 10:41:31 +00:00
|
|
|
</vn-list>
|
|
|
|
</vn-menu>
|
2020-11-09 13:52:25 +00:00
|
|
|
</vn-item>
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-item class="dropdown"
|
2023-01-10 14:03:23 +00:00
|
|
|
vn-click-stop="sendDeliveryNoteMenu.show($event, 'left'); $ctrl.hasDocuware()"
|
2020-11-09 13:52:25 +00:00
|
|
|
translate>
|
2021-10-07 08:04:50 +00:00
|
|
|
Send Delivery Note...
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-menu vn-id="sendDeliveryNoteMenu">
|
|
|
|
<vn-list>
|
|
|
|
<vn-item
|
2021-10-07 08:04:50 +00:00
|
|
|
ng-click="sendPdfConfirmation.show({email: $ctrl.ticket.client.email})"
|
2021-10-01 10:41:31 +00:00
|
|
|
translate>
|
|
|
|
Send PDF
|
|
|
|
</vn-item>
|
2023-01-04 14:03:45 +00:00
|
|
|
<vn-item
|
2023-01-13 12:33:59 +00:00
|
|
|
ng-click="$ctrl.uploadDocuware(!$ctrl.hasDocuwareFile)"
|
2023-01-09 14:11:53 +00:00
|
|
|
translate>
|
2023-01-11 14:19:09 +00:00
|
|
|
Send PDF to tablet
|
2023-01-04 14:03:45 +00:00
|
|
|
</vn-item>
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-item
|
2023-01-10 14:03:23 +00:00
|
|
|
ng-click="sendCsvConfirmation.show({email: $ctrl.ticket.client.email})"
|
2021-10-01 10:41:31 +00:00
|
|
|
translate>
|
2023-01-10 14:03:23 +00:00
|
|
|
Send CSV
|
2021-10-01 10:41:31 +00:00
|
|
|
</vn-item>
|
|
|
|
</vn-list>
|
|
|
|
</vn-menu>
|
2020-11-09 13:52:25 +00:00
|
|
|
</vn-item>
|
2022-03-22 09:32:26 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.showPdfDeliveryNote('proforma')"
|
|
|
|
translate>
|
|
|
|
Show Proforma
|
|
|
|
</vn-item>
|
2020-11-09 13:52:25 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="deleteConfirmation.show()"
|
|
|
|
ng-show="$ctrl.isEditable"
|
|
|
|
name="deleteTicket"
|
|
|
|
translate>
|
|
|
|
Delete ticket
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="restoreConfirmation.show()"
|
|
|
|
ng-show="$ctrl.canRestoreTicket"
|
|
|
|
name="restoreTicket"
|
|
|
|
translate>
|
|
|
|
Restore ticket
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.showChangeShipped()"
|
|
|
|
ng-show="$ctrl.isEditable"
|
|
|
|
name="changeShipped"
|
|
|
|
translate>
|
|
|
|
Change shipped hour
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.sendPaymentSms()"
|
2020-11-18 14:00:41 +00:00
|
|
|
name="sendPaymentSms"
|
2020-11-09 13:52:25 +00:00
|
|
|
translate>
|
|
|
|
SMS Pending payment
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.sendImportSms()"
|
2020-11-18 14:00:41 +00:00
|
|
|
name="sendImportSms"
|
2020-11-09 13:52:25 +00:00
|
|
|
translate>
|
|
|
|
SMS Minimum import
|
|
|
|
</vn-item>
|
2022-11-23 14:15:40 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="$ctrl.sendChangesSms()"
|
|
|
|
name="sendChangesSms"
|
|
|
|
translate>
|
|
|
|
SMS Notify changes
|
|
|
|
</vn-item>
|
2020-11-09 13:52:25 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="makeInvoiceConfirmation.show()"
|
|
|
|
ng-show="$ctrl.isEditable"
|
|
|
|
vn-acl="invoicing"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
name="makeInvoice"
|
|
|
|
translate>
|
|
|
|
Make invoice
|
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
2021-10-07 08:04:50 +00:00
|
|
|
ng-click="createPdfConfirmation.show()"
|
2021-10-01 12:31:42 +00:00
|
|
|
ng-show="$ctrl.isInvoiced && ($ctrl.hasInvoicing || !$ctrl.ticket.invoiceOut.hasPdf)"
|
2021-01-25 08:28:01 +00:00
|
|
|
name="regenerateInvoice"
|
2020-11-09 13:52:25 +00:00
|
|
|
translate>
|
2021-10-01 12:31:42 +00:00
|
|
|
{{!$ctrl.ticket.invoiceOut.hasPdf ? 'Generate PDF invoice': 'Regenerate PDF invoice'}}
|
2020-11-09 13:52:25 +00:00
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
|
|
|
ng-click="recalculateComponentsConfirmation.show()"
|
|
|
|
ng-show="$ctrl.isEditable"
|
|
|
|
translate>
|
|
|
|
Recalculate components
|
|
|
|
</vn-item>
|
2022-04-04 11:26:53 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="refundAllConfirmation.show()"
|
2022-07-14 11:40:50 +00:00
|
|
|
vn-acl="invoicing, claimManager, salesAssistant"
|
|
|
|
vn-acl-action="remove"
|
2022-04-04 11:26:53 +00:00
|
|
|
translate>
|
|
|
|
Refund all
|
|
|
|
</vn-item>
|
2020-11-09 13:52:25 +00:00
|
|
|
</vn-list>
|
|
|
|
</vn-menu>
|
|
|
|
|
|
|
|
<!-- Add turn popup -->
|
|
|
|
<vn-popup vn-id="addTurn">
|
|
|
|
<div class="vn-pa-md">
|
|
|
|
<h5 style="text-align: center" translate>
|
2020-12-09 14:26:57 +00:00
|
|
|
What is the day of receipt of the ticket?
|
2020-11-09 13:52:25 +00:00
|
|
|
</h5>
|
|
|
|
<vn-tool-bar class="vn-mt-md">
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Monday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(0)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Tuesday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(1)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Wednesday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(2)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Thursday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(3)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Friday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(4)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Saturday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(5)">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
2022-11-23 14:15:40 +00:00
|
|
|
label="Sunday"
|
2020-11-09 13:52:25 +00:00
|
|
|
ng-click="$ctrl.addTurn(6)">
|
|
|
|
</vn-button>
|
|
|
|
</vn-tool-bar>
|
|
|
|
</div>
|
|
|
|
</vn-popup>
|
|
|
|
|
2021-10-07 08:04:50 +00:00
|
|
|
<!-- Send PDF delivery note confirmation popup -->
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-dialog
|
2021-10-07 08:04:50 +00:00
|
|
|
vn-id="sendPdfConfirmation"
|
|
|
|
on-accept="$ctrl.sendPdfDeliveryNote($data)"
|
|
|
|
message="Send PDF Delivery Note">
|
2021-10-01 10:41:31 +00:00
|
|
|
<tpl-body>
|
|
|
|
<span translate>Are you sure you want to send it?</span>
|
|
|
|
<vn-textfield vn-one
|
2021-10-07 08:04:50 +00:00
|
|
|
ng-model="sendPdfConfirmation.data.email">
|
2021-10-01 10:41:31 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Confirm</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|
|
|
|
|
2021-10-07 08:04:50 +00:00
|
|
|
<!-- Send CSV delivery note confirmation popup -->
|
2021-10-01 10:41:31 +00:00
|
|
|
<vn-dialog
|
2021-10-07 08:04:50 +00:00
|
|
|
vn-id="sendCsvConfirmation"
|
|
|
|
on-accept="$ctrl.sendCsvDeliveryNote($data)"
|
|
|
|
message="Send CSV Delivery Note">
|
2021-10-01 10:41:31 +00:00
|
|
|
<tpl-body>
|
|
|
|
<span translate>Are you sure you want to send it?</span>
|
|
|
|
<vn-textfield vn-one
|
2021-10-07 08:04:50 +00:00
|
|
|
ng-model="sendCsvConfirmation.data.email">
|
2021-10-01 10:41:31 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Confirm</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|
2020-11-09 13:52:25 +00:00
|
|
|
|
|
|
|
<!-- Delete ticket confirmation popup -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteConfirmation"
|
|
|
|
on-accept="$ctrl.deleteTicket()"
|
|
|
|
question="You are going to delete this ticket"
|
|
|
|
message="This ticket will be removed from current route! Continue anyway?">
|
|
|
|
</vn-confirm>
|
|
|
|
|
|
|
|
<!-- Restore ticket confirmation popup -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="restoreConfirmation"
|
|
|
|
on-accept="$ctrl.restoreTicket()"
|
|
|
|
question="You are going to restore this ticket"
|
|
|
|
message="Are you sure you want to restore this ticket?">
|
|
|
|
</vn-confirm>
|
|
|
|
|
|
|
|
<!-- Change shipped dialog -->
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="changeShippedDialog"
|
|
|
|
on-accept="$ctrl.changeShipped()"
|
|
|
|
message="Change shipped hour">
|
|
|
|
<tpl-body>
|
|
|
|
<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>
|
|
|
|
|
2022-10-27 06:46:22 +00:00
|
|
|
<!-- Transfer Client popup -->
|
|
|
|
|
2022-11-23 14:15:40 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="transferClient"
|
2022-10-27 06:46:22 +00:00
|
|
|
title="transferClient"
|
|
|
|
size="sm"
|
|
|
|
on-accept="$ctrl.transferClient($client)">
|
|
|
|
<tpl-body>
|
2022-11-23 14:15:40 +00:00
|
|
|
<vn-autocomplete
|
2022-10-27 06:46:22 +00:00
|
|
|
vn-one
|
|
|
|
vn-id="client"
|
|
|
|
required="true"
|
|
|
|
url="Clients"
|
|
|
|
label="Client"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
|
|
|
|
ng-model="$ctrl.ticket.client.id"
|
|
|
|
initial-data="$ctrl.ticket.client.id"
|
|
|
|
order="id">
|
|
|
|
<tpl-item>
|
|
|
|
#{{id}} - {{::name}}
|
|
|
|
</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<button response="accept" translate>Transfer client</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|
|
|
|
|
2020-11-09 13:52:25 +00:00
|
|
|
<!-- Send SMS popup -->
|
2022-11-21 07:45:45 +00:00
|
|
|
<vn-sms-dialog
|
2020-11-09 13:52:25 +00:00
|
|
|
vn-id="sms"
|
2022-11-25 08:59:02 +00:00
|
|
|
on-send="$ctrl.onSmsSend($sms)"
|
2020-11-09 13:52:25 +00:00
|
|
|
sms="$ctrl.newSMS">
|
2022-11-21 07:45:45 +00:00
|
|
|
</vn-sms-dialog>
|
2020-11-09 13:52:25 +00:00
|
|
|
|
|
|
|
<!-- Make invoice confirmation dialog -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="makeInvoiceConfirmation"
|
|
|
|
on-accept="$ctrl.makeInvoice()"
|
|
|
|
question="You are going to invoice this ticket"
|
|
|
|
message="Are you sure you want to invoice this ticket?">
|
|
|
|
</vn-confirm>
|
|
|
|
|
2021-03-15 12:43:22 +00:00
|
|
|
<!-- Create invoice PDF confirmation dialog -->
|
2020-11-09 13:52:25 +00:00
|
|
|
<vn-confirm
|
2021-10-07 08:04:50 +00:00
|
|
|
vn-id="createPdfConfirmation"
|
|
|
|
on-accept="$ctrl.createPdfInvoice()"
|
2021-10-01 12:31:42 +00:00
|
|
|
question="Are you sure you want to generate/regenerate the PDF invoice?"
|
|
|
|
message="Generate PDF invoice document">
|
2020-11-09 13:52:25 +00:00
|
|
|
</vn-confirm>
|
|
|
|
|
|
|
|
<!-- Recalculate components confirmation dialog -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="recalculateComponentsConfirmation"
|
|
|
|
on-accept="$ctrl.recalculateComponents()"
|
|
|
|
question="Are you sure you want to recalculate the components?"
|
|
|
|
message="Recalculate components">
|
2022-04-04 11:26:53 +00:00
|
|
|
</vn-confirm>
|
|
|
|
|
|
|
|
<!-- Refund all confirmation dialog -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="refundAllConfirmation"
|
2022-04-25 06:45:50 +00:00
|
|
|
on-accept="$ctrl.refund()"
|
2022-04-04 11:26:53 +00:00
|
|
|
question="Are you sure you want to refund all?"
|
|
|
|
message="Refund all">
|
2022-11-23 14:15:40 +00:00
|
|
|
</vn-confirm>
|
2023-01-11 14:19:09 +00:00
|
|
|
|
|
|
|
<!-- Client balance popup-->
|
|
|
|
<vn-client-balance-create
|
|
|
|
vn-id="balance-create"
|
|
|
|
company-fk="$ctrl.vnConfig.companyFk"
|
|
|
|
client-fk="$ctrl.ticket.client.id">
|
|
|
|
</vn-client-balance-create>
|
2023-01-13 12:33:59 +00:00
|
|
|
|
|
|
|
<!-- Send pdf to tablet -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="pdfToTablet"
|
|
|
|
on-accept="$ctrl.uploadDocuware(true)"
|
|
|
|
question="Are you sure you want to replace this delivery note?"
|
|
|
|
message="Already exist signed delivery note">
|
|
|
|
</vn-confirm>
|