[KMyMoney plugin] cannot import transactions
Hello I have a fully functional boobank setup (1.5) with a Fortuneo account. On the CLI, I can list the account history. But on KMyMoney (5.0.1-2), the plugin fails : I can import the account (it retrieves its balance), but the history sync fails. In the logs, I get an empty transaction processed :
KMyMoneyPlugin::KMMStatementInterface::import start
Importing statement for 'Fortuneo CC'
Processing transactions (Fortuneo CC)
Process on: '', id: 'ID ', amount: '0,00', fees: '0,00'
Looking for a match with transaction: "" , "" , "0,00" (referenced account: "Fortuneo CC" )
Considering 0 existing transaction(s) for matching
Problème lors de l'ajout ou de la correspondance de l'opération importée avec l'identifiant « ID » : Unable to add transaction with invalid postdate
I have added logs in the file https://github.com/KDE/kmymoney.git
to print the results
(I forced the loop break, too, to have only 1 item):
{'balance': 27364, 'type': 1, 'id': u'01000000000', 'transactions': [{'category': u'CARTE', 'raw': u'CARTE 31/01 AA.NET', 'amount': -9720, 'rdate': '2019-01-31', 'date': '2019-01-31', 'type': 7, 'id': '00000cf0', 'label': u'AA.NET'}], 'name': u'Compte courant n\xb0 0100000000 M OU MME XXXX YYY'}
Oh and BTW, the n°
character generates errors that I can avoid with the CLI with python env-variables, but it doesn't work for KMyMoney : Exception UnicodeEncodeError: UnicodeEncodeError('ascii', u'Compte courant n\xb0 01000000000 M OU MME XXX YYY', 16, 17, 'ordinal not in range(128)') in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
. But it is not linked to the sync failure, as I get the same failure with another account (creditdunord) that has only latin characters.
Anyway, thank you for this great tool :) and thanks for your support