Skip to content

1.21: Totals column misaligned in aregister when multiple commodities present. #1656

Description

@Xitian9
$ hledger -f examples/bcexample.hledger areg assets -w 80 -e 2012-01-05
Transactions in Assets and subaccounts:
2012-01-01 "Opening..  Eq:Openi..      3077.70 USD                   3077.70 USD
2012-01-01 "Allowed..  In:US:Fe..  17000.00 IRAUSD               17000.00 IRAUSD
                                                      3077.70 USD
2012-01-04 "BANK FE..  Ex:Fi:Fees        -4.00 USD               17000.00 IRAUSD
                                                      3073.70 USD

The misalignment actually gets quite severe in some cases, and in fact seems to align itself with the amounts column eventually, which is very confusing.

$ hledger -f examples/bcexample.hledger areg assets -w 80 -e 2012-01-10
Transactions in Assets and subaccounts:
2012-01-01 ..  E..                     3077.70 USD                   3077.70 USD
2012-01-01 ..  I..                 17000.00 IRAUSD               17000.00 IRAUSD
                                       3077.70 USD
2012-01-04 ..  E..                       -4.00 USD               17000.00 IRAUSD
                                       3073.70 USD
2012-01-05 ..  E..                 -1200.00 IRAUSD               15800.00 IRAUSD
                                       2550.60 USD                   5624.30 USD
                                        4.62 VACHR                    4.62 VACHR
2012-01-06 ..  E..                    -2400.00 USD               15800.00 IRAUSD
                                       3224.30 USD
                                        4.62 VACHR
2012-01-06 ..  I..                      600.00 USD               15800.00 IRAUSD
                                       3824.30 USD
                                        4.62 VACHR
2012-01-08 ..  E..                      -65.00 USD               15800.00 IRAUSD
                                       3759.30 USD
                                        4.62 VACHR
2012-01-08 ..  L..                     -140.36 USD               15800.00 IRAUSD
                                       3618.94 USD
                                        4.62 VACHR
2012-01-09 ..  A..                     -480.03 USD               15800.00 IRAUSD
                              4.862000000000 VBMPX                   3138.91 USD
                                        4.62 VACHR
                              4.862000000000 VBMPX
2012-01-09 ..  A..            6.273000000000 RGAGX               15800.00 IRAUSD
                                       -720.01 USD          6.273000000000 RGAGX
                                       2418.90 USD
                                        4.62 VACHR
                              4.862000000000 VBMPX
2012-01-09 ..  A..                     -240.01 USD               15800.00 IRAUSD
                              2.431000000000 VBMPX          6.273000000000 RGAGX
                                       2178.89 USD
                                        4.62 VACHR
                              7.293000000000 VBMPX
2012-01-09 ..  A..            3.136000000000 RGAGX               15800.00 IRAUSD
                                       -359.95 USD          9.409000000000 RGAGX
                                       1818.94 USD
                                        4.62 VACHR
                              7.293000000000 VBMPX

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.aregisterbountyThar's some kind o' loot on offer..regressionA backwards step, indicating a weakness in our QA. We don't like these.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions