'balancesheet' used to be a single function which extracted the relevant data,
combined it, generated the new data, formatted, and printed it out, with a return
type IO (). This edit parameterizes it more, makes it return the 3 kinds of data
as a 3-tuple (useful for callers), and splits out the formatting & printing to
a separate impure function 'balancesheetPrint'
…an balance, to report one's net balance; export more data (+assets and liability columns)
the existing use of 'balance' doesn't accurately indicate one's financial solvency or insolvency, which is gotten through balancesheet; since one is probably more interested in that than a running total of inputs (which can be gotten by summing), this is probably a better and less confusing default
hledger-register-csv.hs now accepts the same -H, -A and -r flags that
register does (but not -w, which wouldn't make sense).
Note: remember, when running add-ons with the hledger executable, most
add-on command flags must be preceded by --. So it's:
$ hledger register-csv -- -H
When posting amounts or the running total contain more than one
commodity, register-csv now prints them comma-separated on one line,
instead of on multiple lines breaking the CSV output.
This is may not be ideal for CSV consumers; alternatives include
failing with an error, adding columns for additional commodities,
ignoring all but one commodity.
Previously, a depth:0 query produced an empty report (since there are no
level zero accounts). Now, it aggregates all data into one summary item
with account name "...".
This makes it easier to see the kind of data Gwern was looking for from
register-csv (net worth over time). Eg this shows one line per month
summarising the total of assets and liabilities:
hledger register-csv -- -MHE ^assets ^liabilities depth:0
Single and multi-column balance reports behave similarly.