Bug 251465 - Wrong totals with second currency accounts
Summary: Wrong totals with second currency accounts
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 16:48 UTC by Joe Morris
Modified: 2010-09-17 18:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Morris 2010-09-16 16:48:35 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

My main currency is USD, my second is PHP (Philippine Peso).  My dollar accounts work correctly.  My Peso account is now off by P2.88, not a lot but not correct.  My guess is all credits and debits are being translated to dollars and exchanges are causing this drift.  It would be best if currencies are tied to a specific account, and as long as that currency is used, there is just normal calculations and no translations based on exchange rates.  IOW, in my Peso account where all transactions are in pesos, it should be the same as a calculator.  Right now, it isn't, and my guess is because every transaction is valued to the dollar.  Hope this explains it clear enough.

Reproducible: Always

Steps to Reproduce:
Make a Primary Currency, i.e. USD.  Then a foreign currency.  Enter transactions in foreign currency over several days (seen faster with a quickly changing exchange rate).

Actual Results:  
The total drifts away from what is correct, Mine has transactions over the past 8 years.  It is presently off by P2.88.

Expected Results:  
Totals would be the same as calculated with a calculator.  It should be straight math.

OS: Linux (x86_64) release 2.6.27.48-0.2-default
Compiler: gcc
Comment 1 Stephane MANKOWSKI 2010-09-17 08:22:02 UTC
It is a coincidence but I discovered this issue 2 days ago.
I delivered a correction yesterday evening.

Are you able to test the svn version ?
If not, this is not a problem, in any case I will analyse this issue.

Thank you for using Skrooge.
Comment 2 Joe Morris 2010-09-17 13:52:41 UTC
I just tested with the latest svn version (1176288), and the Peso total was correct.  Wow, now that was FAST.  I would have to guess this bug is fixed by whatever correction you made.  Thanks much!  I would say you could close this bug.
Comment 3 Stephane MANKOWSKI 2010-09-17 18:58:05 UTC
SVN commit 1176427 by smankowski:

BUG: 251465: Wrong totals with second currency accounts

 M  +1 -0      CHANGELOG  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1176427