Git Product home page Git Product logo

Comments (5)

alensiljak avatar alensiljak commented on May 26, 2024

I have performed the currency update from the desktop application.
From what I see, this added 0 to the Scale field for HUF currency. Close, reopen the currency view, and the conversion to base rate is now 0.0033 instead of 306.xx.
Now the numbers are OK.
There is a problem somewhere when updating the currencies initially. Perhaps from Android, or a different locale?

from android-money-manager-ex.

alensiljak avatar alensiljak commented on May 26, 2024

Test 1

PC:

  • create db
  • create EUR account, initial balance €100
  • create HUF account, initial balance 0
  • sync via Dropbox

Android:

  • create transfer EUR->HUF of €50.

Result: can't edit the HUF amount. The currency for EUR account is displayed as "L". (?)

https://www.dropbox.com/s/fw684qti9fuvxw9/alen.mmb?dl=0

Test 2

PC:

  • create db
  • sync via Dropbox

Android:

  • create EUR account, initial balance €100
  • create HUF account, initial balance 0
  • create transfer of €50 EUR->HUF, destination amount 15000 Ft. (amount editable)
  • update currencies

Result: the EUR/HUF rate is wrong.

https://www.dropbox.com/s/j0nwm15hjm14bnj/test2.mmb?dl=0

My conclusion is that the error is somewhere in Android currency update. My original issue was solved after I updated currencies in the Windows desktop version of Money Manager Ex.

What was confusing in the original case was that, in Android, the rate was displayed as 306, which looked correct as that is the rate. But in reality the currencies were swapped. The real rate was supposed to be 1/306 = 0.0033. This is the rate that was set after the desktop currency update.

I'll copy this comment into the related GitHub issue, as well.

from android-money-manager-ex.

alensiljak avatar alensiljak commented on May 26, 2024

I checked the database I used for testing a few days ago. There, HUF has a Scale of 1 and Conversion of 306.673.

from android-money-manager-ex.

alensiljak avatar alensiljak commented on May 26, 2024

So, the source for the currency conversion http://www.freecurrencyconverterapi.com/api/convert?q=EUR-HUF&compact=y returns {"EUR-HUF":{"val":306.6727}}

However, it should be http://www.freecurrencyconverterapi.com/api/convert?q=HUF-EUR&compact=y, {"HUF-EUR":{"val":0.0033}}.

OK, so this is the source of the problem.

from android-money-manager-ex.

AlessandroLazzari avatar AlessandroLazzari commented on May 26, 2024

Thanks. Merged and fixed!
Pull request #24

from android-money-manager-ex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.