any option to get only one line per period in reg command

30 views
Skip to first unread message

lipp f

unread,
Oct 31, 2021, 5:21:45 PM10/31/21
to Ledger

$ ledger reg assets -X USD -V -Y --depth 0
2018-01-01 - 2018-12-31                    <Total>                              -11,830.39711137548 USD -11,830.3971113>
2019-01-01 - 2019-12-31                    <Adjustment>                         39,105.66995237366 USD 27,275.272840998>
                                           <Total>                              2,660.64248588508 USD 29,935.9153268832>
2020-01-01 - 2020-12-31                    <Adjustment>                         51,358.08272607256 USD 81,293.998052955>
                                           <Total>                              63,070.50167262155 USD 144,364.49972557>
2021-01-01 - 2021-12-31                    <Adjustment>                         113,134.05604686899 USD 257,498.5557724>
                                           <Total>                              52,336.54455432364 USD 309,835.10032677>
s

Jasel17212

unread,
Oct 31, 2021, 7:12:48 PM10/31/21
to Ledger
Try the following:

ledger reg ^assets ^exp --yearly --empty --collapse --no-revalued

Thanks
JL

lipp f

unread,
Oct 31, 2021, 9:47:21 PM10/31/21
to Ledger
It is not really what I am looking for. It calculates the balance column properly indeed but the register amount column is wrong. Instead of beeing the sum of all values per date period, it does not include the " <Adjustment>" rows. 

I would expect the balance column to be cumulative sum of register amount column and that is not happening.
Reply all
Reply to author
Forward
0 new messages