regdel icon indicating copy to clipboard operation
regdel copied to clipboard

Display balances in Accounts view

Open j3k0 opened this issue 8 years ago • 7 comments

This conflicts with the other PR (but fix is easy, see my own master branch).

As for multiple currency bug, I do use multiple currencies and it works fine for me (maybe it depends on ledger version?). If you have an example of a failing transaction I can try to do something about it.

I suppose forcing ledgers' output format would be less prone to incompatibility with future version too.

j3k0 avatar Nov 07 '16 17:11 j3k0

I still don't like this one much:

  • On my test files, it displays one line per currency for each account. I would rather have all the currencies amounts on the same line.
  • The branch does other things that should be done in a separate PR

guillaumechereau avatar Nov 07 '16 19:11 guillaumechereau

What I actually would like to get is an account view that could look somehow like this:

Accounts
Incomes           1,000 EUR + 2,500 USD
    Project A       500 EUR
    Project B       500 EUR
    Project C     2,500 USD

guillaumechereau avatar Nov 07 '16 19:11 guillaumechereau

OK, for the moment what I did is allow to move from the account view to the balance view (with 'b'). I think it would make sense to directly start from the balance view and totally remove the accounts view.

guillaumechereau avatar Nov 07 '16 20:11 guillaumechereau

I agree, no point for having both a view for seeing accounts without balances and one with balances.

j3k0 avatar Nov 07 '16 20:11 j3k0

It's been a while, but I think the reason I did like that at the time was because I wanted to see even empty accounts. Is there a way in ledger to show empty accounts in the balance report?

guillaumechereau avatar Nov 07 '16 21:11 guillaumechereau

Yes: balance with --empty flag

BTW I just tried your master branch, select doesn't work from the balance view.

j3k0 avatar Nov 07 '16 21:11 j3k0

I didn't know about --empty. I will see if I can use it. Yes I also need to implement the selection from the balance view. After that I guess we could remove the account view totally.

guillaumechereau avatar Nov 07 '16 21:11 guillaumechereau