You can do it using bean-query to generate LIFO, FIFO and AVCO analysis reports, check the documents at:
How Inventories Work
Beancount Query Language
Generating beancount reports
Indeed using option you can write a plugin to fetch the market prices of commodities. So indeed your whole workflow can be automated and generated reports can be used by end-user.
On Wednesday, March 9, 2016 at 5:50:39 AM UTC+8, vess...@gmail.com wrote:I'm checking out Beancount for use in some financial forecasting for a mining business.The mining business works like this:1) Large capital expenditure2) Ongoing operating expenses3) Commodity is put into inventory4) Optionally the commodity is hedged5) Commodity is sold at some point.While there are different ways of booking a business like this, management generally wants to think of this in one of two ways:1) Cost Basis. The commodity is booked at cost (opex + depreciated capital expense).2) Market Basis: The commodity is booked at market value on day it's put into inventory.In either event, P&L and Balance Sheet reports will need to show mark-to-market adjustments for different periods so that the team can understand what the current value of the business is.During the planning process, the team would like to be able to assess FIFO, LIFO and AVCO inventory tracking methods for the commodity. But, that's not a requirement -- I understand that beancount has some of these features but don't understand how to use them.Can someone on this list opine as to how this should be booked in beancount? The sample I have put together doesn't seem to play nicely with beancount-web or fava on reporting, and I think I'm just too uneducated as to how beancount works to get a good file format together.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/c5fb86a0-70e4-4de8-b9ea-875fc6767bac%40googlegroups.com.
I have this working, and the working file recorded at the gist.Here are the things I needed to do:1) I reinstalled from a fresh mercurial pull and direct install. Previously I had used pip3. Not sure if this had an impact.
2) At least one version of my file had text open and close quotes (“ vs " ). This came from pasting text in the google docs document
3) I had specified currencies for each open account, I think this caused some problems.
4) I used the example bitcoin transactions in the book_conversions documentation as a template, (but beware the quotes!)
5) I had used cost basis notation in the purchase { 250 USD } and switched to the @ notation. This fixed the "positive and negative lots" error. I am not clear conceptually why this would be so. It seems to me that booking something at cost basis should not preclude it from being matched, so I would suggest this is a bug in the book_conversions plugin, but Martin could opine on this.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/7a2ce469-e10e-4d70-a469-7bcc516b7d86%40googlegroups.com.