[Kmymoney-devel] Review Request 123177: Properly handle loan payments from accounts using a different currency

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


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123177/
-----------------------------------------------------------

(Updated March 31, 2015, 4:16 p.m.)


Status
------

This change has been marked as submitted.


Review request for KMymoney.


Changes
-------

Submitted with commit d87427c4e8fad8226c1f1a80bbb094d9cc59a2ab by Cristian One? to branch master.


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


Repository: kmymoney


Description
-------

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 selector.

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.

BUG: 325793
REVIEW: 123177


Diffs
-----

  kmymoney/views/khomeview.cpp fac3343d17b0da47ad5a92cf9390658c87c6a420 
  kmymoney/wizards/newaccountwizard/knewaccountwizard.cpp eb04b082e9909cc9f9b0f71628bd63f65feb383b 

Diff: https://git.reviewboard.kde.org/r/123177/diff/


Testing
-------

Created multiple loans, seems to works as expected, although I still need to test loan editing.

The loan wizard has a few more bugs but I intend to file separate bug reports for those issues.


Thanks,

Cristian OneČ›

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20150331/7ff69186/attachment.html>


More information about the KMyMoney-devel mailing list