redstreet / fava_investor

Comprehensive set of reports, analyses, and tools for investments, for Beancount and Fava (plain text, double entry accounting software). Includes Fava plugins, command line tools, and libraries for each module.
GNU General Public License v3.0
136 stars 20 forks source link

[Feature] Use implicit prices #77

Closed putzwasser closed 2 years ago

putzwasser commented 2 years ago

Fava currently doesn't use the price information provided in postings:

plugin "beancount.plugins.implicit_prices"
2000-01-01 * "" "Buy new Asset"
  Assets:Investments:MyNewAsset                                  1 NEWASSET {1000 USD} @ 1000 USD
  Assets:Cash

Will lead to fava exiting, as there is no explicit price directive.

You need to explicitly add a price directive for NEWASSET:

plugin "beancount.plugins.implicit_prices"
2000-01-01 * "" "Buy new Asset"
  Assets:Investments:MyNewAsset                                  1 NEWASSET {1000 USD} @ 1000 USD
  Assets:Cash

2000-01-01 price NEWASSET 1000 USD

I update some assets more or less only via the „implicit“ price directive syntax that beancount provides. It would be nice, if fava_investor would make use of the data.

redstreet commented 2 years ago

I'm unable to reproduce this. Implicit prices works fine, and I use it all the time. Could you please post a complete, minimal example?

redstreet commented 2 years ago

Closing this as: unable to reproduce. Feel free to reopen with a test case.