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