From 8690fc7264caade913e3f05d4915ac4346749af3 Mon Sep 17 00:00:00 2001
From: OpenXE <>
Date: Thu, 31 Oct 2024 21:43:05 +0100
Subject: [PATCH] xrechnung export xml
---
upgrade/data/db_schema.json | 39 +++++++++++++++++++++
www/pages/rechnung.php | 65 +++++++++++++++++++++++++++++++++++
www/themes/new/images/xml.svg | 1 +
3 files changed, 105 insertions(+)
create mode 100644 www/themes/new/images/xml.svg
diff --git a/upgrade/data/db_schema.json b/upgrade/data/db_schema.json
index 0b440a32..f5d12bb7 100644
--- a/upgrade/data/db_schema.json
+++ b/upgrade/data/db_schema.json
@@ -119053,6 +119053,45 @@
"Non_unique": ""
}
]
+ },
+ {
+ "name": "smarty_templates",
+ "collation": "utf8mb3_general_ci",
+ "type": "BASE TABLE",
+ "columns": [
+ {
+ "Field": "id",
+ "Type": "int(11)",
+ "Collation": null,
+ "Null": "NO",
+ "Key": "PRI",
+ "Default": null,
+ "Extra": "auto_increment",
+ "Privileges": "select,insert,update,references",
+ "Comment": ""
+ },
+ {
+ "Field": "template",
+ "Type": "text",
+ "Collation": "utf8mb3_general_ci",
+ "Null": "NO",
+ "Key": "",
+ "Default": null,
+ "Extra": "",
+ "Privileges": "select,insert,update,references",
+ "Comment": ""
+ }
+ ],
+ "keys": [
+ {
+ "Key_name": "PRIMARY",
+ "Index_type": "BTREE",
+ "columns": [
+ "id"
+ ],
+ "Non_unique": ""
+ }
+ ]
}
],
"views": [
diff --git a/www/pages/rechnung.php b/www/pages/rechnung.php
index 5656ada0..c55158f6 100644
--- a/www/pages/rechnung.php
+++ b/www/pages/rechnung.php
@@ -55,6 +55,8 @@ class Rechnung extends GenRechnung
$this->app->ActionHandler("freigabe","RechnungFreigabe");
$this->app->ActionHandler("abschicken","RechnungAbschicken");
$this->app->ActionHandler("pdf","RechnungPDF");
+ $this->app->ActionHandler("xml","RechnungSmarty");
+ $this->app->ActionHandler("json","RechnungJSON");
$this->app->ActionHandler("alternativpdf","RechnungAlternativPDF");
$this->app->ActionHandler("inlinepdf","RechnungInlinePDF");
$this->app->ActionHandler("lastschrift","RechnungLastschrift");
@@ -547,6 +549,7 @@ class Rechnung extends GenRechnung
$menu .= "
+