gnucash master: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Sat Apr 25 19:45:03 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/9822f2f4 (commit)
via https://github.com/Gnucash/gnucash/commit/2d0d7c40 (commit)
via https://github.com/Gnucash/gnucash/commit/07cbd936 (commit)
via https://github.com/Gnucash/gnucash/commit/9bc722f6 (commit)
from https://github.com/Gnucash/gnucash/commit/de9ee8de (commit)
commit 9822f2f486dc0a2615009f1ecc9ae43659a1d7bf
Merge: de9ee8ded 2d0d7c40f
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Apr 25 15:59:58 2020 -0700
Merge Jean Laroche's 'add_reconcile_after_ofx_import_master' into master.
https://github.com/Gnucash/gnucash/pull/700
commit 2d0d7c40f88f89c084066ceccc110ece62c1f0a9
Author: jean <you at example.com>
Date: Tue Apr 21 22:24:09 2020 -0700
Make the reconcile window close when the session closes, use full version of free
commit 07cbd936c6019f938b4075f80201b4d51226054c
Author: jean <you at example.com>
Date: Sun Apr 19 14:00:41 2020 -0700
Add detection of account type to handle balance sign
commit 9bc722f601de2a907f31b507163d80716aa9aebb
Author: jean <you at example.com>
Date: Sat Apr 18 22:31:03 2020 -0700
Add reconcile immediately after ofx import, based on statement
To make this work, I had to add the right head and make a change to the CMakeLists file.
The ofx code used to have a static int to count imported transactions, which was a bit hacky.
I replaced it with a structure that's passed to all the callbacks. The structure has
the transaction count, as well as a list of statement balances information.
This list is used after the import of the ofx file to do the reconciliation.
NOTE: I wouldn't need a list since the current code only process one ofx at a time. However
I have another PR for importing several ofx files in one shot, so this PR is ready for that.
The reconciliation code is modeled after what's done in aqbanking.
Summary of changes:
gnucash/gnome/window-reconcile.c | 3 +
gnucash/import-export/ofx/CMakeLists.txt | 2 +-
gnucash/import-export/ofx/gnc-ofx-import.c | 89 ++++++++++++++++++++++--------
libgnucash/engine/Account.cpp | 29 ++++++++++
libgnucash/engine/Account.h | 5 ++
5 files changed, 103 insertions(+), 25 deletions(-)
More information about the gnucash-patches
mailing list