2022-11-10 09:38:54 +00:00
|
|
|
<report-body v-bind="$props">
|
2022-11-10 06:48:24 +00:00
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="size50">
|
|
|
|
<div class="size75">
|
|
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
|
|
<table class="row-oriented">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('clientId')}}</td>
|
|
|
|
<th>{{client.id}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('date')}}</td>
|
|
|
|
<th>{{dated}}</th>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="size50">
|
|
|
|
<div class="panel">
|
|
|
|
<div class="header">{{$t('clientData')}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<h3 class="uppercase">{{client.socialName}}</h3>
|
2022-11-10 09:38:54 +00:00
|
|
|
<div>{{client.street}}</div>
|
|
|
|
<div>{{client.postcode}}, {{client.city}} ({{client.province}})</div>
|
|
|
|
<div>{{client.country}}</div>
|
2021-07-20 07:09:46 +00:00
|
|
|
</div>
|
2022-11-10 06:48:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-10 09:38:54 +00:00
|
|
|
|
2022-11-10 06:48:24 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{$t('date')}}</th>
|
|
|
|
<th>{{$t('concept')}}</th>
|
|
|
|
<th class="number">{{$t('invoiced')}}</th>
|
|
|
|
<th class="number">{{$t('payed')}}</th>
|
|
|
|
<th class="number">{{$t('balance')}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody v-for="sale in sales" :key="sale.id">
|
|
|
|
<tr>
|
|
|
|
<td>{{sale.issued | date('%d-%m-%Y')}}</td>
|
|
|
|
<td>{{sale.ref}}</td>
|
|
|
|
<td class="number">{{sale.debtOut}}</td>
|
|
|
|
<td class="number">{{sale.debtIn}}</td>
|
|
|
|
<td class="number">{{getBalance(sale)}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td class="number">
|
2022-11-10 09:38:54 +00:00
|
|
|
<strong class="pull-left">Total</strong>
|
2022-11-10 06:48:24 +00:00
|
|
|
{{getTotalDebtOut() | currency('EUR', $i18n.locale)}}
|
|
|
|
</td>
|
|
|
|
<td class="number">{{getTotalDebtIn() | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
<td class="number">{{totalBalance | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
</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('client', [client.id])"
|
|
|
|
v-bind:center-text="client.socialName"
|
|
|
|
v-bind="$props"
|
|
|
|
>
|
|
|
|
</report-footer>
|
|
|
|
</template>
|
|
|
|
</report-body>
|