Commit 72bfeac5 authored by Allan Anderson's avatar Allan Anderson
Browse files

BUG:328776 - Reinstate code from "Add VAT split to file import", inadvertently...

BUG:328776 - Reinstate code from "Add VAT split to file import", inadvertently removed by this change.
parent a5818b5c
......@@ -1019,6 +1019,9 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra
s.setValue(-s1.value());
s.setAccountId(payeeObj.defaultAccountId());
transactionUnderImport.addSplit(s);
MyMoneyFile* file = MyMoneyFile::instance();
MyMoneyAccount category = file->account(payeeObj.defaultAccountId());
file->addVATSplit(transactionUnderImport, m_account, category, statementTransactionUnderImport.m_amount);
} else if (statementTransactionUnderImport.m_listSplits.isEmpty() && !d->m_skipCategoryMatching) {
MyMoneyTransactionFilter filter(thisaccount.id());
filter.addPayee(payeeid);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment