This work has just been merged:
https://bitbucket.org/blais/beancount/commits/99be31c83d04beaa7cf96d727e765b1464b52950
TL;DR:
There's a new module beancount.core.convert with all the conversion
functions:
https://bitbucket.org/blais/beancount/src/99be31c83d04beaa7cf96d727e765b1464b52950/src/python
I began working on it:
https://bitbucket.org/blais/beancount/commits/004249d3aece6739dd29f7b612b9b60b9458e68e?at=conversions
I still need to
- Test the inventory (using a simple map() call of the new functions to its
builder)
- Convert all the old code to these (and make sure everything still work
Any idea when you'll be able to make these sorts of changes? Given the
holidays, I may have slightly more time to work on the fava side of it if I
had a market value method I could use.
I just realized it would also have to be plumbed through bean-query because
I also have queries that pull toget
This is where the "weight" of a posting is currently calculated:
https://bitbucket.org/blais/beancount/src/c796e5e34b8fbd05862847ff809c1240130c59e0/src/python/beancount/core/interpolate.py?at=default&fileviewer=file-view-default#interpolate.py-57
A function to compute the market value from an Inven
Proposal: Add market(self, date) method to Inventory (
https://bitbucket.org/blais/beancount/src/c796e5e34b8fbd05862847ff809c1240130c59e0/src/python/beancount/core/inventory.py?at=default&fileviewer=file-view-default#inventory.py-68)
and add a switch somewhere in fava to toggle between cost and mar