2019-02-05 06:58:05 +00:00
|
|
|
<!DOCTYPE html>
|
2020-05-20 14:23:53 +00:00
|
|
|
<html v-bind:lang="$i18n.locale">
|
2019-02-05 06:58:05 +00:00
|
|
|
<body>
|
2019-11-11 10:04:49 +00:00
|
|
|
<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="ticket.companyCode">
|
|
|
|
</report-header>
|
2019-11-11 10:04:49 +00:00
|
|
|
<!-- Block -->
|
|
|
|
<div class="grid-row">
|
|
|
|
<div class="grid-block">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="size50">
|
2020-12-16 08:24:11 +00:00
|
|
|
<div class="size75 vn-mt-lg">
|
2019-11-11 10:04:49 +00:00
|
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
2020-09-25 12:45:00 +00:00
|
|
|
<table class="row-oriented ticket-info">
|
2019-11-11 10:04:49 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('clientId')}}</td>
|
|
|
|
<th>{{client.id}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('ticketId')}}</td>
|
|
|
|
<th>{{ticket.id}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font gray uppercase">{{$t('date')}}</td>
|
|
|
|
<th>{{ticket.shipped | date('%d-%m-%Y')}}</th>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="size50">
|
|
|
|
<div class="panel">
|
|
|
|
<div class="header">{{$t('deliveryAddress')}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<h3 class="uppercase">{{address.nickname}}</h3>
|
|
|
|
<div>
|
|
|
|
{{address.street}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{address.postalCode}}, {{address.city}} ({{address.province}})
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
|
|
|
<div class="header">{{$t('fiscalData')}}</div>
|
|
|
|
<div class="body">
|
|
|
|
<div>
|
|
|
|
{{client.socialName}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{client.street}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{client.fi}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Sales block -->
|
2020-12-16 08:24:11 +00:00
|
|
|
<h2>{{$t('saleLines')}}</h2>
|
2019-11-11 10:04:49 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-12-16 08:24:11 +00:00
|
|
|
<th width="5%">{{$t('reference')}}</th>
|
|
|
|
<th class="number">{{$t('quantity')}}</th>
|
|
|
|
<th width="50%">{{$t('concept')}}</th>
|
|
|
|
<th class="number">{{$t('price')}}</th>
|
|
|
|
<th class="centered" width="5%">{{$t('discount')}}</th>
|
|
|
|
<th class="centered">{{$t('vat')}}</th>
|
|
|
|
<th class="number">{{$t('amount')}}</th>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-12-16 08:24:11 +00:00
|
|
|
<tbody v-for="sale in sales" class="no-page-break">
|
|
|
|
<tr>
|
|
|
|
<td width="5%">{{sale.itemFk | zerofill('000000')}}</td>
|
2020-03-03 12:22:36 +00:00
|
|
|
<td class="number">{{sale.quantity}}</td>
|
|
|
|
<td width="50%">{{sale.concept}}</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{sale.price | currency('EUR', $i18n.locale)}}</td>
|
2020-12-16 08:24:11 +00:00
|
|
|
<td class="centered" width="5%">{{(sale.discount / 100) | percentage}}</td>
|
2020-03-03 12:22:36 +00:00
|
|
|
<td class="centered">{{sale.vatType}}</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR', $i18n.locale)}}</td>
|
2020-03-03 12:22:36 +00:00
|
|
|
</tr>
|
2020-12-16 08:24:11 +00:00
|
|
|
<tr class="description font light-gray">
|
2020-03-03 12:22:36 +00:00
|
|
|
<td colspan="7">
|
2020-12-16 08:24:11 +00:00
|
|
|
<span v-if="sale.value5">
|
|
|
|
<strong>{{sale.tag5}}</strong> {{sale.value5}}
|
|
|
|
</span>
|
|
|
|
<span v-if="sale.value6">
|
|
|
|
<strong>{{sale.tag6}}</strong> {{sale.value6}}
|
|
|
|
</span>
|
|
|
|
<span v-if="sale.value7">
|
|
|
|
<strong>{{sale.tag7}}</strong> {{sale.value7}}
|
|
|
|
</span>
|
2020-03-03 12:22:36 +00:00
|
|
|
</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2020-12-16 08:24:11 +00:00
|
|
|
<td colspan="6" class="font bold">
|
2019-11-11 10:04:49 +00:00
|
|
|
<span class="pull-right">{{$t('subtotal')}}</span>
|
|
|
|
</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{getSubTotal() | currency('EUR', $i18n.locale)}}</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
<!-- End of sales block -->
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
<!-- Services block-->
|
2020-03-03 12:22:36 +00:00
|
|
|
<div class="size100 no-page-break" v-if="services.length > 0">
|
2020-12-16 08:24:11 +00:00
|
|
|
<h2>{{$t('services')}}</h2>
|
2019-11-11 10:04:49 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-12-16 08:24:11 +00:00
|
|
|
<th width="5%"></th>
|
|
|
|
<th class="number">{{$t('quantity')}}</th>
|
|
|
|
<th width="50%">{{$t('concept')}}</th>
|
|
|
|
<th class="number">{{$t('price')}}</th>
|
|
|
|
<th class="centered" width="5%"></th>
|
|
|
|
<th class="centered">{{$t('vat')}}</th>
|
|
|
|
<th class="number">{{$t('amount')}}</th>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="service in services">
|
2020-12-16 08:24:11 +00:00
|
|
|
<td width="5%"></td>
|
2019-11-11 10:04:49 +00:00
|
|
|
<td class="number">{{service.quantity}}</td>
|
2020-12-16 08:24:11 +00:00
|
|
|
<td width="50%">{{service.description}}</td>
|
|
|
|
<td class="number">{{service.price | currency('EUR', $i18n.locale)}}</td>
|
|
|
|
<td class="centered" width="5%"></td>
|
|
|
|
<td class="centered">{{service.taxDescription}}</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{service.price | currency('EUR', $i18n.locale)}}</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2020-12-16 08:24:11 +00:00
|
|
|
<td colspan="6" class="font bold">
|
|
|
|
<span class="pull-right">{{$t('subtotal')}}</span>
|
|
|
|
</td>
|
|
|
|
<td class="number">{{serviceTotal | currency('EUR', $i18n.locale)}}</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<!-- End of services block -->
|
2020-12-16 08:24:11 +00:00
|
|
|
</div>
|
|
|
|
<div class="columns">
|
|
|
|
<!-- Packages block -->
|
|
|
|
<div id="packagings" class="size100 no-page-break" v-if="packagings.length > 0">
|
|
|
|
<h2>{{$t('packagings')}}</h2>
|
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{$t('reference')}}</th>
|
|
|
|
<th class="number">{{$t('quantity')}}</th>
|
|
|
|
<th wihth="75%">{{$t('concept')}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="packaging in packagings">
|
|
|
|
<td>{{packaging.itemFk | zerofill('000000')}}</td>
|
|
|
|
<td class="number">{{packaging.quantity}}</td>
|
|
|
|
<td width="85%">{{packaging.name}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<!-- End of packages block -->
|
|
|
|
</div>
|
|
|
|
<div class="columns vn-mt-xl">
|
2019-11-11 10:04:49 +00:00
|
|
|
<!-- Taxes block -->
|
2020-03-03 12:22:36 +00:00
|
|
|
<div id="taxes" class="size50 pull-right no-page-break" v-if="taxes">
|
2020-12-16 08:24:11 +00:00
|
|
|
<!-- <h2>{{$t('taxBreakdown')}}</h2> -->
|
2019-11-11 10:04:49 +00:00
|
|
|
<table class="column-oriented">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-12-16 08:24:11 +00:00
|
|
|
<th colspan="4">{{$t('taxBreakdown')}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead class="light">
|
|
|
|
<tr>
|
|
|
|
<th width="45%">{{$t('type')}}</th>
|
|
|
|
<th width="25%" class="number">
|
2020-03-03 12:22:36 +00:00
|
|
|
{{$t('taxBase')}}
|
2020-12-16 08:24:11 +00:00
|
|
|
</th>
|
|
|
|
<th>{{$t('tax')}}</th>
|
|
|
|
<th class="number">{{$t('fee')}}</th>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="tax in taxes">
|
2020-03-03 12:22:36 +00:00
|
|
|
<td width="45%">{{tax.name}}</td>
|
2020-12-16 08:24:11 +00:00
|
|
|
<td width="25%" class="number">
|
2020-05-22 13:20:55 +00:00
|
|
|
{{tax.Base | currency('EUR', $i18n.locale)}}
|
2020-03-03 12:22:36 +00:00
|
|
|
</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
<td>{{tax.vatPercent | percentage}}</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{tax.tax | currency('EUR', $i18n.locale)}}</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr class="font bold">
|
2020-03-03 12:22:36 +00:00
|
|
|
<td width="45%">{{$t('subtotal')}}</td>
|
|
|
|
<td width="20%" class="number">
|
2020-05-22 13:20:55 +00:00
|
|
|
{{getTotalBase() | currency('EUR', $i18n.locale)}}
|
2020-03-03 12:22:36 +00:00
|
|
|
</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
<td></td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td class="number">{{getTotalTax()| currency('EUR', $i18n.locale)}}</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="font bold">
|
|
|
|
<td colspan="2">{{$t('total')}}</td>
|
2020-05-22 13:20:55 +00:00
|
|
|
<td colspan="2" class="number">{{getTotal() | currency('EUR', $i18n.locale)}}</td>
|
2019-11-11 10:04:49 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<!-- End of taxes block -->
|
2020-12-16 08:24:11 +00:00
|
|
|
|
|
|
|
<!-- Phytosanitary block -->
|
|
|
|
<div id="phytosanitary" class="size50 pull-left no-page-break">
|
|
|
|
<div class="panel">
|
|
|
|
<div class="body">
|
|
|
|
<div class="flag">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="size25">
|
|
|
|
<img v-bind:src="getReportSrc('europe.png')"/>
|
|
|
|
</div>
|
|
|
|
<div class="size75 flag-text">
|
2020-12-16 11:21:15 +00:00
|
|
|
<strong>{{$t('plantPassport')}}</strong><br/>
|
2020-12-16 08:24:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="phytosanitary-info">
|
|
|
|
<div>
|
|
|
|
<strong>A</strong>
|
|
|
|
<span>{{getBotanical()}}</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<strong>B</strong>
|
|
|
|
<span>ES17462130</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<strong>C</strong>
|
|
|
|
<span>{{ticket.id}}</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<strong>D</strong>
|
|
|
|
<span>ES</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-11 10:04:49 +00:00
|
|
|
</div>
|
2020-12-16 08:24:11 +00:00
|
|
|
<!-- End of phytosanitary block -->
|
|
|
|
</div>
|
|
|
|
<div class="columns">
|
2019-11-11 10:04:49 +00:00
|
|
|
<!-- Signature block -->
|
2020-03-03 12:22:36 +00:00
|
|
|
<div class="size50 pull-left no-page-break">
|
2019-11-11 10:04:49 +00:00
|
|
|
<div id="signature" class="panel" v-if="signature && signature.id">
|
|
|
|
<div class="header">{{$t('digitalSignature')}}</div>
|
|
|
|
<div class="body centered">
|
|
|
|
<img v-bind:src="dmsPath"/>
|
2020-01-17 12:22:32 +00:00
|
|
|
<div>{{signature.created | date('%d-%m-%Y')}}</div>
|
2019-11-11 10:04:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End of signature block -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Footer block -->
|
2020-07-02 14:07:26 +00:00
|
|
|
<report-footer id="pageFooter"
|
|
|
|
v-bind:company-code="ticket.companyCode"
|
|
|
|
v-bind:left-text="$t('ticket', [ticket.id])"
|
|
|
|
v-bind:center-text="client.socialName"
|
|
|
|
v-bind="$props">
|
|
|
|
</report-footer>
|
2019-11-11 10:04:49 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-02-05 06:58:05 +00:00
|
|
|
</body>
|
|
|
|
</html>
|