AUDIT: r16877 - gnucash/trunk/src/import-export/qif-import - When matching QIF transactions make sure the account matches (#506810)

Derek Atkins warlord at cvs.gnucash.org
Sun Jan 20 13:13:01 EST 2008


Author: warlord
Date: 2008-01-20 13:13:00 -0500 (Sun, 20 Jan 2008)
New Revision: 16877
Trac: http://svn.gnucash.org/trac/changeset/16877

Modified:
   gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm
Log:
When matching QIF transactions make sure the account matches (#506810)
Patch by Charles Day
BP

Modified: gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm
===================================================================
--- gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm	2008-01-20 18:06:54 UTC (rev 16876)
+++ gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm	2008-01-20 18:13:00 UTC (rev 16877)
@@ -810,7 +810,8 @@
     ;; this is the grind loop.  Go over every unmarked transaction in
     ;; the candidate-xtns list.
     (let xtn-loop ((xtns candidate-xtns))
-      (if (not (qif-xtn:mark (car xtns)))
+      (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



More information about the gnucash-changes mailing list