From 5d8c7d840dea0a43dca195f7f4cedc5b97e8fe30 Mon Sep 17 00:00:00 2001 From: Gabor Angyal Date: Wed, 27 Jul 2022 13:30:09 +0200 Subject: [PATCH] roud to 2 decimal places --- SzamlazzHuSDK/SzamlazzHuSDK.csproj | 2 +- SzamlazzHuSDK/createInvoiceRequest.sbn | 12 +++++------ SzamlazzHuTest/testCreateInvoiceRequest.xml | 22 ++++++++++----------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/SzamlazzHuSDK/SzamlazzHuSDK.csproj b/SzamlazzHuSDK/SzamlazzHuSDK.csproj index f11722e..2319bed 100644 --- a/SzamlazzHuSDK/SzamlazzHuSDK.csproj +++ b/SzamlazzHuSDK/SzamlazzHuSDK.csproj @@ -1,7 +1,7 @@ szamlazz-hu-sdk - 1.3.1 + 1.3.2 Gabor Angyal SDK for the Számlázz.hu billing software MIT diff --git a/SzamlazzHuSDK/createInvoiceRequest.sbn b/SzamlazzHuSDK/createInvoiceRequest.sbn index 396474b..60c2d3c 100644 --- a/SzamlazzHuSDK/createInvoiceRequest.sbn +++ b/SzamlazzHuSDK/createInvoiceRequest.sbn @@ -47,7 +47,7 @@ - {{ request.header.exchange_rate | math.format "F1" }} + {{ request.header.exchange_rate | math.format "F2" "en-US" }} @@ -125,19 +125,19 @@ {{ item.name }} - {{ item.quantity | math.format "F1" }} + {{ item.quantity | math.format "F2" "en-US" }} {{ item.unit_of_quantity }} - {{ item.unit_price | math.format "F1" }} + {{ item.unit_price | math.format "F2" "en-US" }} {{ item.vat_rate }} - {{ item.net_price | math.format "F1" }} + {{ item.net_price | math.format "F2" "en-US" }} - {{ item.vat_amount | math.format "F1" }} + {{ item.vat_amount | math.format "F2" "en-US" }} - {{ item.gross_amount | math.format "F1" }} + {{ item.gross_amount | math.format "F2" "en-US" }} {{ item.comment }} diff --git a/SzamlazzHuTest/testCreateInvoiceRequest.xml b/SzamlazzHuTest/testCreateInvoiceRequest.xml index d7d271d..b13a134 100644 --- a/SzamlazzHuTest/testCreateInvoiceRequest.xml +++ b/SzamlazzHuTest/testCreateInvoiceRequest.xml @@ -43,7 +43,7 @@ - 0.0 + 0.00 @@ -120,19 +120,19 @@ Elado izé - 1.0 + 1.00 db - 10000.0 + 10000.00 27.0 - 10000.0 + 10000.00 - 2700.0 + 2700.00 - 12700.0 + 12700.00 lorem ipsum @@ -140,13 +140,13 @@ Elado izé 2 - 2.0 + 2.00 db - 10000.0 + 10000.00 27.0 - 20000.0 - 5400.0 - 25400.0 + 20000.00 + 5400.00 + 25400.00 lorem ipsum 2