polarmutex/fava-envelope

Not calculating opening balance with Equity for budget.

Opened this issue · 6 comments

I was expecting "Funds for month" to equal Assets-(Budgeted+Liabilities) but it seems to only check cash flow from income.
In the below example, I was expecting "Funds for month" to be 1000.00(Checking)+500.00(Saving)-250.00(Credit Card)+50.00(Income)+25.00(Transfer from non-budget asset) = 1325.00

Instead it only shows 50(Income), it shows 1250.00 in a "Equity:Opening-Balances" envelope, and I have no idea where the 25(Transfer from non-budget asset) went.

example.beancount.txt

I am working on adding tests, I will look into this further soon

since the Asset:Checking and Assets:Gold are budget accounts, the transaction is considered an internal transfer. Therefore would not effect the bucket totals. If you remove Assets:Gold from the budget accounts, it should show up

Ah I thought I had removed gold from the budget accounts good catch

really want to make this useful, let me know of any improvements you think of or pain points in using it. I am planning on adding more documentation and tests to help users set in up and understand what it is doing

Im not sure why this was closed? The Assets:Gold part was a mistake in the test file, but there is still 1275.00 USD in that example that isn't in the available funds.

I was expecting it to look more like this, not sure why I need the "2021-01-02 custom "envelope" "allocate" "Equity:Opening-Balances" -1275.00" line in order to budget all the assets in the budget accounts.
example.beancount.txt

sorry from the previous comment, I thought the issue was resolved