diff --git a/Abrechnung/module.php b/Abrechnung/module.php index 4a2705b..40aee87 100644 --- a/Abrechnung/module.php +++ b/Abrechnung/module.php @@ -70,6 +70,8 @@ class Abrechnung extends IPSModule $this->RegisterVariableFloat('VisuTariffPrice', 'Tarif Rp/Einheit', 'BELEVO.TariffPrice', 14); $this->RegisterVariableString('VisuTariffStatus', 'Tarif Status', '', 15); $this->RegisterVariableString('VisuTariffPayload', 'Tarif Payload', '', 16); + $this->RegisterVariableString('VisuUserOverview', 'Benutzer bearbeiten', '~HTMLBox', 20); + $this->RegisterVariableString('VisuUserStatus', 'Benutzer Status', '', 21); $this->EnableAction('FromDate'); $this->EnableAction('ToDate'); $this->EnableAction('VisuTariffType'); @@ -84,6 +86,7 @@ class Abrechnung extends IPSModule "InstanceID . ", 'StartBilling', ''); ?>" ); $this->EnsureVisuTariffObjects(); + $this->EnsureVisuUserObjects(); $this->RegisterMediaDocument('InvoicePDF', 'Letzte Rechnung', 'pdf'); } @@ -93,8 +96,10 @@ class Abrechnung extends IPSModule $this->RegisterTariffVariableProfiles(); $this->RegisterTariffWebhook(); $this->EnsureVisuTariffObjects(); + $this->EnsureVisuUserObjects(); $this->InitializeVisuTariffDefaults(); $this->UpdateTariffOverview(); + $this->UpdateUserOverview(); } private function RegisterTariffWebhook() @@ -162,6 +167,13 @@ class Abrechnung extends IPSModule } } + private function EnsureVisuUserObjects() + { + $this->RegisterVariableString('VisuUserOverview', 'Benutzer bearbeiten', '~HTMLBox', 20); + $this->RegisterVariableString('VisuUserStatus', 'Benutzer Status', '', 21); + $this->HideObjectByIdent('VisuUserStatus'); + } + private function HideObjectByIdent($Ident) { $id = @IPS_GetObjectIDByIdent($Ident, $this->InstanceID); @@ -411,6 +423,7 @@ class Abrechnung extends IPSModule .belevo-tariffs .status{margin-left:8px;color:#4b5563}