[chore:] used_plz at KasPerson for the plz used in the final address)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user