Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Alan Hawrylyshen
    @muonzoo
    Likely because your price data is from the same day ? Double checking
    There is also a useful plugin called ‘auto’ that will skip you needing to declare and open all accounts / commodities - I don’t recommend it for your real ledger but it is useful for testing / examples.
    The examples we are working on now are just beancount - no fava.
    sm
    @simonmic:matrix.org
    [m]
    right, I meant is this channel for beancount and fava both ? I have assumed that from the name
    Alan Hawrylyshen
    @muonzoo
    It might be :-) but I assumed that it was named after the respository (beancount/fava vs beancount/beancount) I think you are more likely to be correct. :-)

    Looking more closely I see that you are doing something ‘unusual’ perhaps this is your point but you are purchasing ‘AAA’ using currency BBB but you’ve priced it in ‘CCC’.

    If you use implicit prices (which is another plugin) bean count will auto generate a price from the purchase transaction that makes things work as you might expect.

    plugin "beancount.plugins.auto"
    
    2022-01-01 price AAA  3 CCC
    ;2022-01-01 open Assets:Aaa AAA
    ;2022-01-01 open Equity:Eee ; no comoddity - can hold anything
    2022-01-01 * ""
        Assets:Aaa        1 AAA {2 BBB}
        Equity:Eee
    bean-report /tmp/t2.bean holdings
    Account     Units  Currency  Cost Currency  Average Cost  Price  Book Value  Market Value
    ----------  -----  --------  -------------  ------------  -----  ----------  ------------
    Assets:Aaa   1.00       AAA            BBB          2.00   2.00        2.00          2.00
    ----------  -----  --------  -------------  ------------  -----  ----------  ------------
    Alan Hawrylyshen
    @muonzoo
    Why? Because the auto plugin added a price from the purchase. (Here what bean-report /tmp/t2.bean print has to say about it.)
    This is the directive stream that bean count ‘saw’
    2022-01-01 open Assets:Aaa
    2022-01-01 open Equity:Eee
    
    2022-01-01 price AAA                                     3 CCC
    
    2022-01-01 * 
      Assets:Aaa   1 AAA {2 BBB, 2022-01-01}
      Equity:Eee  -2 BBB
    
    2022-01-01 price AAA                                     2 BBB
      __implicit_prices__: "from_cost"
    Now there is pricing data so it can report on the market value in the commodity pair used to buy the inventory lot.
    sm
    @simonmic:matrix.org
    [m]
    yes, I'm not doing anything realistic here - was just trying to write a doc showing cost/valuation in all 3 apps, IIRC
    using vanilla beancount
    I did try staggering the dates, it didn't seem to make a difference. Just curious, I saw that it worked for you
    that's a good point about the room name possibly coming from owner/repo, I never thought of that
    who would be the room admin / fava maintainer ? can't quite tell from the matrix side..
    ah @yagebu I think. Hi Jakob, could you clarify - is this room intended for both beancount and fava, or mainly fava ?
    Alan Hawrylyshen
    @muonzoo
    You can use the examples above and the holdings report to likely get what you need / want from bean count. Honestly I rarely use the bean-report function other than print and frequently write my own BeanSQL queries (and keep them in my ledger) for reporting / taxes/ etc.
    And 99% of the time; I just use Fava with time-filtering and one of the cost/value/currency choices for the reporting
    sm
    @simonmic:matrix.org
    [m]
    so... basically all bean counters mainly use fava ? plus a bit of beansql for custom reports ?
    gary
    @garyp:matrix.org
    [m]
    I can't speak for all beancount users. But whenever someone has a reporting-related question on the beancount mailing list, the recommended solution is usually a BQL query.
    sm
    @simonmic:matrix.org
    [m]
    what's the ux for that then ?
    gary
    @garyp:matrix.org
    [m]
    A bean-query CLI command, like the example that tario posted above.
    sm
    @simonmic:matrix.org
    [m]
    i'm in no way attached to bean-report. I literally can't figure out the beancount cli story
    I see, thanks
    gary
    @garyp:matrix.org
    [m]
    Fava also allows running arbitrary BQL queries and prints the results in a table within the fava UI.
    sm
    @simonmic:matrix.org
    [m]
    nice
    gary
    @garyp:matrix.org
    [m]
    And you can add frequently-used queries to your beancount ledger and give them a name. Then you can execute the query by name instead of always copy & pasting the BQL.
    Though I find the ability to name your queries of limited use in practice because there's no support for parameterizing the query. For example, usually I want to run the query over a parameterized set of dates. But the named queries still have their uses.
    sm
    @simonmic:matrix.org
    [m]
    good info, thanks
    I feel a guide to beancount for h/ledger users would be quite useful, but I'm not sure it exists
    or even some command examples on https://plaintextaccounting.org/quickref/
    gary
    @garyp:matrix.org
    [m]
    sm: I agree that a comparison of frequently used commands / how to accomplish common tasks with each ledger-like would be very valuable on that page.
    Dan Nemenyi
    @danielnemenyi
    Hi everyone, is there a recommended way to publish a Fava site online as a read-only document? I guess specifically without any editing or import options?
    Alan Hawrylyshen
    @muonzoo
    Given that it is an application this would almost certainly be a container hosting of some sort and just make the underlying file readonly?
    For me the challenge has been ensuring that the fava and underlying bean count in the container has all the plugins that I setup in my local beancount environment.
    Alan Hawrylyshen
    @muonzoo
    One way to work around that might be to run bean-report file.beancount print in your local env and feed that to the fava container which (in theory) would no longer require any plugins to operate.
    tario
    @patrick:matrix.tario.org
    [m]
    I'm just building a docker container with all the plugins I need, if you already have a base container it should more or less boil down to a pip install of the additional plugins
    that's the repo I'm using: https://github.com/tarioch/docker-fava
    the ghostscript and mesa stuff is only for some plugins which parse pdf files
    (importers)
    Dan Nemenyi
    @danielnemenyi
    Many thanks!
    yusf
    @yusf:gottsnack.net
    [m]
    Any idea why some numbers are rendered as low res bitmaps when printing to PDF? 🖨️ 📄
    Seems like a Firefox issue. macOS Safari renders it correctly.
    yusf
    @yusf:gottsnack.net
    [m]
    Any idea why all the Fava plugins renders like this for me?
    3 replies
    yusf
    @yusf:gottsnack.net
    [m]
    Btw big thanks to the fine people developing Fava, enabling me to lean into PTA ❤️
    yusf
    @yusf:gottsnack.net
    [m]
    Gonna try it in a VM 🤷
    yusf
    @yusf:gottsnack.net
    [m]
    Seems like I used a bad fava package (brew)
    yusf
    @yusf:gottsnack.net
    [m]
    Is there a way to modify CORS settings for the Fava server?