chore: erweitere Datenmodelle um Nation und Bundesland, verbessere UI im Profil- und Veranstaltungs-Wizard

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-21 13:56:04 +02:00
parent 2662d4e82e
commit f13c2eb35b
8 changed files with 45 additions and 12 deletions
@@ -54,6 +54,7 @@ data class Reiter(
var vereinsNummer: String? = null,
var verein: String? = null,
var nation: String = "AUT",
var bundesland: String? = null,
var istGastreiter: Boolean = false,
)
@@ -68,6 +69,8 @@ data class Funktionaer(
var email: String? = null,
var telefon: String? = null,
var vereinsNummer: String? = null,
var nation: String = "AUT",
var bundesland: String? = null,
var istAktiv: Boolean = true,
)
@@ -43,7 +43,8 @@ class DesktopMasterdataRepository : MasterdataRepository {
satznummer = remote.satznummer,
oepsNummer = remote.satznummer, // Oft identisch oder Mapping nötig
lizenzKlasse = remote.lizenzKlasse,
nation = "AUT" // Default für ZNS-Import
nation = remote.nation ?: "AUT",
bundesland = remote.bundesland
)
if (existingIdx >= 0) {
Store.reiter[existingIdx] = entry
@@ -83,7 +84,9 @@ class DesktopMasterdataRepository : MasterdataRepository {
id = id,
vorname = namen.firstOrNull() ?: "",
nachname = namen.drop(1).joinToString(" "),
rollen = remote.qualifikationen
rollen = remote.qualifikationen,
nation = remote.nation ?: "AUT",
bundesland = remote.bundesland
)
if (existingIdx >= 0) {
Store.funktionaere[existingIdx] = entry