-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add match metadata to matched postings
I'm unsure of the status of this decade old issue (https://groups.google.com/g/beancount/c/MU6KozsmqGQ/m/TspjVxx-ZYIJ). This commit adds a config that adds metadata to matched postings such that they can be "linked" to one another. Alternatives would be using beancount's native links; however, I know in my use case at least I will have transactions with multiple matches (e.g., pay stubs with balances going to: multiple bank accounts, HSA, 401k, etc.). Thus, placing the match metadata at the transaction level is less clear. There is probably some performance hit when querying for matches on a posting level; but I feel that is negligible compared to the improvement in clarity. The use of random IDs might not be preferred, but I didn't want to try and format some human readable string. All I really care about is being able to pair transactions, not describe the match.
- Loading branch information
John McCann
committed
Feb 19, 2024
1 parent
c1a13c4
commit 3dcf5fd
Showing
3 changed files
with
67 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters