GnuCash
Contact   Instructions
Bug 797737 - Import matching can match an imported transaction to an existing, previously matched transaction
Summary: Import matching can match an imported transaction to an existing, previously ...
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Import - Other (show other bugs)
Version: git-master
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: import
QA Contact: import
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 798128
  Show dependency tree
 
Reported: 2020-05-08 11:26 EDT by Jean Laroche
Modified: 2021-02-18 20:17 EST (History)
4 users (show)

See Also:


Attachments

Description Jean Laroche 2020-05-08 11:26:31 EDT
The current matching code ignores the fact that transactions in the register may have been previously matched with imported transactions, in which case they should not be available as matches for new imported transactions.

To see that, create an ofx with 1 transaction of $20 on a certain day. Import it, add it to the register.
Now edit the ofx file to change the transaction ID, leaving the date and amount identical. Import the ofx: GC will match it to the $20 transaction you previously matched.
Comment 1 Jean Laroche 2020-05-08 11:48:05 EDT
A PR was created for this. https://github.com/Gnucash/gnucash/pulls/@me
Comment 2 Bob 2020-05-31 06:28:14 EDT
Your PR #717 was added to maint and will be in the next release 3.11
Comment 3 Christopher Lam 2021-02-17 19:49:08 EST
Bob thinking of either reverting this -- see bug 798128 or the import-matcher can be made more clever see https://github.com/Gnucash/gnucash/pull/717
Comment 4 Christopher Lam 2021-02-18 11:28:16 EST
I think it's unreasonable to break matching to accommodate a bank which exports OFX with inconsistent FITIDs. The OFX spec dictates the FITID must be unique and invariant.
Comment 5 Jean Laroche 2021-02-18 11:32:37 EST
(In reply to Christopher Lam from comment #4)
> I think it's unreasonable to break matching to accommodate a bank which
> exports OFX with inconsistent FITIDs. The OFX spec dictates the FITID must
> be unique and invariant.

That was not the motivation for the PR.
Comment 6 Christopher Lam 2021-02-18 20:17:29 EST
(In reply to Jean Laroche from comment #5)
> (In reply to Christopher Lam from comment #4)
> > I think it's unreasonable to break matching to accommodate a bank which
> > exports OFX with inconsistent FITIDs. The OFX spec dictates the FITID must
> > be unique and invariant.
> 
> That was not the motivation for the PR.

Ok I misunderstood -- looking forward for amendment.

Note You need to log in before you can comment on or make changes to this bug.