115 lines
5.7 KiB
HTML
115 lines
5.7 KiB
HTML
<report-body v-bind="$props">
|
|
<template v-slot:header>
|
|
<report-header v-bind="$props" v-bind:company-code="entry.companyCode"></report-header>
|
|
</template>
|
|
<div class="grid-row">
|
|
<div class="grid-block">
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
<div class="columns header-tables">
|
|
<div class="size50">
|
|
<div class="body">
|
|
<table class="row-oriented report-info">
|
|
<tbody>
|
|
<tr>
|
|
<td class="font gray uppercase padding nowrap">{{$t('entryId')}}</td>
|
|
<th>{{entry.id}}</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="font gray uppercase padding nowrap">{{$t('date')}}</td>
|
|
<th>{{formatDate(entry.landed,'%d-%m-%Y')}}</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="font gray uppercase padding nowrap">{{$t('ref')}}</td>
|
|
<th>{{entry.invoiceNumber | dashIfEmpty}}</th>
|
|
</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>
|
|
<div>{{supplier.street}}</div>
|
|
<div>{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})</div>
|
|
<div>{{supplier.nif}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<table class="column-oriented vn-mt-ml border-collapse">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">{{$t('code')}}</th>
|
|
<th class="number">{{$t('boxes')}}</th>
|
|
<th width="1px" class="number"></th>
|
|
<th class="number">{{$t('packing')}}</th>
|
|
<th width="5%">{{$t('concept')}}</th>
|
|
<th width="20%">{{$t('reference')}}</th>
|
|
<th width="20%">{{$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>
|
|
</tr>
|
|
</thead>
|
|
<tbody v-for="buy in buys">
|
|
<tr>
|
|
<td width="5%">{{buy.itemFk}}</td>
|
|
<td class="number">{{buy.stickers}}</td>
|
|
<td width="1px" class="number">x</td>
|
|
<td class="number align-left">{{buy.packing}}</td>
|
|
<td width="5%" class="nowrap">{{buy.name}}</td>
|
|
<td width="20%">referencia de prueba</td>
|
|
<td width="20%" class="font light-gray tags" row>
|
|
<div>
|
|
<div class="nowrap" v-if="buy.value5">{{buy.tag5}}<strong>→ {{buy.value5}}</strong></div>
|
|
<div class="nowrap" v-if="buy.value6">{{buy.tag6}}<strong>→ {{buy.value6}}</strong></div>
|
|
</div>
|
|
<div>
|
|
<div class="nowrap" v-if="buy.value7">{{buy.tag7}}<strong>→ {{buy.value7}}</strong></div>
|
|
<div class="nowrap" v-if="buy.value8">{{buy.tag8}}<strong>→ {{buy.value8}}</strong></div>
|
|
</div>
|
|
</td>
|
|
<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">
|
|
{{buy.buyingValue * buy.quantity | currency('EUR', $i18n.locale)}}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr class="font bold">
|
|
<td></td>
|
|
<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>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<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>
|