codinguser/gnucash-android — pull request #198 by fefe982 (2014-09-07 09:43:34+00:00)
Title: rewrite Qif Export

The interface in `Exporter` is not changed. So now there are some temporary workaround code in `ExporterAsyncTask` to call this export.

The export now will assume that all transactions are already balanced. It will not generate a Imbalance split for unbalanced transactions. It will not generate a `Tamount` line for transactions with more than two splits, instead it relies the auto-balance feature of GnuCash to generate that amount automatically. This may not work well with the current App as multi-split transactions are not automatically balanced.

All transactions will be marked as exported after a successful export. A full table update is done on the transactions table. Currently, export will include either un-exported transactions or all transactions, so after the export, all transactions should be exported.

As everything is retrieved with one SQL query, it now works much faster than the old version. The original approach goes through a lot of unrelated transactions just to export one new transaction, and take a lot of time.