Version: unspecified (using KDE 4.3.5) OS: Linux 1) Categories are setup in KMyMoney before the import and have assignments to some tax categories 2) Import transactions via File or Online Statement Import 3) For all transactions which are not matched to an existing transaction but assigned to a taxable category and don't have multiple splits in the import source, the necessary split between category and tax category should be done automatically Reproducible: Didn't try
*** Bug 243671 has been marked as a duplicate of this bug. ***
This is a show stopper for me. I don't see it as a wish list. Why would it not automatically split on import? Isn't it meant to be an automatic split? Is there some logic to this that I am not aware of? I have hundreds of transactions to import (moving from another system) its absolutely important that the split is done to save me the many hours of going into it and manually adding each split. I am happy to tackle the code if I can be pointed to the correct spot. up until now I haven't ventured into the codebase but am happy to see if I can work up a patch. DC
Currently, the logic is only available to the UI parts of the program and not to the import logic. OK, I try to give you those pointers: - the logic to process the transaction should be located in MyMoneyStatementReader::processTransactionEntry() which can be found in kmymoney/converter/mymoneystatementreader.cpp - the logic which does the tax calculation is currently part of the transaction editor at StdTransactionEditor::updateVAT(), StdTransactionEditor::addVatSplit() and StdTransactionEditor::removeVatSplit(). These methods can be found in kmymoney/dialog/transactioneditor.cpp. The latter is probably of no use for this use-case. This logic works partially on widgets so it must be changed. Maybe, we can refactor the whole logic so that both parts (UI and statement reader) can share parts of the logic. Please feel free to ask questions on kmymoney-devel@kde.org In case you want to discuss a (working) patch, please use https://reviewboard.kde.org/ and attach it to the kmymoney group. Hope that helps.
(In reply to comment #3) > In case you want to discuss a (working) patch, please use > https://reviewboard.kde.org/ and attach it to the kmymoney group. I think since the move of some parts of KDE to git the review board URL is https://svn.reviewboard.kde.org
Created attachment 82539 [details] Add VAT split to file import
Created attachment 83499 [details] sample kmymony file (before import)
Created attachment 83500 [details] sample csv file
Comment on attachment 82539 [details] Add VAT split to file import Patch moved to reviewboard https://git.reviewboard.kde.org/r/113011/