317 lines
20 KiB
HTML
317 lines
20 KiB
HTML
<!DOCTYPE html>
|
|
<html v-bind:lang="$i18n.locale">
|
|
<body>
|
|
<table class="grid">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
|
|
<!-- Header block -->
|
|
<report-header v-bind="$props"
|
|
v-bind:company-code="invoice.companyCode">
|
|
</report-header>
|
|
<!-- Block -->
|
|
<div class="grid-row">
|
|
<div class="grid-block">
|
|
<div class="columns vn-mb-lg">
|
|
<div class="size50">
|
|
<div class="size75 vn-mt-ml">
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
<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>
|
|
<th>{{invoice.id}}</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="font gray uppercase">{{$t('date')}}</td>
|
|
<th>{{invoice.created | date('%d-%m-%Y')}}</th>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="size50">
|
|
<div class="panel">
|
|
<div class="header">{{$t('invoiceData')}}</div>
|
|
<div class="body">
|
|
<h3 class="uppercase">{{invoice.name}}</h3>
|
|
<div>
|
|
{{invoice.postalAddress}}
|
|
</div>
|
|
<div>
|
|
{{invoice.postcodeCity}}
|
|
</div>
|
|
<div>
|
|
{{$t('fiscalId')}}: {{invoice.nif}}
|
|
</div>
|
|
<div>
|
|
{{$t('phone')}}: {{invoice.phone}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--
|
|
Rectified invoices block
|
|
<div class="size100 no-page-break" v-if="rectified.length > 0">
|
|
<h2>{{$t('rectifiedInvoices')}}</h2>
|
|
<table class="column-oriented">
|
|
<thead>
|
|
<tr>
|
|
<th>{{$t('invoice')}}</th>
|
|
<th>{{$t('issued')}}</th>
|
|
<th class="number">{{$t('amount')}}</th>
|
|
<th width="50%">{{$t('description')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="row in rectified">
|
|
<td>{{row.ref}}</td>
|
|
<td>{{row.issued | date}}</td>
|
|
<td class="number">{{row.amount | currency('EUR', $i18n.locale)}}</td>
|
|
<td width="50%">{{row.description}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
End of rectified invoices block-->
|
|
|
|
<div class="vn-mt-lg" v-for="entry in entries">
|
|
<div class="table-title clearfix">
|
|
<div class="pull-left">
|
|
<h2>{{$t('invoiceIn')}}</strong>
|
|
</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">
|
|
<span>{{entry.landed | date}}</span>
|
|
</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">
|
|
<span>{{entry.ref}}</span>
|
|
</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>
|
|
<td class="number">{{buy.buyingValue}}</td>
|
|
<td class="number">{{buyImport(buy) | currency('EUR', $i18n.locale)}}</td>
|
|
</tr>
|
|
<tr class="description font light-gray">
|
|
<td colspan="4">
|
|
<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>
|
|
</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>
|
|
<!-- End of sales block -->
|
|
|
|
<div class="columns vn-mt-xl">
|
|
Taxes block
|
|
<div id="taxes" class="size50 pull-right no-page-break" v-if="taxes">
|
|
<table class="column-oriented">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="4">{{$t('taxBreakdown')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<thead class="light">
|
|
<tr>
|
|
<th width="45%">{{$t('type')}}</th>
|
|
<th width="25%" class="number">
|
|
{{$t('taxBase')}}
|
|
</th>
|
|
<th>{{$t('tax')}}</th>
|
|
<th class="number">{{$t('fee')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="tax in taxes">
|
|
<td width="45%">{{tax.name}}</td>
|
|
<td width="25%" class="number">
|
|
{{tax.base | currency('EUR', $i18n.locale)}}
|
|
</td>
|
|
<td>{{tax.vatPercent | percentage}}</td>
|
|
<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, 'base') | 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>
|
|
|
|
<div class="panel" v-if="invoice.footNotes">
|
|
<div class="header">{{$t('notes')}}</div>
|
|
<div class="body">
|
|
<span>{{invoice.footNotes}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- End of taxes block -->
|
|
<!--
|
|
Phytosanitary block
|
|
<div id="phytosanitary" class="size50 pull-left no-page-break">
|
|
<div class="panel">
|
|
<div class="body">
|
|
<div class="flag">
|
|
<div class="columns">
|
|
<div class="size25">
|
|
<img v-bind:src="getReportSrc('europe.png')"/>
|
|
</div>
|
|
<div class="size75 flag-text">
|
|
<strong>{{$t('plantPassport')}}</strong><br/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="phytosanitary-info">
|
|
<div>
|
|
<strong>A</strong>
|
|
<span>{{botanical}}</span>
|
|
</div>
|
|
<div>
|
|
<strong>B</strong>
|
|
<span>ES17462130</span>
|
|
</div>
|
|
<div>
|
|
<strong>C</strong>
|
|
<span>{{ticketsId}}</span>
|
|
</div>
|
|
<div>
|
|
<strong>D</strong>
|
|
<span>ES</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
End of phytosanitary block
|
|
</div>
|
|
|
|
|
|
Intrastat block
|
|
<div class="size100 no-page-break" v-if="intrastat.length > 0">
|
|
<h2>{{$t('intrastat')}}</h2>
|
|
<table class="column-oriented">
|
|
<thead>
|
|
<tr>
|
|
<th>{{$t('code')}}</th>
|
|
<th width="50%">{{$t('description')}}</th>
|
|
<th class="number">{{$t('stems')}}</th>
|
|
<th class="number">{{$t('netKg')}}</th>
|
|
<th class="number">{{$t('amount')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="row in intrastat">
|
|
<td>{{row.code}}</td>
|
|
<td width="50%">{{row.description}}</td>
|
|
<td class="number">{{row.stems | number($i18n.locale)}}</td>
|
|
<td class="number">{{row.netKg | number($i18n.locale)}}</td>
|
|
<td class="number">{{row.subtotal | currency('EUR', $i18n.locale)}}</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2"></td>
|
|
<td class="number">
|
|
<strong>{{sumTotal(intrastat, 'stems') | number($i18n.locale)}}</strong>
|
|
</td>
|
|
<td class="number">
|
|
<strong>{{sumTotal(intrastat, 'netKg') | number($i18n.locale)}}</strong>
|
|
</td>
|
|
<td class="number">
|
|
<strong>{{sumTotal(intrastat, 'subtotal') | currency('EUR', $i18n.locale)}}</strong>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
End of intrastat block
|
|
|
|
Observations block
|
|
<div class="columns vn-mt-xl" v-if="invoice.payMethodCode == 'wireTransfer'">
|
|
<div class="size50 pull-left no-page-break" >
|
|
<div class="panel" >
|
|
<div class="header">{{$t('observations')}}</div>
|
|
<div class="body">
|
|
<div>{{$t('wireTransfer')}}</div>
|
|
<div>{{$t('accountNumber', [invoice.iban])}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
End of observations block
|
|
|
|
</div>
|
|
</div>
|
|
Footer block
|
|
<report-footer id="pageFooter"
|
|
v-bind:company-code="invoice.companyCode"
|
|
v-bind:left-text="$t('invoiceRef', [invoice.ref])"
|
|
v-bind:center-text="client.socialName"
|
|
v-bind="$props">
|
|
</report-footer> -->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|