Package: kmymoney Version: 4.6.2-1 Severity: important Tags: patch --- Please enter the report below this line. --- When importing data from CSV file, it seems that kmymoney loose every decimal symbol (everything seems to be multiplied by 100). I tried with previous working CSV files and result is the same : no decimal symbol.
I spent some time in the code and I think I found a solution by comparing with current kmymoney git repository. Patch is attached to this bugreport. Regards, Nicolas --- System information. --- Architecture: amd64 Kernel: Linux 3.2.0-2-amd64 Debian Release: wheezy/sid 500 testing ftp.be.debian.org --- Package information. --- Depends (Version) | Installed =======================================-+-=================== kde-runtime | 4:4.7.4-2 kdepim-runtime | 4:4.4.11.1-3 libalkimia4 | 4.3.2-1 libaqbanking33 (>= 4.99.2) | 5.0.22-1 libc6 (>= 2.2.5) | 2.13-27 libgcc1 (>= 1:4.1.1) | 1:4.7.0-1 libgmp10 | 2:5.0.4+dfsg-1 libgpgme++2 (>= 4:4.4.4) | 4:4.7.4-2 libgwengui-qt4-0 | 4.3.1-1 libgwenhywfar60 (>= 3.11.6) | 4.3.1-1 libical0 (>= 0.30) | 0.44-3 libkabc4 (>= 4:4.4.4) | 4:4.7.4-2 libkcmutils4 (>= 4:4.4.95) | 4:4.7.4-4 libkdecore5 (>= 4:4.4.4-2~) | 4:4.7.4-4 libkdeui5 (>= 4:4.4.4) | 4:4.7.4-4 libkfile4 (>= 4:4.4.4) | 4:4.7.4-4 libkholidays4 (>= 4:4.5.0) | 4:4.7.4-2 libkhtml5 (>= 4:4.4.4) | 4:4.7.4-4 libkio5 (>= 4:4.4.4) | 4:4.7.4-4 libofx4 | 1:0.9.4-2 libqt4-dbus (>= 4:4.5.3) | 4:4.7.4-2 libqt4-network (>= 4:4.5.3) | 4:4.7.4-2 libqt4-sql (>= 4:4.5.3) | 4:4.7.4-2 libqt4-svg (>= 4:4.5.3) | 4:4.7.4-2 libqt4-xml (>= 4:4.5.3) | 4:4.7.4-2 libqtcore4 (>= 4:4.7.0~beta1) | 4:4.7.4-2 libqtgui4 (>= 4:4.6.1) | 4:4.7.4-2 libstdc++6 (>= 4.6) | 4.7.0-1 kmymoney-common (= 4.6.2-1) | 4.6.2-1 Recommends (Version) | Installed ===========================-+-=========== gpg-agent | pinentry-qt4 | 0.8.1-1 Package's Suggests field is empty.
--- kmymoney-4.6.2.orig/kmymoney/plugins/csvimport/csvprocessing.cpp +++ kmymoney-4.6.2/kmymoney/plugins/csvimport/csvprocessing.cpp @@ -466,8 +466,8 @@ void CsvProcessing::csvImportTransaction return ; } } - tr.m_amount = m_trData.amount; - tr.m_shares = m_trData.amount; + tr.m_amount = MyMoneyMoney(m_trData.amount); + tr.m_shares = MyMoneyMoney(m_trData.amount); tmp = m_trData.number; tr.m_strNumber = tmp;