DeliveryAdminWindow: Fix übernahme logic

This commit is contained in:
2023-10-22 01:09:28 +02:00
parent 25d681a1d8
commit d5102c9cd7
3 changed files with 53 additions and 45 deletions

View File

@ -14,8 +14,13 @@ namespace Elwig.Helpers {
public bool IsWolkersdorf => Client == Type.Winzerkeller && App.ZwstId == "W";
public bool IsHaugsdorf => Client == Type.Winzerkeller && App.ZwstId == "H";
public bool IsSitzendorf => Client == Type.Winzerkeller && App.ZwstId == "S";
public bool HasRebler => IsMatzen || IsWolkersdorf;
public bool HasKisten => IsHaugsdorf || IsSitzendorf;
public bool HasRebler(string? zwstId) => IsMatzen || (IsWinzerkeller && zwstId == "W");
public bool HasRebler(Branch? b) => HasRebler(b?.ZwstId);
public bool HasRebler() => HasRebler(App.ZwstId);
public bool HasKisten(string? zwstId) => IsWinzerkeller && (zwstId == "H" || zwstId == "S");
public bool HasKisten(Branch? b) => HasKisten(b?.ZwstId);
public bool HasKisten() => HasKisten(App.ZwstId);
public string NameToken;
public string NameShort;