2022-11-10 09:38:54 +00:00
|
|
|
<report-body v-bind="$props">
|
|
|
|
<template v-slot:header>
|
|
|
|
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode"></report-header>
|
|
|
|
</template>
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
|
|
|
<div class="columns vn-mb-lg">
|
2022-12-16 09:36:18 +00:00
|
|
|
<div class="size75">
|
|
|
|
<div class="size100 vn-mt-ml">
|
2022-11-10 07:57:42 +00:00
|
|
|
<table class="row-oriented ticket-info">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('supplierId')}}</td>
|
|
|
|
<th>{{invoice.supplierId}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('invoiceId')}}</td>
|
2022-12-16 09:36:18 +00:00
|
|
|
<th>{{invoice.supplierRef}}</th>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('date')}}</td>
|
2023-05-17 09:54:59 +00:00
|
|
|
<th>{{formatDate(invoice.issued, '%d-%m-%Y')}}</th>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-16 09:36:18 +00:00
|
|
|
<div class="size25">
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="panel">
|
|
|
|
<div class="header">{{$t('invoiceData')}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<h3 class="uppercase">{{invoice.name}}</h3>
|
2022-11-10 09:38:54 +00:00
|
|
|
<div>{{invoice.postalAddress}}</div>
|
|
|
|
<div>{{invoice.postcodeCity}}</div>
|
|
|
|
<div v-if="invoice.nif">{{$t('fiscalId')}}: {{invoice.nif}}</div>
|
|
|
|
<div v-if="invoice.phone">{{$t('phone')}}: {{invoice.phone}}</div>
|
2022-11-10 07:57:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-17 13:13:27 +00:00
|
|
|
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="vn-mt-lg" v-for="entry in entries">
|
|
|
|
<div class="table-title clearfix">
|
|
|
|
<div class="pull-left">
|
2022-12-16 09:36:18 +00:00
|
|
|
<h2>{{$t('entry')}}</h2>
|
2022-11-10 07:57:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="pull-left vn-mr-md">
|
|
|
|
<div class="field rectangle">
|
|
|
|
<span>{{entry.id}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pull-left">
|
|
|
|
<h2>{{$t('date')}}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="pull-left">
|
|
|
|
<div class="field rectangle">
|
2023-01-23 12:15:30 +00:00
|
|
|
<span>{{formatDate(entry.landed, '%d-%m-%Y')}}</span>
|
2022-11-10 07:57:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span id="nickname" class="pull-right">
|
|
|
|
<div class="pull-left">
|
|
|
|
<h2>{{$t('reference')}}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="pull-left">
|
|
|
|
<div class="field rectangle">
|
2022-12-16 09:36:18 +00:00
|
|
|
<span>{{entry.reference}}</span>
|
2022-11-10 07:57:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="50%">{{$t('item')}}</th>
|
|
|
|
<th class="number">{{$t('quantity')}}</th>
|
|
|
|
<th class="number">{{$t('buyingValue')}}</th>
|
|
|
|
<th class="number">{{$t('amount')}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody v-for="buy in entry.buys" class="no-page-break">
|
|
|
|
<tr>
|
|
|
|
<td width="50%">{{buy.name}}</td>
|
|
|
|
<td class="number">{{buy.quantity}}</td>
|
2022-12-16 09:36:18 +00:00
|
|
|
<td class="number">{{buy.buyingValue | currency('EUR', $i18n.locale)}}</td>
|
2022-11-10 07:57:42 +00:00
|
|
|
<td class="number">{{buyImport(buy) | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="description font light-gray">
|
|
|
|
<td colspan="4">
|
2022-11-10 09:38:54 +00:00
|
|
|
<span v-if="buy.value5"> <strong>{{buy.tag5}}</strong> {{buy.value5}} </span>
|
|
|
|
<span v-if="buy.value6"> <strong>{{buy.tag6}}</strong> {{buy.value6}} </span>
|
|
|
|
<span v-if="buy.value7"> <strong>{{buy.tag7}}</strong> {{buy.value7}} </span>
|
2022-11-10 07:57:42 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3" class="font bold">
|
|
|
|
<span class="pull-right">{{$t('subtotal')}}</span>
|
|
|
|
</td>
|
|
|
|
<td class="number">{{entrySubtotal(entry) | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-12-16 09:36:18 +00:00
|
|
|
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="columns vn-mt-xl">
|
2022-12-16 09:36:18 +00:00
|
|
|
<div id="signature" class="size50 pull-left no-page-break vn-pr-xs">
|
|
|
|
<div class="panel">
|
|
|
|
<div class="header">{{$t('payMethod')}}: {{invoice.payMethod}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<div class="vn-mt-md">{{$t('signer.received')}}:</div>
|
|
|
|
<div class="vn-my-md">{{$t('signer.signed')}}:</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="taxes" class="size50 pull-right no-page-break vn-pl-xs vn-mt-md" v-if="taxes">
|
2022-11-10 07:57:42 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">{{$t('taxBreakdown')}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="tax in taxes">
|
|
|
|
<td width="45%">{{tax.name}}</td>
|
2022-12-16 09:36:18 +00:00
|
|
|
<td width="25%" class="number">{{tax.taxableBase | currency('EUR', $i18n.locale)}}
|
|
|
|
</td>
|
|
|
|
<td>{{(tax.rate / 100) | percentage}}</td>
|
2022-11-10 07:57:42 +00:00
|
|
|
<td class="number">{{tax.vat | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr class="font bold">
|
|
|
|
<td width="45%">{{$t('subtotal')}}</td>
|
|
|
|
<td width="20%" class="number">
|
|
|
|
{{sumTotal(taxes, 'taxableBase') | currency('EUR', $i18n.locale)}}
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
<td class="number">{{sumTotal(taxes, 'vat') | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="font bold">
|
|
|
|
<td colspan="2">{{$t('total')}}</td>
|
|
|
|
<td colspan="2" class="number">{{taxTotal() | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
2022-10-17 13:13:27 +00:00
|
|
|
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="panel" v-if="invoice.footNotes">
|
|
|
|
<div class="header">{{$t('notes')}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<span>{{invoice.footNotes}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-16 09:36:18 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="footer" class="vn-mt-xl">
|
|
|
|
<h2 class="centered bold">{{$t('footer')}}</h2>
|
2022-11-10 07:57:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-10 09:38:54 +00:00
|
|
|
<template v-slot:footer>
|
2022-12-16 09:36:18 +00:00
|
|
|
<report-footer id="pageFooter" v-bind:company-code="invoice.companyCode" v-bind:left-text="$t('invoiceId')"
|
|
|
|
v-bind:center-text="invoice.name" v-bind="$props">
|
2022-11-10 09:38:54 +00:00
|
|
|
</report-footer>
|
|
|
|
</template>
|
|
|
|
</report-body>
|