2020-02-20 08:31:09 +00:00
|
|
|
<!DOCTYPE html>
|
2020-05-20 14:23:53 +00:00
|
|
|
<html v-bind:lang="$i18n.locale">
|
2020-02-20 08:31:09 +00:00
|
|
|
<body>
|
|
|
|
<table class="grid">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<!-- Header block -->
|
2020-07-02 14:07:26 +00:00
|
|
|
<report-header v-bind="$props"
|
|
|
|
v-bind:company-code="entry.companyCode">
|
|
|
|
</report-header>
|
2020-02-20 08:31:09 +00:00
|
|
|
<!-- Block -->
|
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="size50">
|
2020-12-16 10:40:51 +00:00
|
|
|
<div class="body">
|
|
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
|
|
<table class="row-oriented report-info">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('entryId')}}</td>
|
|
|
|
<th>{{entry.id}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('date')}}</td>
|
|
|
|
<th>{{entry.landed | date('%d-%m-%Y')}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('ref')}}</td>
|
|
|
|
<th>{{entry.ref}}</th>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-02-20 08:31:09 +00:00
|
|
|
</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>
|
2020-02-24 07:44:43 +00:00
|
|
|
<div>
|
|
|
|
{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{supplier.nif}}
|
|
|
|
</div>
|
2020-02-20 08:31:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Buy block -->
|
2020-12-16 10:40:51 +00:00
|
|
|
<table class="column-oriented vn-mt-lg">
|
2020-02-20 08:31:09 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-12-16 10:40:51 +00:00
|
|
|
<th class="number">{{$t('boxes')}}</th>
|
|
|
|
<th class="number">{{$t('packing')}}</th>
|
|
|
|
<th width="50%">{{$t('concept')}}</th>
|
|
|
|
<th width="10%" class="number">{{$t('quantity')}}</th>
|
|
|
|
<th width="15%" class="number">{{$t('price')}}</th>
|
|
|
|
<th width="15%" class="number">{{$t('amount')}}</th>
|
2020-02-20 08:31:09 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-03-03 12:22:36 +00:00
|
|
|
<tbody v-for="buy in buys">
|
2020-12-16 10:40:51 +00:00
|
|
|
<tr>
|
2020-03-03 12:22:36 +00:00
|
|
|
<td class="number">{{buy.box}}</td>
|
|
|
|
<td class="number">{{buy.packing}}</td>
|
|
|
|
<td width="50%">{{buy.itemName}}</td>
|
2020-12-16 10:40:51 +00:00
|
|
|
<td width="10%" class="number">{{buy.quantity | number($i18n.locale)}}</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td width="15%" class="number">{{buy.buyingValue | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
<td width="15%" class="number">{{buy.buyingValue * buy.quantity | currency('EUR', $i18n.locale)}}</td>
|
2020-03-03 12:22:36 +00:00
|
|
|
</tr>
|
2020-12-16 10:40:51 +00:00
|
|
|
<tr class="description font light-gray">
|
|
|
|
<td colspan="7">
|
|
|
|
<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>
|
2020-03-03 12:22:36 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2020-02-20 08:31:09 +00:00
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2020-12-16 10:40:51 +00:00
|
|
|
<td colspan="5" class="font bold">
|
2020-02-20 08:31:09 +00:00
|
|
|
<span class="pull-right">{{$t('total')}}</span>
|
|
|
|
</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{getTotal() | currency('EUR', $i18n.locale)}}</td>
|
2020-02-20 08:31:09 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
<!-- End of buy block -->
|
|
|
|
<div class="columns">
|
|
|
|
<div class="size50">
|
2020-03-03 12:22:36 +00:00
|
|
|
<div id="notes" class="panel no-page-break" v-if="entry.notes">
|
2020-02-20 08:31:09 +00:00
|
|
|
<div class="body">
|
|
|
|
<h3>{{$t('notes')}}</h3>
|
|
|
|
<div>
|
|
|
|
{{entry.notes}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Footer block -->
|
2020-07-02 14:07:26 +00:00
|
|
|
<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>
|
2020-02-20 08:31:09 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|