Bad formatting of balance reports when using different currencies #186

Closed
pavel-popov opened this Issue May 9, 2014 · 1 comment

Projects

None yet

2 participants

@pavel-popov

I tried to use simple journal with different currencies but with same account name. I have multiple accounts in different currencies in my bank which have the same name.

Example file is here: https://gist.github.com/schmooser/44b0ae5cdfea692ccc17
Output is this: https://gist.github.com/schmooser/00088f3b2b836ca73364

It obviously has wrong formatting of numbers.

Is it a bug or feature as accounts in different currencies should have different names?

@simonmichael
Owner

Thanks for the report. You're right, and I guess it's a bug. Multicolumn balance report (in particular) gets messed up when it has to display a multi-commodity balance. The tabular library it uses doesn't support multi-line cells. It could probably display multiple commodities on a single line, though the column could become very wide. A mockup of how it should render multiple commodities would be helpful.

Meanwhile, as a workaround I limit my multicolumn balance reports to one commodity at a time, eg:

hledger bal -M cur:\\$

@simonmichael simonmichael added a commit that closed this issue Jul 3, 2014
@simonmichael balance: show multi-commodity amts on one line (fixes #186)
To avoid totally breaking the layout of multicolumn balance reports when
there are multi-commodity balances, these are now rendered on a single
line, comma separated. Simple balance reports still use the old vertical
format for now.
16f8b78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment