salix/modules/invoiceOut/front/descriptor/index.html

77 lines
2.6 KiB
HTML
Raw Normal View History

<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>
<vn-label-value
label="Date"
value="{{$ctrl.invoiceOut.issued | date: 'dd/MM/yyyy'}}">
2019-03-26 13:27:08 +00:00
</vn-label-value>
<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>
<vn-label-value
label="Client"
value="{{$ctrl.invoiceOut.client.name}}">
2019-03-26 13:27:08 +00:00
</vn-label-value>
<vn-label-value
label="Company"
2019-03-26 13:27:08 +00:00
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.card.summary', {id: $ctrl.invoiceOut.ref}]"
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>