[Kmymoney-devel] [Bug 241322] Automatic sales tax assignment during import

Thomas Baumgart ipwizard at users.sourceforge.net
Tue May 3 08:51:22 CEST 2011


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





--- Comment #3 from Thomas Baumgart <ipwizard users sourceforge net>  2011-05-03 08:51:21 ---
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 at 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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list