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="entry.companyCode"></report-header>
|
|
|
|
</template>
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
2024-08-20 13:03:34 +00:00
|
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
|
|
<div class="columns header-tables">
|
2022-11-10 07:57:42 +00:00
|
|
|
<div class="size50">
|
|
|
|
<div class="body">
|
|
|
|
<table class="row-oriented report-info">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2024-08-20 13:03:34 +00:00
|
|
|
<td class="font gray uppercase padding nowrap">{{$t('entryId')}}</td>
|
2022-11-10 07:57:42 +00:00
|
|
|
<th>{{entry.id}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2024-08-20 13:03:34 +00:00
|
|
|
<td class="font gray uppercase padding nowrap">{{$t('date')}}</td>
|
2023-01-23 12:15:30 +00:00
|
|
|
<th>{{formatDate(entry.landed,'%d-%m-%Y')}}</th>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2024-08-20 13:03:34 +00:00
|
|
|
<td class="font gray uppercase padding nowrap">{{$t('ref')}}</td>
|
2024-08-21 06:05:45 +00:00
|
|
|
<th>{{entry.invoiceNumber | dashIfEmpty}}</th>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="size50">
|
|
|
|
<div class="panel">
|
|
|
|
<div class="header">{{$t('supplierData')}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<h3 class="uppercase">{{supplier.name}}</h3>
|
2022-11-10 09:38:54 +00:00
|
|
|
<div>{{supplier.street}}</div>
|
|
|
|
<div>{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})</div>
|
|
|
|
<div>{{supplier.nif}}</div>
|
2022-11-10 07:57:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-08-20 13:03:34 +00:00
|
|
|
<table class="column-oriented vn-mt-ml border-collapse">
|
2022-11-10 07:57:42 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-11-11 15:16:42 +00:00
|
|
|
<th width="5%">{{$t('reference')}}</th>
|
2022-11-10 07:57:42 +00:00
|
|
|
<th class="number">{{$t('boxes')}}</th>
|
2024-11-11 15:16:42 +00:00
|
|
|
<th width="1px" class="number"></th>
|
2022-11-10 07:57:42 +00:00
|
|
|
<th class="number">{{$t('packing')}}</th>
|
2024-11-11 15:16:42 +00:00
|
|
|
<th width="25%">{{$t('concept')}}</th>
|
|
|
|
<th width="45%">{{$t('tags')}}</th>
|
|
|
|
<th width="5%" class="number">{{$t('quantity')}}</th>
|
|
|
|
<th width="1px" class="number"></th>
|
|
|
|
<th width="5%" class="number">{{$t('price')}}</th>
|
|
|
|
<th width="1px" class="number"></th>
|
|
|
|
<th width="5%" class="number">{{$t('amount')}}</th>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody v-for="buy in buys">
|
|
|
|
<tr>
|
2024-11-11 15:16:42 +00:00
|
|
|
<td width="5%">{{buy.comment}}</td>
|
2024-08-20 13:03:34 +00:00
|
|
|
<td class="number">{{buy.stickers}}</td>
|
2024-11-11 15:16:42 +00:00
|
|
|
<td width="1px" class="number">x</td>
|
|
|
|
<td class="number align-left">{{buy.packing}}</td>
|
|
|
|
<td width="25%" class="nowrap">{{buy.name}}</td>
|
|
|
|
<td width="45%" class="font light-gray tags">
|
|
|
|
<span v-if="buy.value5" class="nowrap"><strong>{{buy.tag5}} → </strong>{{buy.value5}}</span>
|
|
|
|
<span v-if="buy.value6" class="nowrap"><strong>{{buy.tag6}} → </strong>{{buy.value6}}</span>
|
|
|
|
<span v-if="buy.value7" class="nowrap"><strong>{{buy.tag7}} → </strong>{{buy.value7}}</span>
|
2024-08-20 13:03:34 +00:00
|
|
|
</td>
|
2024-11-11 15:16:42 +00:00
|
|
|
<td width="5%" class="number">{{buy.quantity | number($i18n.locale)}}</td>
|
|
|
|
<td width="1px" class="number">x</td>
|
|
|
|
<td width="5%" class="number">{{buy.buyingValue | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
<td width="1px" class="number">=</td>
|
|
|
|
<td width="5%" class="number align-left">
|
2022-11-10 09:38:54 +00:00
|
|
|
{{buy.buyingValue * buy.quantity | currency('EUR', $i18n.locale)}}
|
|
|
|
</td>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
2024-08-20 13:03:34 +00:00
|
|
|
<tr class="font bold">
|
|
|
|
<td class="number">{{getTotalBy('stickers')}}</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td class="number">{{getTotalBy('quantity') | number($i18n.locale)}}</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td class="number">{{getTotalBy('amount') | currency('EUR', $i18n.locale)}}</td>
|
2022-11-10 07:57:42 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-10 09:38:54 +00:00
|
|
|
<template v-slot:footer>
|
|
|
|
<report-footer
|
|
|
|
id="pageFooter"
|
|
|
|
v-bind:left-text="$t('entry', [entry.id])"
|
|
|
|
v-bind:company-code="entry.companyCode"
|
|
|
|
v-bind:center-text="supplier.name"
|
|
|
|
v-bind:="$props"
|
|
|
|
>
|
|
|
|
</report-footer>
|
|
|
|
</template>
|
|
|
|
</report-body>
|