2022-12-16 09:36:18 +00:00
|
|
|
<vn-crud-model
|
|
|
|
url="InvoiceInConfigs"
|
|
|
|
data="$ctrl.config"
|
|
|
|
filter="{fields: ['sageWithholdingFk']}"
|
|
|
|
id-value="1"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
2022-10-17 13:13:27 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="invoiceIn"
|
2022-04-11 06:02:05 +00:00
|
|
|
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>
|
2022-10-17 13:13:27 +00:00
|
|
|
<vn-item
|
2022-12-16 09:36:18 +00:00
|
|
|
ng-if="$ctrl.isAgricultural()"
|
2022-10-17 13:13:27 +00:00
|
|
|
ng-click="$ctrl.showPdfInvoice()"
|
|
|
|
translate>
|
2022-11-03 07:21:03 +00:00
|
|
|
Show agricultural invoice as PDF
|
2022-10-17 13:13:27 +00:00
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
2022-12-16 09:36:18 +00:00
|
|
|
ng-if="$ctrl.isAgricultural()"
|
2022-10-24 13:15:23 +00:00
|
|
|
ng-click="sendPdfConfirmation.show({email: $ctrl.entity.supplierContact[0].email})"
|
2022-10-17 13:13:27 +00:00
|
|
|
translate>
|
2022-11-03 07:21:03 +00:00
|
|
|
Send agricultural invoice as PDF
|
2022-10-17 13:13:27 +00:00
|
|
|
</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">
|
2022-10-17 13:13:27 +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>
|
2022-10-17 13:13:27 +00:00
|
|
|
|
2021-04-12 10:43:17 +00:00
|
|
|
</div>
|
2022-10-17 13:13:27 +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>
|
2022-10-17 13:13:27 +00:00
|
|
|
<vn-confirm
|
2021-09-28 08:57:51 +00:00
|
|
|
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()">
|
2022-04-11 06:02:05 +00:00
|
|
|
</vn-confirm>
|
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-invoice-in-summary invoice-in="$ctrl.invoiceIn"></vn-invoice-in-summary>
|
2022-10-17 13:13:27 +00:00
|
|
|
</vn-popup>
|
2022-10-20 13:11:56 +00:00
|
|
|
|
|
|
|
<!-- Send PDF invoice confirmation popup -->
|
|
|
|
<vn-dialog
|
|
|
|
vn-id="sendPdfConfirmation"
|
|
|
|
on-accept="$ctrl.sendPdfInvoice($data)"
|
|
|
|
message="Send PDF invoice">
|
|
|
|
<tpl-body>
|
|
|
|
<span translate>Are you sure you want to send it?</span>
|
|
|
|
<vn-textfield vn-one
|
|
|
|
label="Email"
|
|
|
|
ng-model="sendPdfConfirmation.data.email">
|
|
|
|
</vn-textfield>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Confirm</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|