API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Daybook and currrency

0
Hi guys

Anyone knows how a daybook with foreign currency is booked - does e-conomic handle the currency conversion to the local currency, or should the producer of the daybook determine that?
created Sep 2, 2016 by FarPay-Theodor
0% Accept Rate
Q 2 A 0 C 1

1 Answer

0
Hi Theodor

When creating CashBook entries the property "AmountDefaultCurrency" is the amount in the base currency of the agreement.

"Amount" must be set to the amount selected in the "Currency" property.

An AmountDefaultCurrency of 0 is tecnhically invalid unless the entry is a 0-entry. Furthermore: Amount=X and AmountDefaultCurrency=0 is fully invalid and will mess up the accounting.

e-conomic uses AmountDefaultCurrency vs. Amount to calculate the exchange rate. So in short that is how you set the exchange rate via API.
answered Sep 2, 2016 by olej
To clarify what you are saying - in an Example when a daybook contains 10 EUR:
...
cashbook.Amount = 10 (euro)
cashbook.AmountDefaultCurrencty = 75 (DKK)

Network

Find all the documentation and resources you need to build great apps.
Go to Developer site

Newsletter

Get the latest news and important info from the e-conomic developer world.
Sign up now

Visma e-conomic A/S
...