2019-01-31 10:44:03 +00:00
|
|
|
<!DOCTYPE html>
|
2019-11-04 07:54:21 +00:00
|
|
|
<html v-bind:lang="locale">
|
2019-01-31 10:44:03 +00:00
|
|
|
<body>
|
2019-11-11 10:04:49 +00:00
|
|
|
<table class="grid">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<!-- Header block -->
|
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
|
|
|
<report-header
|
|
|
|
v-bind:is-preview="isPreview"
|
|
|
|
v-bind:locale="locale">
|
|
|
|
</report-header>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Block -->
|
|
|
|
<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('dated')}}</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>
|
|
|
|
<div>
|
|
|
|
{{client.street}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{client.postcode}}, {{client.city}} ({{client.province}})
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{client.country}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<tr v-for="sale in sales" :key="sale.id">
|
|
|
|
<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"><strong class="pull-left">Total</strong> {{getTotalDebtOut()}}</td>
|
|
|
|
<td class="number">{{getTotalDebtIn()}}</td>
|
|
|
|
<td class="number">{{totalBalance}}</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Footer block -->
|
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
|
|
|
<report-footer id="pageFooter"
|
|
|
|
v-bind:left-text="$t('client', [client.id])"
|
|
|
|
v-bind:center-text="client.socialName"
|
|
|
|
v-bind:is-preview="isPreview"
|
|
|
|
v-bind:locale="locale">
|
|
|
|
</report-footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-01-31 10:44:03 +00:00
|
|
|
</body>
|
|
|
|
</html>
|