Updated templates
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-11-10 10:38:54 +01:00
parent 83798dfadb
commit 133897c29f
48 changed files with 45455 additions and 499 deletions

View File

@ -1,10 +1,9 @@
extends: [eslint:recommended, google, plugin:jasmine/recommended]
extends: [eslint:recommended, google, plugin:jasmine/recommended, 'prettier',]
parserOptions:
ecmaVersion: 2018
sourceType: "module"
plugins:
- jasmine
- html
env:
jasmine: true
rules:

7
.prettierrc.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
singleQuote: true,
printWidth: 120,
tabWidth: 4,
semi: true,
endOfLine: 'auto',
};

View File

@ -7,5 +7,11 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"eslint.validate": ["javascript", "html"]
"eslint.validate": [
"javascript",
"json"
],
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

45110
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -63,8 +63,8 @@
"del": "^2.2.2",
"eslint": "^7.11.0",
"eslint-config-google": "^0.11.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-jasmine": "^2.10.1",
"eslint-plugin-prettier": "^4.2.1",
"fancy-log": "^1.3.2",
"file-loader": "^1.1.11",
"gulp": "^4.0.2",
@ -93,6 +93,7 @@
"node-sass": "^4.14.1",
"nodemon": "^2.0.16",
"plugin-error": "^1.0.1",
"prettier": "^2.7.1",
"raw-loader": "^1.0.0",
"regenerator-runtime": "^0.13.7",
"sass-loader": "^7.3.1",

View File

@ -1,14 +1,22 @@
<!DOCTYPE html>
<html v-bind:lang="$i18n.locale">
<body>
<table class="grid">
<tbody>
<tr>
<td>
<slot/>
<slot name="header">
<report-header v-bind="$props"></report-header>
</slot>
<slot></slot>
<slot name="footer">
<report-footer id="pageFooter" v-bind="$props"></report-footer>
</slot>
</td>
</tr>
</tbody>
</table>
</body>
</html>

View File

@ -1,3 +1,11 @@
const reportHeader = new Component('report-header');
const reportFooter = new Component('report-footer');
module.exports = {
name: 'report-body',
components: {
'report-header': reportHeader.build(),
'report-footer': reportFooter.build()
},
};

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
@ -16,8 +14,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
data() {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'buyer-week-waste',
@ -24,9 +22,7 @@ module.exports = {
}
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
'email-body': emailBody.build()
},
props: {}
};

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'campaign-metrics',
@ -18,8 +16,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
id: {

View File

@ -1,14 +1,10 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'claim-pickup-order',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
async serverPrefetch() {
this.ticket = await this.fetchTicket(this.id);

View File

@ -1,15 +1,11 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
name: 'client-debt-statement',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
data() {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'client-welcome',
@ -15,8 +13,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
id: {

View File

@ -1,15 +1,11 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
name: 'credit-request',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
data() {

View File

@ -1,14 +1,10 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'delivery-note-link',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
id: {

View File

@ -1,14 +1,10 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'delivery-note',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
id: {

View File

@ -1,14 +1,10 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'driver-route',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
id: {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
@ -19,8 +17,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
props: {

View File

@ -1,8 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'invoice',
async serverPrefetch() {
@ -15,8 +12,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
reference: {

View File

@ -1,13 +1,8 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'invoiceIn',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
}
};

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
@ -30,8 +28,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
props: {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
@ -30,8 +28,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
props: {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'osticket-report',
@ -63,8 +61,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {}
};

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'payment-update',
@ -23,8 +21,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
props: {
id: {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
const attachments = require('./attachments.json');
@ -20,8 +18,6 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
props: {

View File

@ -1,8 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
const attachments = require('./attachments.json');
module.exports = {
@ -12,9 +9,7 @@ module.exports = {
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
'attachment': attachments.build()
},
props: {
id: {

View File

@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
module.exports = {
name: 'supplier-campaign-metrics',
@ -17,9 +15,7 @@ module.exports = {
}
},
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
'email-body': emailBody.build()
},
props: {
id: {

View File

@ -1,27 +1,31 @@
<report-body>
<report-header v-bind="$props">
</report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="columns">
<div class="size50">
<p style="text-align: right;">{{$t('Place')}} {{currentDate()}}</p>
<h3 style="text-align: center; margin-top: 8%;">{{$t('Compensation') | uppercase}}</h3>
<p style="margin-top: 8%;">{{$t('In one hand')}}:</p>
<p style="text-align: justify;">{{company.name}} {{$t('CIF')}} {{company.nif}} {{$t('Home')}} {{company.street}}, {{company.city}}.</p>
<p style="margin-top: 5%;">{{$t('In other hand')}}:</p>
<p style="text-align: justify;">{{$t('Sr')}} {{client.name}} {{$t('NIF')}} {{client.fi}} {{$t('Home')}} {{client.street}}, {{client.city}}.</p>
<h4 style="text-align: center;margin-top: 10%;">{{$t('Agree') | uppercase}}</h4>
<p style="margin-top: 8%;text-align: justify;">{{$t('Date')}} {{client.payed | date('%d-%m-%Y')}} {{$t('Compensate')}} {{client.amountPaid}} € {{$t('From client')}} {{client.name}} {{$t('To client')}} {{company.name}}.</p>
<p style="margin-top: 8%;">{{$t('Reception')}} <span style="color:blue">administracion@verdnatura.es</span></p>
<div style="margin-top: 8%;"><small >{{$t('Greetings')}}</small></div>
<p style="text-align: right">{{$t('Place')}} {{currentDate()}}</p>
<h3 style="text-align: center; margin-top: 8%">{{$t('Compensation') | uppercase}}</h3>
<p style="margin-top: 8%">{{$t('In one hand')}}:</p>
<p style="text-align: justify">
{{company.name}} {{$t('CIF')}} {{company.nif}} {{$t('Home')}} {{company.street}},
{{company.city}}.
</p>
<p style="margin-top: 5%">{{$t('In other hand')}}:</p>
<p style="text-align: justify">
{{$t('Sr')}} {{client.name}} {{$t('NIF')}} {{client.fi}} {{$t('Home')}} {{client.street}},
{{client.city}}.
</p>
<h4 style="text-align: center; margin-top: 10%">{{$t('Agree') | uppercase}}</h4>
<p style="margin-top: 8%; text-align: justify">
{{$t('Date')}} {{client.payed | date('%d-%m-%Y')}} {{$t('Compensate')}} {{client.amountPaid}} €
{{$t('From client')}} {{client.name}} {{$t('Toclient')}} {{company.name}}.
</p>
<p style="margin-top: 8%">
{{$t('Reception')}} <span style="color: blue">administracion@verdnatura.es</span>
</p>
<div style="margin-top: 8%"><small>{{$t('Greetings')}}</small></div>
</div>
</div>
</div>
</div>
<report-footer id="pageFooter"
v-bind="$props">
</report-footer>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -29,15 +28,9 @@
<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>{{client.street}}</div>
<div>{{client.postcode}}, {{client.city}} ({{client.province}})</div>
<div>{{client.country}}</div>
</div>
</div>
</div>
@ -58,24 +51,22 @@
</tr>
<tr class="description font light-gray">
<td colspan="7">
<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>
<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>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<report-footer id="pageFooter"
v-bind:left-text="$t('client', [client.id])"
v-bind:center-text="client.socialName"
v-bind="$props">
</report-footer>
</report-body>
<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>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -31,15 +30,9 @@
<div class="header">{{$t('clientData')}}</div>
<div class="body">
<h3 class="uppercase">{{client.nickname}}</h3>
<div>
{{client.street}}
</div>
<div>
{{client.postalCode}}, {{client.city}} ({{client.province}})
</div>
<div>
{{client.country}}
</div>
<div>{{client.street}}</div>
<div>{{client.postalCode}}, {{client.city}} ({{client.province}})</div>
<div>{{client.country}}</div>
</div>
</div>
</div>
@ -72,9 +65,13 @@
</div>
</div>
</div>
<report-footer id="pageFooter"
v-bind:left-text="$t('claim', [id])"
v-bind:center-text="client.name"
v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:left-text="$t('claim', [id])"
v-bind:center-text="client.name"
v-bind="$props"
>
</report-footer>
</template>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -25,20 +24,14 @@
<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>{{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>
@ -63,7 +56,7 @@
<td></td>
<td></td>
<td class="number">
<strong class="pull-left">Total</strong>
<strong class="pull-left">Total</strong>
{{getTotalDebtOut() | currency('EUR', $i18n.locale)}}
</td>
<td class="number">{{getTotalDebtIn() | currency('EUR', $i18n.locale)}}</td>
@ -73,9 +66,13 @@
</table>
</div>
</div>
<report-footer id="pageFooter"
v-bind:left-text="$t('client', [client.id])"
v-bind:center-text="client.socialName"
v-bind="$props">
</report-footer>
</report-body>
<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>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row info-panel">
<div class="grid-block">
<h1 class="title centered uppercase">{{$t('fields.title')}}</h1>
@ -138,7 +137,7 @@
<div class="grid-row">
<div class="grid-block">
<div>
<table style="border-top: 1px solid #DDD" class="info-panel">
<table style="border-top: 1px solid #ddd" class="info-panel">
<tbody>
<tr class="row-oriented" style="width: 100%">
<td>{{$t('fields.personFilling')}}:</td>
@ -159,9 +158,7 @@
</div>
</div>
</div>
<report-footer
id="pageFooter"
v-bind:left-text="dated"
v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer id="pageFooter" v-bind:left-text="dated" v-bind="$props"> </report-footer>
</template>
</report-body>

View File

@ -1,8 +1,7 @@
<report-body>
<report-header
v-bind="$props"
v-bind:company-code="ticket.companyCode">
</report-header>
<report-body v-bind="$props">
<template v-slot:header>
<report-header v-bind="$props" v-bind:company-code="ticket.companyCode"> </report-header>
</template>
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -36,27 +35,17 @@
<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>{{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>{{client.socialName}}</div>
<div>{{client.street}}</div>
<div>{{client.fi}}</div>
</div>
</div>
</div>
@ -80,25 +69,18 @@
<td width="5%">{{sale.itemFk | zerofill('000000')}}</td>
<td class="number">{{sale.quantity}}</td>
<td width="50%">{{sale.concept}}</td>
<td class="number" v-if="showPrices">{{sale.price | currency('EUR',
$i18n.locale)}}</td>
<td class="centered" width="5%" v-if="showPrices">{{(sale.discount / 100) |
percentage}}</td>
<td class="number" v-if="showPrices">{{sale.price | currency('EUR', $i18n.locale)}}</td>
<td class="centered" width="5%" v-if="showPrices">{{(sale.discount / 100) | percentage}}</td>
<td class="centered" v-if="showPrices">{{sale.vatType}}</td>
<td class="number" v-if="showPrices">{{sale.price * sale.quantity * (1 -
sale.discount / 100) | currency('EUR', $i18n.locale)}}</td>
<td class="number" v-if="showPrices">
{{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR', $i18n.locale)}}
</td>
</tr>
<tr class="description font light-gray">
<td colspan="7">
<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>
<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>
</td>
</tr>
</tbody>
@ -132,12 +114,10 @@
<td width="5%"></td>
<td class="number">{{service.quantity}}</td>
<td width="50%">{{service.description}}</td>
<td class="number">{{service.price | currency('EUR', $i18n.locale)}}
</td>
<td class="number">{{service.price | currency('EUR', $i18n.locale)}}</td>
<td class="centered" width="5%"></td>
<td class="centered">{{service.taxDescription}}</td>
<td class="number">{{service.price | currency('EUR', $i18n.locale)}}
</td>
<td class="number">{{service.price | currency('EUR', $i18n.locale)}}</td>
</tr>
</tbody>
<tfoot>
@ -192,9 +172,7 @@
<tbody>
<tr v-for="tax in taxes">
<td width="45%">{{tax.name}}</td>
<td width="25%" class="number">
{{tax.Base | currency('EUR', $i18n.locale)}}
</td>
<td width="25%" class="number">{{tax.Base | currency('EUR', $i18n.locale)}}</td>
<td>{{tax.vatPercent | percentage}}</td>
<td class="number">{{tax.tax | currency('EUR', $i18n.locale)}}</td>
</tr>
@ -202,16 +180,13 @@
<tfoot>
<tr class="font bold">
<td width="45%">{{$t('subtotal')}}</td>
<td width="20%" class="number">
{{getTotalBase() | currency('EUR', $i18n.locale)}}
</td>
<td width="20%" class="number">{{getTotalBase() | currency('EUR', $i18n.locale)}}</td>
<td></td>
<td class="number">{{getTotalTax()| currency('EUR', $i18n.locale)}}</td>
</tr>
<tr class="font bold">
<td colspan="2">{{$t('total')}}</td>
<td colspan="2" class="number">{{getTotal() | currency('EUR',
$i18n.locale)}}</td>
<td colspan="2" class="number">{{getTotal() | currency('EUR', $i18n.locale)}}</td>
</tr>
</tfoot>
</table>
@ -225,9 +200,7 @@
<div class="size25">
<img v-bind:src="getReportSrc('europe.png')" />
</div>
<div class="size75 flag-text">
<strong>{{$t('plantPassport')}}</strong><br />
</div>
<div class="size75 flag-text"><strong>{{$t('plantPassport')}}</strong><br /></div>
</div>
</div>
<div class="phytosanitary-info">
@ -271,11 +244,14 @@
</div>
</div>
</div>
<report-footer
id="pageFooter"
v-bind:company-code="ticket.companyCode"
v-bind:left-text="footerType"
v-bind:center-text="client.socialName"
v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:company-code="ticket.companyCode"
v-bind:left-text="footerType"
v-bind:center-text="client.socialName"
v-bind="$props"
>
</report-footer>
</template>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row route-block" v-for="route in routes">
<div class="grid-block">
<h1 class="title uppercase">{{$t('route')}} {{route.id}}</h1>
@ -91,11 +90,8 @@
<td class="number">{{ticket.id}}</td>
<td width="50%">{{ticket.clientFk}} {{ticket.addressName}}</td>
<td v-if="ticket.addressFk" class="number">
{{ticket.addressFk.toString().substr(0,
ticket.addressFk.toString().length - 3)}}
<span class="black-container">
{{ticket.addressFk.toString().substr(-3, 3)}}
</span>
{{ticket.addressFk.toString().substr(0, ticket.addressFk.toString().length - 3)}}
<span class="black-container"> {{ticket.addressFk.toString().substr(-3, 3)}} </span>
</td>
<td class="number">{{ticket.packages}}</td>
<td>{{ticket.itemPackingTypes}}</td>
@ -139,8 +135,7 @@
</div>
</div>
</div>
<report-footer id="pageFooter"
v-bind:left-text="$t('routeId', [id])"
v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer id="pageFooter" v-bind:left-text="$t('routeId', [id])" v-bind="$props"> </report-footer>
</template>
</report-body>

View File

@ -1,6 +1,7 @@
<report-body>
<report-header v-bind="$props" v-bind:company-code="entry.companyCode">
</report-header>
<report-body v-bind="$props">
<template v-slot:header>
<report-header v-bind="$props" v-bind:company-code="entry.companyCode"></report-header>
</template>
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -30,15 +31,9 @@
<div class="header">{{$t('supplierData')}}</div>
<div class="body">
<h3 class="uppercase">{{supplier.name}}</h3>
<div>
{{supplier.street}}
</div>
<div>
{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})
</div>
<div>
{{supplier.nif}}
</div>
<div>{{supplier.street}}</div>
<div>{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})</div>
<div>{{supplier.nif}}</div>
</div>
</div>
</div>
@ -61,20 +56,15 @@
<td width="50%">{{buy.itemName}}</td>
<td width="10%" class="number">{{buy.quantity | number($i18n.locale)}}</td>
<td width="15%" class="number">{{buy.buyingValue | currency('EUR', $i18n.locale)}}</td>
<td width="15%" class="number">{{buy.buyingValue * buy.quantity | currency('EUR',
$i18n.locale)}}</td>
<td width="15%" class="number">
{{buy.buyingValue * buy.quantity | currency('EUR', $i18n.locale)}}
</td>
</tr>
<tr class="description font light-gray">
<td colspan="7">
<span v-if="buy.value5">
<strong>{{buy.tag5}}</strong> {{buy.value5}}
</span>
<span v-if="buy.value6">
<strong>{{buy.tag6}}</strong> {{buy.value6}}
</span>
<span v-if="buy.value7">
<strong>{{buy.tag7}}</strong> {{buy.value7}}
</span>
<span v-if="buy.value5"> <strong>{{buy.tag5}}</strong> {{buy.value5}} </span>
<span v-if="buy.value6"> <strong>{{buy.tag6}}</strong> {{buy.value6}} </span>
<span v-if="buy.value7"> <strong>{{buy.tag7}}</strong> {{buy.value7}} </span>
</td>
</tr>
</tbody>
@ -92,16 +82,21 @@
<div id="notes" class="panel no-page-break" v-if="entry.notes">
<div class="body">
<h3>{{$t('notes')}}</h3>
<div>
{{entry.notes}}
</div>
<div>{{entry.notes}}</div>
</div>
</div>
</div>
</div>
</div>
</div>
<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>
</report-body>
<template v-slot:footer>
<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>
</template>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<h1 class="title centered uppercase">{{$t('title')}}</h1>
@ -30,6 +29,7 @@
</div>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="$t('invoice', [invoice.ref])" v-bind="$props">
</report-footer>
<template v-slot:footer>
<report-footer id="pageFooter" v-bind:left-text="$t('invoice', [invoice.ref])" v-bind="$props"></report-footer>
</template>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<h1 class="title uppercase">{{$t('title')}}</h1>
@ -62,6 +61,7 @@
</table>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="dated" v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer id="pageFooter" v-bind:left-text="dated" v-bind="$props"></report-footer>
</template>
</report-body>

View File

@ -1,30 +1,34 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<p v-html="$t('description', {
<p
v-html="$t('description', {
socialName: client.socialName,
name: client.name,
address: client.street,
country: client.country,
fiscalID: client.fi
})"></p>
<p v-html="$t('declaration', {
})"
></p>
<p
v-html="$t('declaration', {
socialName: client.socialName
})"></p>
<p v-for="(declaration, $index) in $t('declarations')" v-html="$t('declarations[' + $index + ']', {
})"
></p>
<p
v-for="(declaration, $index) in $t('declarations')"
v-html="$t('declarations[' + $index + ']', {
companyName: company.name,
companyCity: company.city,
socialName: client.socialName,
destinationCountry: client.country
})">
</p>
})"
></p>
<div class="columns">
<div class="size50 signature">
<p class="centered">{{client.name}}</p>
<div class="dummy-signature centered"></div>
<p>
<table>
<tbody>
<tr>
@ -41,19 +45,17 @@
</tr>
</tbody>
</table>
</p>
</div>
<div class="size50 signature centered">
<p>{{ company.name }}</p>
<img v-bind:src="getReportSrc('signature.png')">
<p>
<img v-bind:src="getReportSrc('signature.png')" />
<div>{{company.manager}}</div>
<div>{{$t('manager')}}</div>
</p>
</div>
</div>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="$t('client', [client.id])" v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer id="pageFooter" v-bind:left-text="$t('client', [client.id])" v-bind="$props"></report-footer>
</template>
</report-body>

View File

@ -1,6 +1,7 @@
<report-body>
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode">
</report-header>
<report-body v-bind="$props">
<template v-slot:header>
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode"></report-header>
</template>
<div class="grid-row">
<div class="grid-block">
<div class="columns vn-mb-lg">
@ -30,15 +31,9 @@
<div class="header">{{$t('invoiceData')}}</div>
<div class="body">
<h3 class="uppercase">{{client.socialName}}</h3>
<div>
{{client.postalAddress}}
</div>
<div>
{{client.postcodeCity}}
</div>
<div>
{{$t('fiscalId')}}: {{client.fi}}
</div>
<div>{{client.postalAddress}}</div>
<div>{{client.postcodeCity}}</div>
<div>{{$t('fiscalId')}}: {{client.fi}}</div>
</div>
</div>
</div>
@ -47,19 +42,14 @@
<div id="incoterms" class="panel">
<div class="header">{{$t('incotermsTitle')}}</div>
<div class="body">
<table class="row-oriented">
<tbody>
<tr>
<th>
{{$t('incoterms')}}
</th>
<th>{{$t('incoterms')}}</th>
<td>{{incoterms.incotermsFk}} - {{incoterms.incotermsName}}</td>
</tr>
<tr>
<th>
{{$t('productDescription')}}
</th>
<th>{{$t('productDescription')}}</th>
<td>{{incoterms.intrastat}}</td>
</tr>
<tr>
@ -81,7 +71,6 @@
</tbody>
</table>
<p>
<div class="font bold">
<span>{{$t('customsInfo')}}</span>
<span>{{incoterms.customsAgentName}}</span>
@ -90,15 +79,10 @@
<span>(</span>
<span>{{incoterms.customsAgentNif}}</span>
<span>{{incoterms.customsAgentStreet}}</span>
<span v-if="incoterms.customsAgentPhone">
&#9742; {{incoterms.customsAgentPhone}}
</span>
<span v-if="incoterms.customsAgentEmail">
&#9993; {{incoterms.customsAgentEmail}}
</span>
<span v-if="incoterms.customsAgentPhone"> &#9742; {{incoterms.customsAgentPhone}} </span>
<span v-if="incoterms.customsAgentEmail"> &#9993; {{incoterms.customsAgentEmail}} </span>
<span>)</span>
</div>
</p>
<p>
<strong>{{$t('productDisclaimer')}}</strong>
</p>
@ -106,4 +90,5 @@
</div>
</div>
</div>
</report-body>
<template v-slot:footer>&nbsp;</template>
</report-body>

View File

@ -1,8 +1,8 @@
<report-body>
<invoice-incoterms v-if="hasIncoterms" v-bind="$props">
</invoice-incoterms>
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode">
</report-header>
<report-body v-bind="$props">
<invoice-incoterms v-if="hasIncoterms" v-bind="$props"> </invoice-incoterms>
<template v-slot:header>
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode"></report-header>
</template>
<div class="grid-row">
<div class="grid-block">
<div class="columns vn-mb-lg">
@ -32,15 +32,9 @@
<div class="header">{{$t('invoiceData')}}</div>
<div class="body">
<h3 class="uppercase">{{client.socialName}}</h3>
<div>
{{client.postalAddress}}
</div>
<div>
{{client.postcodeCity}}
</div>
<div>
{{$t('fiscalId')}}: {{client.fi}}
</div>
<div>{{client.postalAddress}}</div>
<div>{{client.postcodeCity}}</div>
<div>{{$t('fiscalId')}}: {{client.fi}}</div>
</div>
</div>
</div>
@ -69,7 +63,7 @@
<div class="vn-mt-lg" v-for="ticket in tickets">
<div class="table-title clearfix">
<div class="pull-left">
<h2>{{$t('deliveryNote')}}</strong>
<h2>{{$t('deliveryNote')}}</h2>
</div>
<div class="pull-left vn-mr-md">
<div class="field rectangle">
@ -112,15 +106,9 @@
</tr>
<tr class="description font light-gray">
<td colspan="7">
<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>
<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>
</td>
</tr>
</tbody>
@ -146,9 +134,7 @@
<thead class="light">
<tr>
<th width="45%">{{$t('type')}}</th>
<th width="25%" class="number">
{{$t('taxBase')}}
</th>
<th width="25%" class="number">{{$t('taxBase')}}</th>
<th>{{$t('tax')}}</th>
<th class="number">{{$t('fee')}}</th>
</tr>
@ -156,9 +142,7 @@
<tbody>
<tr v-for="tax in taxes">
<td width="45%">{{tax.name}}</td>
<td width="25%" class="number">
{{tax.base | currency('EUR', $i18n.locale)}}
</td>
<td width="25%" class="number">{{tax.base | currency('EUR', $i18n.locale)}}</td>
<td>{{tax.vatPercent | percentage}}</td>
<td class="number">{{tax.vat | currency('EUR', $i18n.locale)}}</td>
</tr>
@ -194,9 +178,7 @@
<div class="size25">
<img v-bind:src="getReportSrc('europe.png')" />
</div>
<div class="size75 flag-text">
<strong>{{$t('plantPassport')}}</strong><br />
</div>
<div class="size75 flag-text"><strong>{{$t('plantPassport')}}</strong><br /></div>
</div>
</div>
<div class="phytosanitary-info">
@ -271,7 +253,14 @@
</div>
</div>
</div>
<report-footer id="pageFooter" v-bind:company-code="invoice.companyCode"
v-bind:left-text="$t('invoiceRef', [invoice.ref])" v-bind:center-text="client.socialName" v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:company-code="invoice.companyCode"
v-bind:left-text="$t('invoiceRef', [invoice.ref])"
v-bind:center-text="client.socialName"
v-bind="$props"
>
</report-footer>
</template>
</report-body>

View File

@ -1,6 +1,7 @@
<report-body>
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode">
</report-header>
<report-body v-bind="$props">
<template v-slot:header>
<report-header v-bind="$props" v-bind:company-code="invoice.companyCode"></report-header>
</template>
<div class="grid-row">
<div class="grid-block">
<div class="columns vn-mb-lg">
@ -30,18 +31,10 @@
<div class="header">{{$t('invoiceData')}}</div>
<div class="body">
<h3 class="uppercase">{{invoice.name}}</h3>
<div>
{{invoice.postalAddress}}
</div>
<div>
{{invoice.postcodeCity}}
</div>
<div v-if="invoice.nif">
{{$t('fiscalId')}}: {{invoice.nif}}
</div>
<div v-if="invoice.phone">
{{$t('phone')}}: {{invoice.phone}}
</div>
<div>{{invoice.postalAddress}}</div>
<div>{{invoice.postcodeCity}}</div>
<div v-if="invoice.nif">{{$t('fiscalId')}}: {{invoice.nif}}</div>
<div v-if="invoice.phone">{{$t('phone')}}: {{invoice.phone}}</div>
</div>
</div>
</div>
@ -50,7 +43,7 @@
<div class="vn-mt-lg" v-for="entry in entries">
<div class="table-title clearfix">
<div class="pull-left">
<h2>{{$t('invoiceId')}}</strong>
<h2>{{$t('invoiceId')}}</h2>
</div>
<div class="pull-left vn-mr-md">
<div class="field rectangle">
@ -94,15 +87,9 @@
</tr>
<tr class="description font light-gray">
<td colspan="4">
<span v-if="buy.value5">
<strong>{{buy.tag5}}</strong> {{buy.value5}}
</span>
<span v-if="buy.value6">
<strong>{{buy.tag6}}</strong> {{buy.value6}}
</span>
<span v-if="buy.value7">
<strong>{{buy.tag7}}</strong> {{buy.value7}}
</span>
<span v-if="buy.value5"> <strong>{{buy.tag5}}</strong> {{buy.value5}} </span>
<span v-if="buy.value6"> <strong>{{buy.tag6}}</strong> {{buy.value6}} </span>
<span v-if="buy.value7"> <strong>{{buy.tag7}}</strong> {{buy.value7}} </span>
</td>
</tr>
</tbody>
@ -127,9 +114,7 @@
<thead class="light">
<tr>
<th width="45%">{{$t('type')}}</th>
<th width="25%" class="number">
{{$t('taxBase')}}
</th>
<th width="25%" class="number">{{$t('taxBase')}}</th>
<th>{{$t('tax')}}</th>
<th class="number">{{$t('fee')}}</th>
</tr>
@ -137,9 +122,7 @@
<tbody>
<tr v-for="tax in taxes">
<td width="45%">{{tax.name}}</td>
<td width="25%" class="number">
{{tax.taxableBase | currency('EUR', $i18n.locale)}}
</td>
<td width="25%" class="number">{{tax.taxableBase | currency('EUR', $i18n.locale)}}</td>
<td>{{tax.rate | percentage}}</td>
<td class="number">{{tax.vat | currency('EUR', $i18n.locale)}}</td>
</tr>
@ -181,7 +164,14 @@
</div>
</div>
</div>
<report-footer id="pageFooter" v-bind:company-code="invoice.companyCode" v-bind:left-text="$t('invoiceId')"
v-bind:center-text="invoice.name" v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:company-code="invoice.companyCode"
v-bind:left-text="$t('invoiceId')"
v-bind:center-text="invoice.name"
v-bind="$props"
>
</report-footer>
</template>
</report-body>

View File

@ -1,4 +1,4 @@
<report-body>
<report-body v-bind="$props">
<div class="label">
<div class="barcode">
<h1>{{item.id}}</h1>
@ -20,4 +20,4 @@
</div>
</div>
</div>
</report-body>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -25,15 +24,9 @@
<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>{{client.street}}</div>
<div>{{client.postcode}}, {{client.city}} ({{client.province}})</div>
<div>{{client.country}}</div>
</div>
</div>
</div>
@ -73,7 +66,13 @@
</table>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="$t('client', [client.id])" v-bind:center-text="client.socialName"
v-bind="$props">
</report-footer>
</report-body>
<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>

View File

@ -1,29 +1,30 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="content">
<h1 class="title centered uppercase">{{$t('title')}}</h1>
<p class="centered">
Recibo de <strong class="uppercase">{{client.socialName}}</strong>,
la cantidad de <strong>{{receipt.amountPaid}} €</strong> en concepto de 'entrega a cuenta',
quedando pendiente en la cuenta del cliente
un saldo de <strong>{{receipt.amountUnpaid}} €</strong>.
Recibo de <strong class="uppercase">{{client.socialName}}</strong>, la cantidad de
<strong>{{receipt.amountPaid}} €</strong> en concepto de 'entrega a cuenta', quedando pendiente en
la cuenta del cliente un saldo de <strong>{{receipt.amountUnpaid}} €</strong>.
</p>
<div class="signature">
<img v-bind:src="getReportSrc('signature.png')">
<p class="centered">{{$t('payed', [
'Algemesí',
receipt.payed.getDate(),
$t('months')[receipt.payed.getMonth()],
receipt.payed.getFullYear()])
}}
<img v-bind:src="getReportSrc('signature.png')" />
<p class="centered">
{{$t('payed', [ 'Algemesí', receipt.payed.getDate(), $t('months')[receipt.payed.getMonth()],
receipt.payed.getFullYear()]) }}
</p>
</div>
</div>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="$t('client', [client.id])" v-bind:center-text="client.socialName"
v-bind="$props">
</report-footer>
</report-body>
<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>

View File

@ -1,18 +1,11 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row no-page-break page-break-after">
<div class="grid-block">
<div class="content">
<h1 class="title centered uppercase">{{$t('instructions.title')}}</h1>
<p class="centered">
1. {{$t('instructions.accountFields')}}
</p>
<p class="centered">
2. {{$t('instructions.signDocument')}}
</p>
<p class="centered">
{{$t('instructions.thanks')}}
</p>
<p class="centered">1. {{$t('instructions.accountFields')}}</p>
<p class="centered">2. {{$t('instructions.signDocument')}}</p>
<p class="centered">{{$t('instructions.thanks')}}</p>
</div>
</div>
</div>
@ -23,9 +16,7 @@
<h1 class="title centered">{{$t('title')}}</h1>
<div class="panel supplierPanel" style="width: 98%">
<div class="body">
<div class="vertical-text">
{{$t('supplier.toCompleteBySupplier')}}
</div>
<div class="vertical-text">{{$t('supplier.toCompleteBySupplier')}}</div>
<table class="row-oriented">
<tbody>
@ -68,9 +59,7 @@
<div class="panel" style="width: 98%">
<div class="body">
<div class="vertical-text">
{{$t('client.toCompleteByClient')}}
</div>
<div class="vertical-text">{{$t('client.toCompleteByClient')}}</div>
<table class="row-oriented">
<tbody>
@ -82,9 +71,7 @@
<th>{{client.socialName}}</th>
</tr>
<tr>
<td>
{{$t('client.fiscalId')}}
</td>
<td>{{$t('client.fiscalId')}}</td>
<th>{{client.fi}}</th>
</tr>
<tr>
@ -129,11 +116,9 @@
<tr>
<td class="description" colspan="2">
<div class="line">
<span>{{$t('client.accountNumberFormat', [
$t(`${client.country}`),
client.ibanLength,
client.countryCode
])}}
<span
>{{$t('client.accountNumberFormat', [ $t(`${client.country}`),
client.ibanLength, client.countryCode ])}}
</span>
</div>
</td>
@ -177,7 +162,13 @@
<p class="font small">{{$t('sendOrder')}}</p>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="$t('order', [supplier.mandateCode])"
v-bind:center-text="client.socialName" v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:left-text="$t('order', [supplier.mandateCode])"
v-bind:center-text="client.socialName"
v-bind="$props"
>
</report-footer>
</template>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="columns">
@ -29,15 +28,9 @@
<div class="header">{{$t('supplierData')}}</div>
<div class="body">
<h3 class="uppercase">{{supplier.supplierName}}</h3>
<div>
{{supplier.street}}
</div>
<div>
{{supplier.postcode}}, {{supplier.city}} ({{supplier.province}})
</div>
<div>
{{supplier.country}}
</div>
<div>{{supplier.street}}</div>
<div>{{supplier.postcode}}, {{supplier.city}} ({{supplier.province}})</div>
<div>{{supplier.country}}</div>
</div>
</div>
</div>
@ -66,24 +59,23 @@
</tr>
<tr class="description font light-gray">
<td colspan="7">
<span v-if="buy.value5">
<strong>{{buy.tag5}}</strong> {{buy.value5}}
</span>
<span v-if="buy.value6">
<strong>{{buy.tag6}}</strong> {{buy.value6}}
</span>
<span v-if="buy.value7">
<strong>{{buy.tag7}}</strong> {{buy.value7}}
</span>
<span v-if="buy.value5"> <strong>{{buy.tag5}}</strong> {{buy.value5}} </span>
<span v-if="buy.value6"> <strong>{{buy.tag6}}</strong> {{buy.value6}} </span>
<span v-if="buy.value7"> <strong>{{buy.tag7}}</strong> {{buy.value7}} </span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<report-footer id="pageFooter" v-bind:left-text="$t('supplier', [supplier.id])"
v-bind:center-text="supplier.supplierName" v-bind="$props">
</report-footer>
</report-body>
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:left-text="$t('supplier', [supplier.id])"
v-bind:center-text="supplier.supplierName"
v-bind="$props"
>
</report-footer>
</template>
</report-body>

View File

@ -1,5 +1,4 @@
<report-body>
<report-header v-bind="$props"></report-header>
<report-body v-bind="$props">
<div class="grid-row">
<div class="grid-block">
<div class="content">
@ -23,4 +22,4 @@
</table>
</div>
</div>
</report-body>
</report-body>

View File

@ -1,5 +1,5 @@
<report-body>
<report-body v-bind="$props">
<div class="text">{{zone.agencyName}}</div>
<div class="text">{{zone.id}}</div>
<div class="text">{{zone.plateNumber}} {{zone.time | date('%H:%M')}}</div>
</report-body>
</report-body>