no message

This commit is contained in:
2025-12-05 13:46:03 +01:00
parent 51e038400b
commit 920bd27e9e
2 changed files with 10 additions and 1 deletions

View File

@@ -14,6 +14,11 @@
"name": "FooterText",
"caption": "Fusszeile"
},
{
"type": "ValidationTextBox",
"name": "PropertyText",
"caption": "Liegenschaft"
},
{
"type": "List",

View File

@@ -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 = "
<h1 style='text-align:center; margin-bottom:0;'>Elektro- und Nebenkostenabrechnung</h1>
<h3 style='text-align:center; margin-bottom:0;'>Betrifft Liegenschaft: " . $this->ReadPropertyString("PropertyText") . " </h1>
<hr>
<br>
<table width='100%' style='font-size:8px; margin-top:5px;'>
<tr>
<td width='60%'>
@@ -201,7 +205,7 @@ class Abrechnung extends IPSModule
. " — <strong>" . number_format($t['price'], 2) . " Rp/kWh</strong>"
. "</li>";
}
$html .= "</ul><br><hr>";
$html .= "</ul><br><hr><br>";
}
// ========================= Nebenkosten =========================