100 lines
3.3 KiB
HTML
100 lines
3.3 KiB
HTML
<vn-descriptor-content
|
|
module="invoiceOut"
|
|
description="$ctrl.invoiceOut.ref">
|
|
<slot-menu>
|
|
<a class="vn-item"
|
|
href="api/InvoiceOuts/{{$ctrl.id}}/download?access_token={{$ctrl.vnToken.token}}"
|
|
target="_blank"
|
|
name="showInvoicePdf"
|
|
translate>
|
|
Show invoice PDF
|
|
</a>
|
|
<vn-item
|
|
ng-click="deleteConfirmation.show()"
|
|
vn-acl="invoicing"
|
|
vn-acl-action="remove"
|
|
name="deleteInvoice"
|
|
translate>
|
|
Delete Invoice
|
|
</vn-item>
|
|
<vn-item
|
|
ng-click="bookConfirmation.show()"
|
|
vn-acl="invoicing"
|
|
vn-acl-action="remove"
|
|
name="bookInvoice"
|
|
translate>
|
|
Book invoice
|
|
</vn-item>
|
|
<vn-item
|
|
ng-click="createInvoicePdfConfirmation.show()"
|
|
vn-acl="invoicing"
|
|
vn-acl-action="remove"
|
|
name="regenerateInvoice"
|
|
translate>
|
|
Regenerate invoice PDF
|
|
</vn-item>
|
|
</slot-menu>
|
|
<slot-body>
|
|
<div class="attributes">
|
|
<vn-label-value
|
|
label="Date"
|
|
value="{{$ctrl.invoiceOut.issued | date: 'dd/MM/yyyy'}}">
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
label="Import"
|
|
value="{{$ctrl.invoiceOut.amount | currency: 'EUR': 2}}">
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
label="Client">
|
|
<span
|
|
ng-click="clientDescriptor.show($event, $ctrl.invoiceOut.client.id)"
|
|
class="link">
|
|
{{$ctrl.invoiceOut.client.name}}
|
|
</span>
|
|
</vn-label-value>
|
|
<vn-label-value
|
|
label="Company"
|
|
value="{{$ctrl.invoiceOut.company.code}}">
|
|
</vn-label-value>
|
|
</div>
|
|
<div class="quicklinks">
|
|
<div ng-transclude="btnOne">
|
|
<vn-quick-link
|
|
tooltip="Client card"
|
|
state="['client.card.summary', {id: $ctrl.invoiceOut.clientFk}]"
|
|
icon="person">
|
|
</vn-quick-link>
|
|
</div>
|
|
<div ng-transclude="btnTwo">
|
|
<vn-quick-link
|
|
tooltip="Invoice ticket list"
|
|
state="['ticket.index', {q: $ctrl.filter}]"
|
|
icon="icon-ticket">
|
|
</vn-quick-link>
|
|
</div>
|
|
<div ng-transclude="btnThree">
|
|
</div>
|
|
</div>
|
|
</slot-body>
|
|
</vn-descriptor-content>
|
|
<vn-confirm
|
|
vn-id="deleteConfirmation"
|
|
on-accept="$ctrl.deleteInvoiceOut()"
|
|
question="Are you sure you want to delete this invoice?">
|
|
</vn-confirm>
|
|
<vn-confirm
|
|
vn-id="bookConfirmation"
|
|
on-accept="$ctrl.bookInvoiceOut()"
|
|
question="Are you sure you want to book this invoice?">
|
|
</vn-confirm>
|
|
<vn-client-descriptor-popover
|
|
vn-id="clientDescriptor">
|
|
</vn-client-descriptor-popover>
|
|
|
|
<!-- Create invoice PDF confirmation dialog -->
|
|
<vn-confirm
|
|
vn-id="createInvoicePdfConfirmation"
|
|
on-accept="$ctrl.createInvoicePdf()"
|
|
question="Are you sure you want to regenerate the invoice PDF document?"
|
|
message="You are going to regenerate the invoice PDF document">
|
|
</vn-confirm> |