Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading multiple ofxid/csvids from a transaction #101

Open
bryanapperson opened this issue Jun 3, 2020 · 4 comments
Open

Reading multiple ofxid/csvids from a transaction #101

bryanapperson opened this issue Jun 3, 2020 · 4 comments

Comments

@bryanapperson
Copy link

I'd like to see the ability to read multiple ofxid | csvids from a given transaction. The use case is for deduplication of inter account transactions, like a credit card payment which shows up both on a bank statement, and a credit card statement. The user (or a plugin) can deduplicate these, and then place multiple ofxid | csvid comments on a transaction. Then it wont be imported again from either account. The logic now seems to be to read the first and break. Is this a change the project would be open to?

@egh
Copy link
Owner

egh commented Jun 4, 2020

Absolutely, that makes a lot of sense!

@egh
Copy link
Owner

egh commented Jun 4, 2020

I myself use a transfer account to do that, but I think it makes sense to support that use case.

@501st-alpha1
Copy link
Contributor

501st-alpha1 commented Jun 7, 2020

@bryanapperson: To clarify, does this work?

2020/01/01 Bank
    Assets:Bank               $-100.00
    ; ofxid: 123.xyz
    Liabilities:Credit Cards   $100.00
    ; ofxid: 456.abc

Or were you trying something more like this?

2020/01/01 Bank
    ; ofxid: 123.xyz
    ; ofxid: 456.abc
    Assets:Bank               $-100.00
    Liabilities:Credit Cards   $100.00

I recommend the former, because (1) that works for me, and (2) it seems to make more sense to attach the ofxid to the appropriate account, rather than the transaction as a whole.

(In a Ledger transaction, any comment lines between the first line and the first account apply to the transaction as a whole, while any comment lines immediately after an account entry apply only to that entry.)

@colindean
Copy link
Contributor

I've never really encountered this, but I've prepared for the eventuality by putting both accounts' IDs in like the second example that @501st-alpha1 provided. I guess I should move to the first example. This should be documented somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants