gnucash maint: [qif-to-gnc] properly mark intra-QIF internal transfers.
Christopher Lam
clam at code.gnucash.org
Sat Apr 4 09:20:55 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/96980193 (commit)
from https://github.com/Gnucash/gnucash/commit/2329c1c5 (commit)
commit 96980193bfe49499c953b00b51618a8333a54abd
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sat Apr 4 21:18:14 2020 +0800
[qif-to-gnc] properly mark intra-QIF internal transfers.
Unfortunately d6de324b had a copy-and-paste bug, and the (if)
conditional has failed to mark internal transfers.
This commit fixes the parens so that splits with matching accounts are
now marked for skipping during import.
diff --git a/gnucash/import-export/qif-imp/qif-to-gnc.scm b/gnucash/import-export/qif-imp/qif-to-gnc.scm
index 08bc0b31e..7b038517a 100644
--- a/gnucash/import-export/qif-imp/qif-to-gnc.scm
+++ b/gnucash/import-export/qif-imp/qif-to-gnc.scm
@@ -907,8 +907,8 @@
(if (not (and far-acct-name near-acct-name))
(if errorproc
(errorproc "Transaction with no or only one associated account."))
- (if (and (not (qif-xtn:mark (car xtns))))
- (string=? (qif-xtn:from-acct (car xtns)) far-acct-name)
+ (if (and (not (qif-xtn:mark (car xtns)))
+ (string=? (qif-xtn:from-acct (car xtns)) far-acct-name))
(begin
(set! how
(qif-import:xtn-has-matches? (car xtns) near-acct-name
Summary of changes:
gnucash/import-export/qif-imp/qif-to-gnc.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list