Summary: | Rounding error on investments | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | David Houlden <djhoulden> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kmymoney/8901699c749384497fe6ee71309e868466c20e49 | Version Fixed In: | |
Sentry Crash Report: |
Description
David Houlden
2009-08-26 22:34:26 UTC
Updated to reflect that this is still happening on latest git version
This was sent to the developers mailing list on 19 Dec 2012 by Andreas about version 4.6.1
> Thomas Baumgart a écrit :
> >>
> >> When using Split transaction, the amount taken in account is only that
> >> from the first line.
> >> Other lines from the split are not taken.
> >> for example :
> >> Transport 1 438,18 INR
> >> Hotel 15 258,60 INR
> >> Total amount is 16 696,78 INR
> >> But in the window in which we enter the currency rate to be converted in
> >> default currency €
> >> the amount is only 1 438,18 INR
> >
> > Since you enter the exchange rate for the first split, and the foreign
> > currency is the same for all splits, the exchange rate you enter for the
> > first is used for all others automatically.
> >
> > Does this explain the scenario or am I missing something?
> >
Dear Thomas, all
The issue that Richard has mentioned above in 2006 persists in kmymoney 4.6.1
(on ubuntu 12.04). And while Thomas is correct that the exchange rate of the
first part of a split transaction is also used for the other parts of the split,
this leads toan inaccurate result (off by a few cents, possibly rounding error).
This could be avoided if the user can enter in the exchange rate dialog (just
prior to completing the transaction) the total converted amount.
Best
Andreas
Modified target mail address to point to our new ML. Git commit 8901699c749384497fe6ee71309e868466c20e49 by Thomas Baumgart. Committed on 27/12/2013 at 12:04. Pushed by tbaumgart into branch 'master'. Fix precision of price returned from price entry dialog The returned price was truncated by the global price precision which could cause all kinds of trouble when an amount was entered but the price precision was not large enough to yield the same result in the equation result = amount / price * price; Now the price is returned without precision loss in case it is based on an amount (method is selected by the user in the dialog). In the case the price is entered it is returned with the global price precision in effect. Related: bug 325953, bug 300965 M +8 -9 kmymoney/dialogs/kcurrencycalculator.cpp M +12 -1 kmymoney/dialogs/kcurrencycalculator.h http://commits.kde.org/kmymoney/8901699c749384497fe6ee71309e868466c20e49 |