2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2020-03-13 19:33:12 +00:00
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-auto-search>
|
2021-10-22 13:01:54 +00:00
|
|
|
<vn-card>
|
|
|
|
<!-- To access table component should be a nested component -->
|
|
|
|
<smart-table-menu vn-id="smart-menu" model="model">
|
|
|
|
<slot-body>
|
|
|
|
<table class="vn-table" smart-table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th field="myfield1">Column 1</th>
|
|
|
|
<th field="myfield2">Column 2</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody ng-repeat="ticket in model.data">
|
|
|
|
<tr>
|
|
|
|
<td>{{::ticket.id}}</td>
|
|
|
|
<td>{{::ticket.userName}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-body>
|
|
|
|
</smart-table-menu>
|
|
|
|
|
|
|
|
</vn-card>
|
2020-03-09 10:50:23 +00:00
|
|
|
<div fixed-bottom-right>
|
|
|
|
<vn-vertical style="align-items: center;">
|
2020-06-16 10:36:34 +00:00
|
|
|
<vn-button class="round sm vn-mb-sm"
|
|
|
|
icon="print"
|
|
|
|
ng-show="$ctrl.totalChecked > 0"
|
2020-06-17 13:38:37 +00:00
|
|
|
ng-click="$ctrl.setDelivered()"
|
|
|
|
vn-tooltip="Set as delivered and open delivery note(s)"
|
2020-06-16 10:36:34 +00:00
|
|
|
tooltip-position="left">
|
|
|
|
</vn-button>
|
2020-03-10 13:28:50 +00:00
|
|
|
<vn-button class="round sm vn-mb-sm"
|
2020-03-09 10:50:23 +00:00
|
|
|
icon="icon-recovery"
|
|
|
|
ng-show="$ctrl.totalChecked > 0"
|
|
|
|
ng-click="$ctrl.openBalanceDialog()"
|
|
|
|
vn-tooltip="Payment on account..."
|
|
|
|
tooltip-position="left">
|
|
|
|
</vn-button>
|
2021-06-24 11:33:51 +00:00
|
|
|
<vn-button class="round sm vn-mb-sm"
|
|
|
|
icon="icon-invoices"
|
2021-07-01 11:31:04 +00:00
|
|
|
ng-click="makeInvoiceConfirmation.show()"
|
2021-06-24 11:33:51 +00:00
|
|
|
ng-show="$ctrl.totalChecked > 0"
|
|
|
|
vn-tooltip="Make invoice..."
|
|
|
|
tooltip-position="left"
|
|
|
|
vn-acl="invoicing"
|
|
|
|
vn-acl-action="remove">
|
|
|
|
</vn-button>
|
2021-06-08 15:30:00 +00:00
|
|
|
<a ui-sref="ticket.create($ctrl.clientParams())" vn-bind="+">
|
2020-03-09 10:50:23 +00:00
|
|
|
<vn-button class="round md vn-mb-sm"
|
|
|
|
icon="add"
|
|
|
|
vn-tooltip="New ticket"
|
|
|
|
tooltip-position="left">
|
|
|
|
</vn-button>
|
|
|
|
</a>
|
|
|
|
</vn-vertical>
|
|
|
|
</div>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-ticket-summary
|
2020-09-24 13:00:00 +00:00
|
|
|
ticket="$ctrl.selectedTicket"
|
|
|
|
model="model">
|
2020-04-25 09:50:04 +00:00
|
|
|
</vn-ticket-summary>
|
2019-10-26 23:30:01 +00:00
|
|
|
</vn-popup>
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
2019-04-25 05:57:26 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2020-07-30 10:51:19 +00:00
|
|
|
<vn-zone-descriptor-popover
|
|
|
|
vn-id="zoneDescriptor">
|
|
|
|
</vn-zone-descriptor-popover>
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-client-balance-create
|
|
|
|
vn-id="balanceCreateDialog">
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-client-balance-create>
|
2020-09-14 11:11:53 +00:00
|
|
|
<vn-invoice-out-descriptor-popover
|
|
|
|
vn-id="invoiceOutDescriptor">
|
|
|
|
</vn-invoice-out-descriptor-popover>
|
2021-06-24 11:33:51 +00:00
|
|
|
|
|
|
|
<!-- Make invoice confirmation dialog -->
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="makeInvoiceConfirmation"
|
|
|
|
on-accept="$ctrl.makeInvoice()"
|
2021-06-30 14:10:26 +00:00
|
|
|
question="{{$ctrl.confirmationMessage}}"
|
|
|
|
message="Invoice selected tickets">
|
2021-06-24 11:33:51 +00:00
|
|
|
</vn-confirm>
|