140 lines
8.2 KiB
HTML
140 lines
8.2 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html v-bind:lang="locale">
|
||
|
<body>
|
||
|
<table class="grid">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<!-- Header block -->
|
||
|
<div class="grid-row">
|
||
|
<div class="grid-block">
|
||
|
<report-header v-bind="$props"
|
||
|
v-bind:company-code="entry.companyCode">
|
||
|
</report-header>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Block -->
|
||
|
<div class="grid-row">
|
||
|
<div class="grid-block">
|
||
|
<div class="columns">
|
||
|
<div class="size50">
|
||
|
<div class="size75">
|
||
|
<div class="body">
|
||
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
||
|
<table class="row-oriented">
|
||
|
<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>
|
||
|
</div>
|
||
|
</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>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- Buy block -->
|
||
|
<table class="column-oriented">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td class="number">{{$t('boxes')}}</td>
|
||
|
<td class="number">{{$t('packing')}}</td>
|
||
|
<td>{{$t('concept')}}</td>
|
||
|
<td class="number">{{$t('quantity')}}</td>
|
||
|
<td class="number">{{$t('price')}}</td>
|
||
|
<td class="number">{{$t('amount')}}</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<template v-for="buy in buys">
|
||
|
<tr class="font bold">
|
||
|
<td class="number">{{buy.box}}</td>
|
||
|
<td class="number">{{buy.packing}}</td>
|
||
|
<td>{{buy.itemName}}</td>
|
||
|
<td class="number">{{buy.quantity}}</td>
|
||
|
<td class="number">{{buy.buyingValue | currency('EUR', locale)}}</td>
|
||
|
<td class="number">{{buy.buyingValue * buy.quantity | currency('EUR', locale)}}</td>
|
||
|
</tr>
|
||
|
<tr class="description">
|
||
|
<td colspan="2" class="centered">
|
||
|
<div v-if="buy.value5">
|
||
|
<strong class="font gray">{{buy.tag5}}</strong>
|
||
|
<span>{{buy.value5}}</span>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td colspan="2" class="centered">
|
||
|
<div v-if="buy.value6">
|
||
|
<strong class="font gray">{{buy.tag6}}</strong>
|
||
|
<span>{{buy.value6}}</span>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td colspan="2" class="centered">
|
||
|
<div v-if="buy.value7">
|
||
|
<strong class="font gray">{{buy.tag7}}</strong>
|
||
|
<span>{{buy.value7}}</span>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</template>
|
||
|
</tbody>
|
||
|
<tfoot>
|
||
|
<tr>
|
||
|
<td colspan="5">
|
||
|
<span class="pull-right">{{$t('total')}}</span>
|
||
|
</td>
|
||
|
<td class="number">{{getTotal() | currency('EUR', locale)}}</td>
|
||
|
</tr>
|
||
|
</tfoot>
|
||
|
</table>
|
||
|
<!-- End of buy block -->
|
||
|
<div class="columns">
|
||
|
<div class="size50">
|
||
|
<div id="notes" class="panel" v-if="entry.notes">
|
||
|
<div class="body">
|
||
|
<h3>{{$t('notes')}}</h3>
|
||
|
<div>
|
||
|
{{entry.notes}}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Footer block -->
|
||
|
<div class="grid-row">
|
||
|
<div class="grid-block">
|
||
|
<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>
|
||
|
</div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|