From 759a140e6141778c37184946909b2f37dd661122 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 17 Jan 2023 11:45:50 +0100 Subject: [PATCH] feat(print): create entry-update-comission template refs #4586 --- .../assets/css/import.js | 13 +++++ .../assets/css/style.css | 5 ++ .../entry-update-comission.html | 48 +++++++++++++++++++ .../entry-update-comission.js | 21 ++++++++ .../entry-update-comission/locale/es.yml | 4 ++ 5 files changed, 91 insertions(+) create mode 100644 print/templates/email/entry-update-comission/assets/css/import.js create mode 100644 print/templates/email/entry-update-comission/assets/css/style.css create mode 100644 print/templates/email/entry-update-comission/entry-update-comission.html create mode 100755 print/templates/email/entry-update-comission/entry-update-comission.js create mode 100644 print/templates/email/entry-update-comission/locale/es.yml diff --git a/print/templates/email/entry-update-comission/assets/css/import.js b/print/templates/email/entry-update-comission/assets/css/import.js new file mode 100644 index 000000000..7360587f7 --- /dev/null +++ b/print/templates/email/entry-update-comission/assets/css/import.js @@ -0,0 +1,13 @@ +const Stylesheet = require(`vn-print/core/stylesheet`); + +const path = require('path'); +const vnPrintPath = path.resolve('print'); + +module.exports = new Stylesheet([ + `${vnPrintPath}/common/css/spacing.css`, + `${vnPrintPath}/common/css/misc.css`, + `${vnPrintPath}/common/css/layout.css`, + `${vnPrintPath}/common/css/email.css`, + `${__dirname}/style.css`]) + .mergeStyles(); + diff --git a/print/templates/email/entry-update-comission/assets/css/style.css b/print/templates/email/entry-update-comission/assets/css/style.css new file mode 100644 index 000000000..5db85befa --- /dev/null +++ b/print/templates/email/entry-update-comission/assets/css/style.css @@ -0,0 +1,5 @@ +.external-link { + border: 2px dashed #8dba25; + border-radius: 3px; + text-align: center +} \ No newline at end of file diff --git a/print/templates/email/entry-update-comission/entry-update-comission.html b/print/templates/email/entry-update-comission/entry-update-comission.html new file mode 100644 index 000000000..003a1f09a --- /dev/null +++ b/print/templates/email/entry-update-comission/entry-update-comission.html @@ -0,0 +1,48 @@ + + + + + + {{ $t('subject') }} + + + + + + + + +
+ +
+
+
+ +
+
+ +
+
+ +
+
+

+ {{$t('dear')}} +

+

+
+
+ + +
+
+ +
+
+ +
+
+
+
+ + diff --git a/print/templates/email/entry-update-comission/entry-update-comission.js b/print/templates/email/entry-update-comission/entry-update-comission.js new file mode 100755 index 000000000..7e23c2b7c --- /dev/null +++ b/print/templates/email/entry-update-comission/entry-update-comission.js @@ -0,0 +1,21 @@ +const Component = require(`vn-print/core/component`); +const emailHeader = new Component('email-header'); +const emailFooter = new Component('email-footer'); + +module.exports = { + name: 'entry-update-comission', + components: { + 'email-header': emailHeader.build(), + 'email-footer': emailFooter.build() + }, + props: { + currencyName: { + type: [String], + required: true + }, + referenceCurrent: { + type: [String], + required: true + } + } +}; diff --git a/print/templates/email/entry-update-comission/locale/es.yml b/print/templates/email/entry-update-comission/locale/es.yml new file mode 100644 index 000000000..de58be3e7 --- /dev/null +++ b/print/templates/email/entry-update-comission/locale/es.yml @@ -0,0 +1,4 @@ +subject: ActualizaciĆ³n tipo de cambio en entradas +title: ActualizaciĆ³n tipo de cambio en entradas +dear: Hola, +body: 'El tipo de cambio para las ENTRADAS/COMPRAS en {0} se ha actualizado a partir de hoy en: {1}' \ No newline at end of file