From 920bd27e9e4bb04e7baf70ac70e2543aec49e03d Mon Sep 17 00:00:00 2001 From: DanielHaefliger Date: Fri, 5 Dec 2025 13:46:03 +0100 Subject: [PATCH] no message --- Abrechnung/form.json | 5 +++++ Abrechnung/module.php | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Abrechnung/form.json b/Abrechnung/form.json index 68f389e..304fcb9 100644 --- a/Abrechnung/form.json +++ b/Abrechnung/form.json @@ -14,6 +14,11 @@ "name": "FooterText", "caption": "Fusszeile" }, + { + "type": "ValidationTextBox", + "name": "PropertyText", + "caption": "Liegenschaft" + }, { "type": "List", diff --git a/Abrechnung/module.php b/Abrechnung/module.php index 423a4bd..7e1a361 100644 --- a/Abrechnung/module.php +++ b/Abrechnung/module.php @@ -41,6 +41,7 @@ class Abrechnung extends IPSModule $this->RegisterPropertyString('WaterMeters', '[]'); $this->RegisterPropertyString('Tariffs', '[]'); $this->RegisterPropertyInteger('LogoMediaID', 0); + $this->RegisterPropertyString('PropertyText', 'Liegenschaft'); $this->RegisterPropertyString('FooterText', 'Belevo AG • 6122 Menznau • www.belevo.ch'); $this->RegisterVariableInteger('FromDate', 'Startdatum', '~UnixTimestamp', 1); @@ -149,7 +150,10 @@ class Abrechnung extends IPSModule // Kopfbereich $html = "

Elektro- und Nebenkostenabrechnung

+

Betrifft Liegenschaft: " . $this->ReadPropertyString("PropertyText") . "

+
+
@@ -201,7 +205,7 @@ class Abrechnung extends IPSModule . " — " . number_format($t['price'], 2) . " Rp/kWh" . ""; } - $html .= "

"; + $html .= "


"; } // ========================= Nebenkosten =========================