Re: Does beancount expect entries to be sorted by date?

2021-12-13 Thread Martin Blais
A lot of the internal API functions do assume sorted inputs throughout (which is done by the parser, didn't really plan for a lot of API users TBH). Not sure about this one, I'd have to review the source. You can call beancount.core.data.sorted(entries) to do the same Beancount does internally.

Does beancount expect entries to be sorted by date?

2021-12-13 Thread vijayvithal jahagirdar
I have a script which does the following: . entries.extend(calc_depreciation(entries)) balance= balance_by_account(entries date=datetime.date(2018,4,1) ) ... This results in a set of transactions like 2017 2018 2019 ... 2020 ... 2017 "depreciation For Asset class X" 2017

Re: bql subtract Amounts?

2021-12-13 Thread Martin Blais
I don't think it's supported; you can try adding it (in branch master), should be easy, just check the currencies match On Mon, Dec 13, 2021 at 9:13 PM Ben L wrote: > Is there a way to subtract Amounts (same currency) in bql? > > select cost(position) - value(position); > > I get: > >

bql subtract Amounts?

2021-12-13 Thread Ben L
Is there a way to subtract Amounts (same currency) in bql? select cost(position) - value(position); I get: TypeError: unsupported operand type(s) for -: 'Amount' and 'Amount' I can structure the query so the results are only one currency. Is there a function that will report an Amount as

Re: Fava Account View

2021-12-13 Thread Aaron Lindsay
This is something I have desired as well (but also have not found a great way to do through Fava). Another use case I've encountered is that I would like to more easily be able to view all of my 'Expenses' account group *except* for 'Expenses:Taxes' since income taxes are more tied to income

Fava Account View

2021-12-13 Thread Scott
New Fava/Beancount user here, and I'm really appreciating all the work that went into this software. In Fava, you can get an account view by selecting an account from the hierarchy. Then you'll be able to see a journal, changes (per period), or balances (per period). The breadcrumbs in the