ClientParameters: Fix parsing of VAT decimals
This commit is contained in:
@ -77,9 +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"] ?? "");
|
VatNormal = decimal.Parse((parameters["VAT_NORMAL"] ?? "").Replace(".", ","));
|
||||||
VatReduced = decimal.Parse(parameters["VAT_REDUCED"] ?? "");
|
VatReduced = decimal.Parse((parameters["VAT_REDUCED"] ?? "").Replace(".", ","));
|
||||||
VatFlatRate = decimal.Parse(parameters["VAT_FLATRATE"] ?? "");
|
VatFlatRate = decimal.Parse((parameters["VAT_FLATRATE"] ?? "").Replace(".", ","));
|
||||||
|
|
||||||
TextDeliveryNote = parameters.GetValueOrDefault("TEXT_DELIVERY_NOTE");
|
TextDeliveryNote = parameters.GetValueOrDefault("TEXT_DELIVERY_NOTE");
|
||||||
} catch {
|
} catch {
|
||||||
|
Reference in New Issue
Block a user