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

85 lines
3.0 KiB
HTML
Raw Normal View History

<vn-descriptor-content
module="invoiceIn"
description="$ctrl.invoiceIn.supplierRef"
summary="$ctrl.$.summary">
2021-04-12 10:43:17 +00:00
<slot-menu>
2021-09-24 06:24:34 +00:00
<vn-item
2022-01-20 09:05:24 +00:00
ng-click="$ctrl.checkToBook()"
2021-09-24 06:24:34 +00:00
vn-acl="administrative"
ng-hide="$ctrl.invoiceIn.isBooked == true"
translate>
To book
</vn-item>
2021-04-12 10:43:17 +00:00
<vn-item
ng-click="deleteConfirmation.show()"
2021-09-24 06:24:34 +00:00
vn-acl="administrative"
2021-04-12 10:43:17 +00:00
vn-acl-action="remove"
name="deleteInvoice"
translate>
Delete Invoice
</vn-item>
2021-07-23 12:06:48 +00:00
<vn-item
ng-click="cloneConfirmation.show()"
2021-09-24 06:24:34 +00:00
vn-acl="administrative"
2021-07-23 12:06:48 +00:00
name="cloneInvoice"
translate>
Clone Invoice
</vn-item>
2021-04-12 10:43:17 +00:00
</slot-menu>
<slot-body>
<div class="attributes">
<vn-label-value label="Date" value="{{$ctrl.invoiceIn.issued | date: 'dd/MM/yyyy'}}">
</vn-label-value>
<vn-label-value label="Booked" value="{{$ctrl.invoiceIn.booked | date: 'dd/MM/yyyy'}}">
</vn-label-value>
<vn-label-value label="Import" value="{{$ctrl.invoiceIn.amount | currency: 'EUR': 2}}">
</vn-label-value>
<vn-label-value label="Supplier">
<span ng-click="supplierDescriptor.show($event, $ctrl.invoiceIn.supplier.id)" class="link">
2021-09-24 06:24:34 +00:00
{{$ctrl.invoiceIn.supplier.nickname}}
2021-04-12 10:43:17 +00:00
</span>
</vn-label-value>
</div>
<div class="quicklinks">
<div ng-transclude="btnOne">
<vn-quick-link tooltip="Supplier" state="['supplier.card.summary', {id: $ctrl.invoiceIn.supplier.id}]"
icon="icon-supplier">
</vn-quick-link>
</div>
<div ng-transclude="btnTwo">
<vn-quick-link tooltip="Entries list" state="['entry.index', {q: $ctrl.entryFilter}]"
icon="icon-entry">
</vn-quick-link>
</div>
<div ng-transclude="btnThree">
<vn-quick-link tooltip="Invoice list" state="['invoiceIn.index', {q: $ctrl.invoiceInFilter}]"
2021-11-26 12:53:39 +00:00
icon="icon-invoice-in">
2021-04-12 10:43:17 +00:00
</vn-quick-link>
</div>
2021-09-24 06:24:34 +00:00
2021-04-12 10:43:17 +00:00
</div>
2021-09-24 06:24:34 +00:00
2021-04-12 10:43:17 +00:00
</slot-body>
</vn-descriptor-content>
2021-07-23 12:06:48 +00:00
<vn-confirm
vn-id="deleteConfirmation"
on-accept="$ctrl.deleteInvoiceIn()"
2021-04-12 10:43:17 +00:00
question="Are you sure you want to delete this invoice?">
</vn-confirm>
2021-07-23 12:06:48 +00:00
<vn-confirm
vn-id="cloneConfirmation"
on-accept="$ctrl.cloneInvoiceIn()"
question="Are you sure you want to clone this invoice?">
</vn-confirm>
<vn-supplier-descriptor-popover
vn-id="supplierDescriptor">
2021-04-12 10:43:17 +00:00
</vn-supplier-descriptor-popover>
2021-09-28 08:57:51 +00:00
<vn-confirm
vn-id="confirm-toBookAnyway"
2021-11-18 07:21:02 +00:00
message="Are you sure you want to book this invoice?"
2021-09-28 08:57:51 +00:00
on-accept="$ctrl.onAcceptToBook()">
</vn-confirm>
<vn-popup vn-id="summary">
<vn-invoice-in-summary invoice-in="$ctrl.invoiceIn"></vn-invoice-in-summary>
</vn-popup>