2020-04-30 10:48:52 +00:00
|
|
|
<vn-descriptor-content module="invoiceOut">
|
|
|
|
<slot-menu>
|
|
|
|
<ul class="vn-list">
|
|
|
|
<li>
|
|
|
|
<a class="vn-item"
|
|
|
|
href="api/InvoiceOuts/{{$ctrl.id}}/download?access_token={{$ctrl.vnToken.token}}"
|
|
|
|
target="_blank"
|
|
|
|
translate>
|
|
|
|
Show invoice PDF
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li vn-acl="invoicing">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="deleteConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Delete Invoice
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li vn-acl="invoicing">
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="bookConfirmation.show()"
|
|
|
|
translate>
|
|
|
|
Book invoice
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</slot-menu>
|
|
|
|
<slot-body>
|
2019-03-26 13:27:08 +00:00
|
|
|
<div class="attributes">
|
|
|
|
<h5>{{$ctrl.invoiceOut.ref}}</h5>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Date"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.invoiceOut.issued | date: 'dd/MM/yyyy'}}">
|
2019-03-26 13:27:08 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Import"
|
2019-04-08 14:53:37 +00:00
|
|
|
value="{{$ctrl.invoiceOut.amount | currency: 'EUR': 2}}">
|
2019-03-26 13:27:08 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Client"
|
|
|
|
value="{{$ctrl.invoiceOut.client.name}}">
|
2019-03-26 13:27:08 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Company"
|
2019-03-26 13:27:08 +00:00
|
|
|
value="{{$ctrl.invoiceOut.company.code}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</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.invoiceOut.clientFk}]"
|
|
|
|
icon="person">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnTwo">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Invoice ticket list"
|
|
|
|
state="['ticket.card.summary', {id: $ctrl.invoiceOut.ref}]"
|
|
|
|
icon="icon-ticket">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
<div ng-transclude="btnThree">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</slot-body>
|
|
|
|
</vn-descriptor-content>
|
2019-04-26 10:05:49 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteConfirmation"
|
2020-03-31 13:15:16 +00:00
|
|
|
on-accept="$ctrl.deleteInvoiceOut()"
|
2019-04-26 10:05:49 +00:00
|
|
|
question="Are you sure you want to delete this invoice?">
|
2019-04-30 09:03:48 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="bookConfirmation"
|
2020-03-31 13:15:16 +00:00
|
|
|
on-accept="$ctrl.bookInvoiceOut()"
|
2019-04-30 09:03:48 +00:00
|
|
|
question="Are you sure you want to book this invoice?">
|
2019-04-26 10:05:49 +00:00
|
|
|
</vn-confirm>
|