Skip to content

Conversation

@simonmichael
Copy link
Owner

  • dev: add a CostBasis field to Amount
  • feat: preserve Ledger-style lot info, and show it in print's json & txt output
  • feat:print: show lot info in beancount output; update docs

@simonmichael simonmichael added A-WISH Some kind of improvement request or proposal. journal The journal file format, and its features. investing Related to investments, lots, capital gains, etc. ledger-compat beancount The beancount output format. labels Jan 13, 2026
@simonmichael
Copy link
Owner Author

It seems to work; any review is welcome.
I haven't tested for time/space impact of the new field in Amount.

@simonmichael
Copy link
Owner Author

simonmichael commented Jan 19, 2026

I tested performance with

j bench -w hledger,hledger-cb -n2 -N2
j bench-throughput hledger; j bench-throughput hledger-cb
j perftest

and all looks normal. Also, I've added

@simonmichael simonmichael merged commit 4a32246 into master Jan 19, 2026
1 check passed
@simonmichael simonmichael deleted the sm-costbasis branch January 19, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-WISH Some kind of improvement request or proposal. beancount The beancount output format. investing Related to investments, lots, capital gains, etc. journal The journal file format, and its features. ledger-compat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants