No plugins are necessary; this is all computed on the Balance Sheet view in Fava. You use the selector in the upper-right to switch between "At Cost", "At Market Value", and "Units". Using the example car transactions above, prior to the sale, the Balance Sheet would show:
- At Cost: 16,000 EUR (the original cost of the car plus -4,000 EUR of accumulated depreciation). - At Market Value: the same (16,000 EUR) *unless* you also had price entries for CAR.MAKEMODEL, which would then be the most recent price plus -4,000 EUR of accumulated depreciation. Above the current value, it would show in green or red the gain/loss from the current value (cost plus accumulated depreciation). - Units: 1 CAR.MAKEMODEL *and* -4,000 EUR of accumulated depreciation (the mixed commodities). - Robert On Monday, February 20, 2023 at 10:02:05 AM UTC-5 [email protected] wrote: > Robert, > > RE: *Fava's unrealized gain/loss report will show the PnL from the > balance sheet value (i.e. the cost plus accumulated depreciation or capital > improvements).* > > Can you please can you please point me to this *Fava's unrealized > gain/loss report. *I did some looking around, but could not find it. > > I can see, that there is a normal unrealized gains plugin > <https://github.com/beancount/beancount/blob/v2/beancount/plugins/unrealized.py>, > > but I understand you meant something else > > Regards. > > > On Saturday, February 11, 2023 at 6:18:28 PM UTC+1 Robert S wrote: > You would track a house the same way. Except most people do not depreciate > their homes, but instead spend money on capital improvements: > > 2022-01-01 * "House" "Purchase" > Assets:Bank:MyBank -500,000 EUR > Expenses:Property:AcquisitionFees 50,000 EUR > Assets:Property:Address 1 HOUSE.ADDRESS {450,000 EUR} > 2022-06-01 * "House" "New Roof" > Assets:Bank:MyBank -30,000 EUR > Assets:Property:Address 30,000 EUR > > The price of the house and the car both depend on the market; that's what > I mentioned at the bottom of my previous message. Any time you receive > market information about the current price of an asset, you can insert a > price directive for it: > > 2021-06-01 price CAR.MAKEMODEL 17,500 EUR > 2022-07-01 price HOUSE.ADDRESS 465,000 EUR > > Fava's unrealized gain/loss report will show the PnL from the balance > sheet value (i.e. the cost plus accumulated depreciation or capital > improvements). > > - Robert > > P.S. I also use a plugin to automate inserting the adjusting entries for > depreciation and amortization. I just wanted to illustrate the manual > process in my first reply. > > On Saturday, February 11, 2023 at 4:26:05 AM UTC-5 char wrote: > Ok, > > thank you very much for all your comments! > > But what about for instance buying a house? > > House can go up in price and it does depend on the market. > > How would you track buying the house? > > On Saturday, February 11, 2023 at 3:44:26 AM UTC+1 Red S wrote: > On Friday, February 10, 2023 at 4:48:15 PM UTC-8 Robert S wrote: > The transactions would look like: > > 2020-01-01 * "Car" "Purchase" > Assets:Bank:MyBank -20,000 EUR > Assets:Equipment:Vehicles 1 CAR.MAKEMODEL {20,000 EUR} > 2020-12-31 * "Car" "Depreciation Expense" > Assets:Equipment:Vehicles > Expenses:AccumulatedDepreciation 2,000 EUR > 2021-12-31 * "Car" "Depreciation Expense" > Assets:Equipment:Vehicles > Expenses:AccumulatedDepreciation 2,000 EUR > > Above is how I do it as well. I use the effective_date plugin > <https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/effective_date> > to > automate the above. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/7a3a05d2-e4ae-4c7c-b166-303701734a38n%40googlegroups.com.
