Skip to content

Commit

Permalink
roud to 2 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
agabor committed Jul 27, 2022
1 parent 0726f0f commit 5d8c7d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion SzamlazzHuSDK/SzamlazzHuSDK.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>szamlazz-hu-sdk</PackageId>
<Version>1.3.1</Version>
<Version>1.3.2</Version>
<Authors>Gabor Angyal</Authors>
<Description>SDK for the Számlázz.hu billing software</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
12 changes: 6 additions & 6 deletions SzamlazzHuSDK/createInvoiceRequest.sbn
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<!-- name of bank: in case of invoice about other currency
than HUF you have to display which bank’s exchange rates
did we use to calculate VAT -->
<arfolyam>{{ request.header.exchange_rate | math.format "F1" }}</arfolyam>
<arfolyam>{{ request.header.exchange_rate | math.format "F2" "en-US" }}</arfolyam>
<!-- exchange rate: in case of invoice about other currency
than HUF you have to display which bank’s exchange rates
did we use to calculate VAT -->
Expand Down Expand Up @@ -125,19 +125,19 @@
<!-- item 1 -->
<megnevezes>{{ item.name }}</megnevezes>
<!-- name -->
<mennyiseg>{{ item.quantity | math.format "F1" }}</mennyiseg>
<mennyiseg>{{ item.quantity | math.format "F2" "en-US" }}</mennyiseg>
<!-- quantity -->
<mennyisegiEgyseg>{{ item.unit_of_quantity }}</mennyisegiEgyseg>
<!-- unit of quantity -->
<nettoEgysegar>{{ item.unit_price | math.format "F1" }}</nettoEgysegar>
<nettoEgysegar>{{ item.unit_price | math.format "F2" "en-US" }}</nettoEgysegar>
<!-- unit price -->
<afakulcs>{{ item.vat_rate }}</afakulcs>
<!-- VAT rate -->
<nettoErtek>{{ item.net_price | math.format "F1" }}</nettoErtek>
<nettoErtek>{{ item.net_price | math.format "F2" "en-US" }}</nettoErtek>
<!-- net price -->
<afaErtek>{{ item.vat_amount | math.format "F1" }}</afaErtek>
<afaErtek>{{ item.vat_amount | math.format "F2" "en-US" }}</afaErtek>
<!-- VAT amount -->
<bruttoErtek>{{ item.gross_amount | math.format "F1" }}</bruttoErtek>
<bruttoErtek>{{ item.gross_amount | math.format "F2" "en-US" }}</bruttoErtek>
<!-- gross amount -->
<megjegyzes>{{ item.comment }}</megjegyzes>
<!-- comment for item -->
Expand Down
22 changes: 11 additions & 11 deletions SzamlazzHuTest/testCreateInvoiceRequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<!-- name of bank: in case of invoice about other currency
than HUF you have to display which bank’s exchange rates
did we use to calculate VAT -->
<arfolyam>0.0</arfolyam>
<arfolyam>0.00</arfolyam>
<!-- exchange rate: in case of invoice about other currency
than HUF you have to display which bank’s exchange rates
did we use to calculate VAT -->
Expand Down Expand Up @@ -120,33 +120,33 @@
<!-- item 1 -->
<megnevezes>Elado izé</megnevezes>
<!-- name -->
<mennyiseg>1.0</mennyiseg>
<mennyiseg>1.00</mennyiseg>
<!-- quantity -->
<mennyisegiEgyseg>db</mennyisegiEgyseg>
<!-- unit of quantity -->
<nettoEgysegar>10000.0</nettoEgysegar>
<nettoEgysegar>10000.00</nettoEgysegar>
<!-- unit price -->
<afakulcs>27.0</afakulcs>
<!-- VAT rate -->
<nettoErtek>10000.0</nettoErtek>
<nettoErtek>10000.00</nettoErtek>
<!-- net price -->
<afaErtek>2700.0</afaErtek>
<afaErtek>2700.00</afaErtek>
<!-- VAT amount -->
<bruttoErtek>12700.0</bruttoErtek>
<bruttoErtek>12700.00</bruttoErtek>
<!-- gross amount -->
<megjegyzes>lorem ipsum</megjegyzes>
<!-- comment for item -->
</tetel>
<tetel>
<!-- item 2, details are same as above -->
<megnevezes>Elado izé 2</megnevezes>
<mennyiseg>2.0</mennyiseg>
<mennyiseg>2.00</mennyiseg>
<mennyisegiEgyseg>db</mennyisegiEgyseg>
<nettoEgysegar>10000.0</nettoEgysegar>
<nettoEgysegar>10000.00</nettoEgysegar>
<afakulcs>27.0</afakulcs>
<nettoErtek>20000.0</nettoErtek>
<afaErtek>5400.0</afaErtek>
<bruttoErtek>25400.0</bruttoErtek>
<nettoErtek>20000.00</nettoErtek>
<afaErtek>5400.00</afaErtek>
<bruttoErtek>25400.00</bruttoErtek>
<megjegyzes>lorem ipsum 2</megjegyzes>
</tetel>
</tetelek>
Expand Down

0 comments on commit 5d8c7d8

Please sign in to comment.