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

Bug? Entries with non-existing currency code

0
I tried to fetch some entries with currency code = dkk, how is this possible?
When I try to match the entries' ICurrency objects against a list of standard ICurrency objects I get no match even though the ICurency.Code is converted to upper case DKK and looks exactly like the standard DKK ICurrency object.
Correct me if I'm wrong, but I think the lower case ICurrency object is not equal to the standard ICurrency object. Shouldn't they be the same in a comparison since you allow it to exist in the system?
created Mar 13, 2012 by thomas fra focus it
0% Accept Rate
Q 7 A 8 C 0

2 Answers

0
Hi Thomas,

I'm not sure I understand where in your 'flow' the lower-case currency codes are present.

Could you post a code snippet, showing what you're experiencing?


Best regards,
answered Mar 19, 2012 by Christian Estrup
0
The lower-case currency codes show up in the web browser when viewing entries on an account.
When I import the entries through the API the ICurrency objects do have the codes in upper-case but a comparison to an ICurrency object with the same codes fetched from ICurrency list fail. (Session.Currency.GetAll();) I get a key not found exception on a dictionary (private DictionaryICurrency, ICurrencyData currencyCache;)

For now I wrote a work-around, I use the currency codes as dictionary keys instead of the objects.  
But basically I think the customer's data can have currency codes which don't exist in the system.

I hope this cleared my issue?
answered Mar 22, 2012 by thomas fra focus it
Visma e-conomic A/S
...