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

How can I create an invoice default exchangerate for the the day?

0
I am creating invoices via "CurrentInvoice_CreateFromData" but i am not able to create the invoice without setting the ExchangeRate.

Is there any way I can create the invoice with the current exchange rate  for the chosen currency as default?
Otherwise I have to login to economic and change the the currency to update the correct exchangerate for the day.
created Apr 7, 2014 by Rbf
100% Accept Rate
Q 1 A 0 C 1

1 Answer

0
 
Best answer
- Ensure the Debtor has the correct Currency

- Create the CurrentInvoice via just Create - this will fill out all properties as in the UI - including the exchange rate

- Retrieve the CurrentInvoice via GetData, change what you may need, and then update via UpdateFromData

 

BR,
answered Apr 8, 2014 by Christian Estrup
selected Apr 30, 2014 by Rbf
Perfect! Thank you for the answer. :O)
Visma e-conomic A/S
...