From af6a4e02f5e8928e4a7b9378aef662e4ccbd73a9 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 25 Mar 2025 13:49:16 +0100 Subject: [PATCH] added new features --- Layout/default/ConstructionConsent/Index.php | 14 +-- Layout/default/ConstructionConsent/View.php | 93 +++++++++++++++++-- .../ConstructionConsent.php | 56 +++++++---- .../ConstructionConsentController.php | 17 ++++ .../ConstructionConsentHistory.php | 4 +- .../ConstructionConsentOwnerController.php | 25 ++++- ...00_constr_consent_add_approve_override.php | 23 +++++ 7 files changed, 199 insertions(+), 33 deletions(-) create mode 100644 db/migrations/20250325120000_constr_consent_add_approve_override.php diff --git a/Layout/default/ConstructionConsent/Index.php b/Layout/default/ConstructionConsent/Index.php index 68e9c1946..3d0868573 100644 --- a/Layout/default/ConstructionConsent/Index.php +++ b/Layout/default/ConstructionConsent/Index.php @@ -328,10 +328,10 @@ $pagination_entity_name = "Zustimmungserklärungen"; Name Objekttyp Objektadresse + KG GST-Nr. Einlagezahl Anzahl Eigentümer - Anfragestatus Anfrageresultat @@ -351,9 +351,9 @@ $pagination_entity_name = "Zustimmungserklärungen"; adb_hausnummer->strasse->gemeinde->name?> + kg?> gst?> ez?> - - - status) ? __($item->status,"consent") : ""?> owner_result_counts['denied']) && $item->owner_result_counts['denied'] > 0) { - $status_class = 'red'; // Red if at least one denied + $approve_override = $item->approve_override; + if (isset($approve_override) && $approve_override) { + $status_class = 'green'; // Blue if approve override + } elseif (isset($item->owner_result_counts['denied']) && $item->owner_result_counts['denied'] > 0) { + $status_class = 'red'; + // Red if at least one denied } elseif ((isset($item->owner_result_counts['unresolvable']) && $item->owner_result_counts['unresolvable'] > 0) || (isset($item->owner_result_counts['moved']) && $item->owner_result_counts['moved'] > 0)) { $status_class = 'yellow'; // Yellow if at least one unresolvable or moved diff --git a/Layout/default/ConstructionConsent/View.php b/Layout/default/ConstructionConsent/View.php index 30264e511..a373b72a9 100644 --- a/Layout/default/ConstructionConsent/View.php +++ b/Layout/default/ConstructionConsent/View.php @@ -111,6 +111,12 @@ $pagination_entity_name = "Adressen"; Die Nutzung der Liegenschaft seitens BB dient der Eigenversorgung der GE und/oder dessen Nutzer(in) und wird dieser entgeltlos zugestimmt + + Genehmigung überschreiben + + approve_override) ? "checked='checked'" : ""?> /> + + object_type == "building"): ?>

Metadaten

@@ -453,7 +459,6 @@ $pagination_entity_name = "Adressen";