Help with bean-bake.

69 views
Skip to first unread message

mpl...@gmail.com

unread,
Apr 29, 2020, 8:49:41 PM4/29/20
to Beancount
Hi everyone!

I have several questions on bean-bake hope someone could help:

1. What's the argument for --first-month ?
"--first-month APRIL" and "--first-month APR" result in error
"--first-month 4" runs but does not make any difference, year still starts with Jan 01

2. What's the argument for --view ?
I tried:
"--view view/year/2018",
"--view year/2018"
"--view view/year/2018/journal/Income.html"
"--view year/2018/journal/Income.html"
does not work.

3. How difficult it will be to add function to bake files for specific period,
example "2019-04-01 - 2019-06-20" ?
Which files should i start looking into?

Thank you!

Martin Blais

unread,
May 2, 2020, 5:55:18 PM5/2/20
to Beancount
On Wed, Apr 29, 2020 at 8:49 PM <mpl...@gmail.com> wrote:
Hi everyone!

I have several questions on bean-bake hope someone could help:

Keep in mind in the responses below that
- bean-web is deprecated and new features will not be supported, 
- bean-bake is implemented mainly using bean-web,
- Fava should be used instead whenever possible.

 

1. What's the argument for --first-month ?
"--first-month APRIL" and "--first-month APR" result in error
"--first-month 4" runs but does not make any difference, year still starts with Jan 01

I don't recall implementing that (I think it was a submission), but I think it's intended to set the start of the annual filter (the start of the financial year).
After making the fixes I wrote down below, it seems to work, i was able to get a 2019-04 to 2020-04 year.
(Note: You need to follow the link to the index file in the archive. There's no link at the root)

 
2. What's the argument for --view ?
I tried:
"--view view/year/2018",
"--view year/2018"
"--view view/year/2018/journal/Income.html"
"--view year/2018/journal/Income.html"
does not work.

Indeed. I just make a quick fix for it.

  
3. How difficult it will be to add function to bake files for specific period,
example "2019-04-01 - 2019-06-20" ?
Which files should i start looking into?

Under beancount/beancount/web
I would not recommend it, I'd recommend reaching out to the Fava team instead, they may have a better solution to filter and bake files.
bean-web is deprecated, and by extension, I suppose that includes bean-bake.
If Fava doesn't support baking files for sharing, I'd like to suggest someone should build a tool that is purely focused on that (and does all kinds of special things just for sharing).

All future built-in support for Beancount reporting will be done via SQL client.
If there's a web front end in the future, it'll just be rendering the output of SQL statements and adding some whizbang. 
The current web app will be removed, and bean-bake will go eventually.

 

Thank you!

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/beancount/44cbaae0-ef8b-4ea6-a2f8-aa4f6c8f1998%40googlegroups.com.

kuba jamro

unread,
May 4, 2020, 6:21:07 AM5/4/20
to Beancount
If you are trying to get a view on the last UK tax year then I think you need can do that with Fava.

You need to add the following into your beancount file and then you can use FY2019 as the filter in the Fava web interface 

custom "fava-option" "fiscal-year-end" "04-05"

Alternatively you can just specify the dates in Fava manually for any period you like for intance
2019-04-2020-01 or 2019-04-06-2020-01 or 2019-2020 or 2019-2020-06 or any combination of Y(-M(-D)?)?-Y(-M(-D)?)?.

Kind regards,
Jakub.

mpl...@gmail.com

unread,
May 4, 2020, 4:42:12 PM5/4/20
to Beancount
Thank you for your reply. I see now, i was playing more with beancount query language and manged to cover most of things i need. (fava generate excel files for beancount queries, so i can export them easy)
Just want to say thank you for building great tool and easy to follow documentation ! Truly great project!
To unsubscribe from this group and stop receiving emails from it, send an email to bean...@googlegroups.com.

mpl...@gmail.com

unread,
May 4, 2020, 4:43:01 PM5/4/20
to Beancount
Thank you Jakub, i figured it out.
Reply all
Reply to author
Forward
0 new messages