[Kmymoney-devel] [kmymoney4] [Bug 325793] loan payment calculated using wrong currency when currencies of loan and payment account differ

Cristian Oneț onet.cristian at gmail.com
Tue Mar 31 16:16:18 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=325793

Cristian Oneț <onet.cristian at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |http://commits.kde.org/kmym
                   |                            |oney/d87427c4e8fad8226c1f1a
                   |                            |80bbb094d9cc59a2ab

--- Comment #9 from Cristian Oneț <onet.cristian at gmail.com> ---
Git commit d87427c4e8fad8226c1f1a80bbb094d9cc59a2ab by Cristian Oneț.
Committed on 31/03/2015 at 16:15.
Pushed by conet into branch 'master'.

Properly handle loan payments from accounts using a different currency

If a payment account that has a different currency than the currency
of the loan is selected in the loan wizard, the resulting scheduled
transaction would not have the proper value in the currency of the
payment account.

Fixed this by requesting the user to perform the currency conversion
from the amount of the payment in the currency of the loan to the
amount in the currency of the payment account. This conversion is done
using the standard mechanism provided by the currency calculator.

After this was fixed I observed that the amount of the scheduled
transaction was not being rendered properly in the homepage. Fixed
this by using the same amount formating that is used in the ledger.
REVIEW: 123177

M  +3    -3    kmymoney/views/khomeview.cpp
M  +12   -6    kmymoney/wizards/newaccountwizard/knewaccountwizard.cpp

http://commits.kde.org/kmymoney/d87427c4e8fad8226c1f1a80bbb094d9cc59a2ab

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list