I am having trouble with hledger's balance sheet reporting and I think there's a bug in how the reports work.
For reference, I have a business I'm modeling, something like a gold mine where I get revenues directly in a commodity. The business has a hedging component, so it might hold or sell the commodity on any given day. It also has (dollar-denominated) expenses.
To test out the hedging strategy, I'm using hledger against a file to see what period balance sheet reports would be, and I want to incorporate the mark-to-market impacts of hedging or not.
The --value flag sounded good, but it does something very strange: the balance command books commodities at what looks like their final price in the journal.
Perusing this conversation https://groups.google.com/forum/#!topic/hledger/e8Ss7ZL4ADI makes me think that might have been the intent for the initial push on this very, very useful functionality. But, I might be doing something wrong -- let me know.
My lines in the ledger for pricing are like this: P 2015/03/16 AU 1200.23 implying a $1200.23 price per ounce of gold. There is one per day, and they are in order with other journal transactions.
My reasoning on why this is wrong is pretty simple: balance sheets / statements should never change based on future information. They are supposed to be an immutable record of the state of finances at a moment in time.
Am I understanding the current situation correctly, and if so, any thoughts on a fix? I'm a total haskell newbie but would be willing to give it a go if you pointed me in the right direction.
I am having trouble with hledger's balance sheet reporting and I think there's a bug in how the reports work.
For reference, I have a business I'm modeling, something like a gold mine where I get revenues directly in a commodity. The business has a hedging component, so it might hold or sell the commodity on any given day. It also has (dollar-denominated) expenses.
To test out the hedging strategy, I'm using hledger against a file to see what period balance sheet reports would be, and I want to incorporate the mark-to-market impacts of hedging or not.
The --value flag sounded good, but it does something very strange: the balance command books commodities at what looks like their final price in the journal.
Perusing this conversation https://groups.google.com/forum/#!topic/hledger/e8Ss7ZL4ADI makes me think that might have been the intent for the initial push on this very, very useful functionality. But, I might be doing something wrong -- let me know.
My lines in the ledger for pricing are like this:
P 2015/03/16 AU 1200.23implying a $1200.23 price per ounce of gold. There is one per day, and they are in order with other journal transactions.My reasoning on why this is wrong is pretty simple: balance sheets / statements should never change based on future information. They are supposed to be an immutable record of the state of finances at a moment in time.
Am I understanding the current situation correctly, and if so, any thoughts on a fix? I'm a total haskell newbie but would be willing to give it a go if you pointed me in the right direction.