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

77 lines
2.6 KiB
HTML

<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>
<div class="attributes">
<h5>{{$ctrl.invoiceOut.ref}}</h5>
<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"
value="{{$ctrl.invoiceOut.client.name}}">
</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.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>