[chore:] used_plz at KasPerson for the plz used in the final address)

This commit is contained in:
2026-06-03 16:05:02 +02:00
parent 5a47fedcf0
commit 0750c51448
+17
View File
@@ -178,6 +178,23 @@ public class KasPerson
public string abteilung { get; set; }
public string funktionad { get; set; }
public string used_plz { get; set; } = "";
public static void SetUsedPLZ(int id, string plz)
{
foreach (var set in Settings._instance.addressSets.addresses)
{
foreach (var add in set.KasPersons)
{
if (add.id == id)
{
add.used_plz = plz;
return;
}
}
}
}
public static int GenerateNewID(int base_id)
{
//var newid = 100000 + base_id;