summaryrefslogtreecommitdiff
path: root/views/mods/mod_rechnungen/js
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2024-11-08 11:56:56 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2024-11-08 11:56:56 +0000
commit479bd8b375aa031f2dc0a3750b1dd6c938ccfb6a (patch)
tree963d8d977d7d09660cf3acf7b79b34dd6d1a6ac7 /views/mods/mod_rechnungen/js
parent8846cb960467ba21491cfbaa32e78e4c8d3f1af7 (diff)
- eInvoice
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8453 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_rechnungen/js')
-rw-r--r--views/mods/mod_rechnungen/js/e_invoice_app.module.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/mods/mod_rechnungen/js/e_invoice_app.module.js b/views/mods/mod_rechnungen/js/e_invoice_app.module.js
new file mode 100644
index 0000000..a34bb75
--- /dev/null
+++ b/views/mods/mod_rechnungen/js/e_invoice_app.module.js
@@ -0,0 +1,25 @@
+import { createApp } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js';
+
+export async function initEInvoiceApp(element, data) {
+
+ const template = await fetch(data.template_url).then(response => response.text());
+
+ const App = {
+ data() {
+
+ return {
+ data: data,
+ open: false
+ }
+
+ },
+ methods: {
+ intVal: function(value) { console.log(value); return parseInt(value); },
+ trans: function(strDefault) { return strDefault; }
+ },
+ template: template
+ };
+
+ createApp(App).mount(element);
+
+} \ No newline at end of file