ClientParameters: remove NameShortened, add VAT
This commit is contained in:
@ -12,7 +12,6 @@ namespace Elwig.Helpers {
|
||||
|
||||
public string NameToken;
|
||||
public string NameShort;
|
||||
public string NameShortened;
|
||||
public string Name;
|
||||
public string? NameSuffix;
|
||||
public string NameType;
|
||||
@ -43,6 +42,9 @@ namespace Elwig.Helpers {
|
||||
|
||||
public int DeliveryObligation;
|
||||
public int DeliveryRight;
|
||||
public decimal VatNormal;
|
||||
public decimal VatReduced;
|
||||
public decimal VatFlatRate;
|
||||
|
||||
public string? TextDeliveryNote;
|
||||
|
||||
@ -53,7 +55,6 @@ namespace Elwig.Helpers {
|
||||
NameToken = parameters["CLIENT_NAME_TOKEN"] ?? throw new KeyNotFoundException();
|
||||
NameShort = parameters["CLIENT_NAME_SHORT"] ?? throw new KeyNotFoundException();
|
||||
Name = parameters["CLIENT_NAME"] ?? throw new KeyNotFoundException();
|
||||
NameShortened = parameters["CLIENT_NAME_SHORTENED"] ?? Name;
|
||||
NameSuffix = parameters.GetValueOrDefault("CLIENT_NAME_SUFFIX");
|
||||
NameType = parameters["CLIENT_NAME_TYPE"] ?? throw new KeyNotFoundException();
|
||||
switch (Name) {
|
||||
@ -76,6 +77,9 @@ namespace Elwig.Helpers {
|
||||
|
||||
DeliveryObligation = int.Parse(parameters["DELIVERY_OBLIGATION"] ?? "");
|
||||
DeliveryRight = int.Parse(parameters["DELIVERY_RIGHT"] ?? "");
|
||||
VatNormal = decimal.Parse(parameters["VAT_NORMAL"] ?? "");
|
||||
VatReduced = decimal.Parse(parameters["VAT_REDUCED"] ?? "");
|
||||
VatFlatRate = decimal.Parse(parameters["VAT_FLATRATE"] ?? "");
|
||||
|
||||
TextDeliveryNote = parameters.GetValueOrDefault("TEXT_DELIVERY_NOTE");
|
||||
} catch {
|
||||
|
Reference in New Issue
Block a user