2019-02-05 06:58:05 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="es">
|
|
|
|
<body>
|
2019-02-11 09:06:26 +00:00
|
|
|
<section class="container">
|
2019-02-06 09:53:12 +00:00
|
|
|
<!-- Header component -->
|
2019-02-11 09:06:26 +00:00
|
|
|
<report-header :locale="ticket.locale"></report-header>
|
2019-02-06 09:53:12 +00:00
|
|
|
<!-- End header component -->
|
2019-02-20 07:57:51 +00:00
|
|
|
<section class="main">
|
2019-02-05 06:58:05 +00:00
|
|
|
<section class="columns">
|
|
|
|
<section class="size50">
|
|
|
|
<section class="size75">
|
|
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
|
|
<table class="row-oriented">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('clientId')}}</td>
|
2019-02-11 09:06:26 +00:00
|
|
|
<th>{{client.id}}</th>
|
2019-02-05 06:58:05 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('ticketId')}}</td>
|
2019-02-11 09:06:26 +00:00
|
|
|
<th>{{ticket.id}}</th>
|
2019-02-05 06:58:05 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('date')}}</td>
|
2019-02-11 09:06:26 +00:00
|
|
|
<th>{{shipped}}</th>
|
2019-02-05 06:58:05 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section class="size50">
|
|
|
|
<section class="panel">
|
2019-02-11 09:06:26 +00:00
|
|
|
<section class="header">{{$t('deliveryAddress')}}</section>
|
2019-02-05 06:58:05 +00:00
|
|
|
<section class="body">
|
2019-02-11 09:06:26 +00:00
|
|
|
<h3 class="uppercase">{{address.nickname}}</h3>
|
2019-02-05 06:58:05 +00:00
|
|
|
<section>
|
2019-02-11 09:06:26 +00:00
|
|
|
{{address.street}}
|
2019-02-05 06:58:05 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
2019-02-11 09:06:26 +00:00
|
|
|
{{address.postalCode}}, {{address.city}} ({{address.province}})
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="panel">
|
|
|
|
<section class="header">{{$t('fiscalData')}}</section>
|
|
|
|
<section class="body">
|
|
|
|
<section>
|
|
|
|
{{client.socialName}}
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
{{client.street}}
|
2019-02-05 06:58:05 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
2019-02-11 09:06:26 +00:00
|
|
|
{{client.fi}}
|
2019-02-05 06:58:05 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|
2019-03-05 13:59:18 +00:00
|
|
|
|
|
|
|
<!-- Sales block -->
|
|
|
|
<h3>{{$t('saleLines')}}</h3>
|
2019-02-05 06:58:05 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-02-11 09:06:26 +00:00
|
|
|
<td>{{$t('reference')}}</td>
|
|
|
|
<td class="number">{{$t('quantity')}}</td>
|
|
|
|
<td>{{$t('concept')}}</td>
|
|
|
|
<td class="number">{{$t('price')}}</td>
|
|
|
|
<td class="centered">{{$t('discount')}}</td>
|
|
|
|
<td class="centered">{{$t('vat')}}</td>
|
|
|
|
<td class="number">{{$t('amount')}}</td>
|
2019-02-05 06:58:05 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-02-11 09:06:26 +00:00
|
|
|
<template v-for="sale in sales">
|
|
|
|
<tr class="font bold" :key="sale.id">
|
|
|
|
<td>{{sale.itemFk}}</td>
|
|
|
|
<td class="number">{{sale.quantity}}</td>
|
|
|
|
<td>{{sale.concept}}</td>
|
|
|
|
<td class="number">{{sale.price | currency('EUR')}}</td>
|
|
|
|
<td class="centered">{{sale.discount | percent}}</td>
|
|
|
|
<td class="centered">{{sale.vatType}}</td>
|
|
|
|
<td class="number">{{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR')}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="description">
|
|
|
|
<td colspan="2" class="centered">
|
|
|
|
<strong class="font gray" v-if="sale.val1">{{sale.tag1}}</strong>
|
|
|
|
<span>{{sale.val1}}</span>
|
|
|
|
</td>
|
|
|
|
<td colspan="3" class="centered">
|
|
|
|
<strong class="font gray" v-if="sale.val2">{{sale.tag2}}</strong>
|
|
|
|
<span>{{sale.val2}}</span>
|
|
|
|
</td>
|
|
|
|
<td colspan="2" class="centered">
|
|
|
|
<strong class="font gray" v-if="sale.val3">{{sale.tag3}}</strong>
|
|
|
|
<span>{{sale.val3}}</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="description phytosanitary" v-if="sale.passportNumber">
|
|
|
|
<td colspan="7">
|
|
|
|
{{sale.ediBotanic}} {{sale.denomination}} {{sale.countryCode}}-{{sale.passportNumber}}
|
|
|
|
<span v-if="sale.isProtectedZone">ZP</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
<tr >
|
|
|
|
<td colspan="7"></td>
|
2019-02-05 06:58:05 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
2019-02-11 09:06:26 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="6">
|
|
|
|
<span class="pull-right">{{$t('subtotal')}}</span>
|
|
|
|
</td>
|
|
|
|
<td class="number">{{getSubTotal() | currency('EUR')}}</td>
|
|
|
|
</tr>
|
2019-02-05 06:58:05 +00:00
|
|
|
</tfoot>
|
|
|
|
</table>
|
2019-03-05 13:59:18 +00:00
|
|
|
<!-- End of sales block -->
|
|
|
|
|
2019-02-11 09:06:26 +00:00
|
|
|
<section class="columns">
|
2019-03-05 13:59:18 +00:00
|
|
|
<!-- Services block-->
|
|
|
|
<section class="size100" v-if="services.length > 0">
|
|
|
|
<h3>{{$t('services')}}</h3>
|
2019-02-11 09:06:26 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>{{$t('concept')}}</td>
|
|
|
|
<td class="number">{{$t('quantity')}}</td>
|
2019-03-05 13:59:18 +00:00
|
|
|
<td>{{$t('vatType')}}</td>
|
|
|
|
<td class="number">{{$t('amount')}}</td>
|
2019-02-11 09:06:26 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-03-05 13:59:18 +00:00
|
|
|
<tr v-for="service in services">
|
|
|
|
<td>{{service.description}}</td>
|
|
|
|
<td class="number">{{service.quantity}}</td>
|
|
|
|
<td>{{service.taxDescription}}</td>
|
|
|
|
<td class="number">{{service.price | currency('EUR')}}</td>
|
2019-02-11 09:06:26 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
2019-03-05 13:59:18 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="3"></td>
|
|
|
|
<td class="number">{{$t('total')}} {{serviceTotal | currency('EUR')}}</td>
|
2019-02-11 09:06:26 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</section>
|
2019-03-05 13:59:18 +00:00
|
|
|
<!-- End of services block -->
|
|
|
|
|
|
|
|
<!-- Taxes block -->
|
2019-02-11 09:06:26 +00:00
|
|
|
<section id="taxes" class="size50 pull-right" v-if="taxes">
|
|
|
|
<h3>{{$t('taxBreakdown')}}</h3>
|
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>{{$t('type')}}</td>
|
|
|
|
<td class="number">{{$t('taxBase')}}</td>
|
|
|
|
<td>{{$t('tax')}}</td>
|
|
|
|
<td class="number">{{$t('fee')}}</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="tax in taxes">
|
|
|
|
<td>{{tax.name}}</td>
|
|
|
|
<td class="number">{{tax.Base | currency('EUR')}}</td>
|
|
|
|
<td>{{tax.vatPercent | percent}}</td>
|
|
|
|
<td class="number">{{tax.tax | currency('EUR')}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr class="font bold">
|
|
|
|
<td>{{$t('subtotal')}}</td>
|
|
|
|
<td class="number">{{getTotalBase() | currency('EUR')}}</td>
|
|
|
|
<td></td>
|
|
|
|
<td class="number">{{getTotalTax()| currency('EUR')}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="font bold">
|
|
|
|
<td colspan="2">{{$t('total')}}</td>
|
|
|
|
<td colspan="2" class="number">{{getTotal() | currency('EUR')}}</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</section>
|
2019-03-05 13:59:18 +00:00
|
|
|
<!-- End of taxes block -->
|
|
|
|
|
|
|
|
<!-- Packages block -->
|
|
|
|
<section id="packagings" class="size100" v-if="packagings.length > 0">
|
|
|
|
<h3>{{$t('packagings')}}</h3>
|
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>Id</td>
|
|
|
|
<td>{{$t('concept')}}</td>
|
|
|
|
<td class="number">{{$t('quantity')}}</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="packaging in packagings">
|
|
|
|
<td>{{packaging.itemFk}}</td>
|
|
|
|
<td>{{packaging.name}}</td>
|
|
|
|
<td class="number">{{packaging.quantity}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
|
|
|
<!-- End of packages block -->
|
|
|
|
|
|
|
|
<!-- Signature block -->
|
2019-02-11 12:53:11 +00:00
|
|
|
<section class="size50 pull-left">
|
|
|
|
<section id="signature" class="panel" v-if="signature && signature.id">
|
2019-03-05 13:59:18 +00:00
|
|
|
<section class="header">{{$t('digitalSignature')}}</section>
|
2019-02-11 12:53:11 +00:00
|
|
|
<section class="body centered">
|
|
|
|
<img v-bind:src="dmsPath"/>
|
|
|
|
<section>{{signature.created | date}}</section>
|
|
|
|
</section>
|
|
|
|
</section>
|
2019-02-11 09:06:26 +00:00
|
|
|
</section>
|
2019-03-05 13:59:18 +00:00
|
|
|
<!-- End of signature block -->
|
2019-02-11 09:06:26 +00:00
|
|
|
</section>
|
2019-02-06 09:53:12 +00:00
|
|
|
</section>
|
|
|
|
<!-- Footer component -->
|
2019-02-05 06:58:05 +00:00
|
|
|
<report-footer id="pageFooter"
|
2019-02-11 09:06:26 +00:00
|
|
|
:left-text="$t('ticket', [ticket.id])"
|
|
|
|
:center-text="client.socialName"
|
|
|
|
:locale="client.locale">
|
2019-02-05 06:58:05 +00:00
|
|
|
</report-footer>
|
2019-02-06 09:53:12 +00:00
|
|
|
<!-- End footer component -->
|
2019-02-05 06:58:05 +00:00
|
|
|
</section>
|
|
|
|
</body>
|
|
|
|
</html>
|