polarmutex / fava-envelope

A beancount fava extension to add a envelope budgeting capability
MIT License
107 stars 17 forks source link

Not calculating opening balance with Equity for budget. #24

Open DelusionalAI opened 3 years ago

DelusionalAI commented 3 years ago

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

polarmutex commented 3 years ago

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

polarmutex commented 3 years ago

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

DelusionalAI commented 3 years ago

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

polarmutex commented 3 years ago

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

DelusionalAI commented 3 years ago

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

polarmutex commented 3 years ago

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