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: parserOptions:
ecmaVersion: 2018 ecmaVersion: 2018
sourceType: "module" sourceType: "module"
plugins: plugins:
- jasmine - jasmine
- html
env: env:
jasmine: true jasmine: true
rules: 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.formatOnSave": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": ["source.fixAll.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", "del": "^2.2.2",
"eslint": "^7.11.0", "eslint": "^7.11.0",
"eslint-config-google": "^0.11.0", "eslint-config-google": "^0.11.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-jasmine": "^2.10.1", "eslint-plugin-jasmine": "^2.10.1",
"eslint-plugin-prettier": "^4.2.1",
"fancy-log": "^1.3.2", "fancy-log": "^1.3.2",
"file-loader": "^1.1.11", "file-loader": "^1.1.11",
"gulp": "^4.0.2", "gulp": "^4.0.2",
@ -93,6 +93,7 @@
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"nodemon": "^2.0.16", "nodemon": "^2.0.16",
"plugin-error": "^1.0.1", "plugin-error": "^1.0.1",
"prettier": "^2.7.1",
"raw-loader": "^1.0.0", "raw-loader": "^1.0.0",
"regenerator-runtime": "^0.13.7", "regenerator-runtime": "^0.13.7",
"sass-loader": "^7.3.1", "sass-loader": "^7.3.1",

View File

@ -1,14 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html v-bind:lang="$i18n.locale"> <html v-bind:lang="$i18n.locale">
<body> <body>
<table class="grid"> <table class="grid">
<tbody> <tbody>
<tr> <tr>
<td> <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> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</body> </body>
</html> </html>

View File

@ -1,3 +1,11 @@
const reportHeader = new Component('report-header');
const reportFooter = new Component('report-footer');
module.exports = { module.exports = {
name: 'report-body', 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 Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body'); const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment'); const attachment = new Component('attachment');
module.exports = { module.exports = {
@ -16,8 +14,6 @@ module.exports = {
}, },
components: { components: {
'email-body': emailBody.build(), 'email-body': emailBody.build(),
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build() 'attachment': attachment.build()
}, },
data() { data() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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