Commit Graph

10003 Commits

Author SHA1 Message Date
Lawrence
0982e3343a test: bal: add functests for transpose and compound commands (#1654) 2021-08-19 17:37:33 -10:00
Lawrence
d7a56a9830 test: give descriptions to commodity-column functests (#1654)
Also renames the file for consistent naming with the flag
2021-08-19 17:37:32 -10:00
Lawrence
710823e5d7 imp: bal: handle commodity-column flag in compound balance reports (#1654) 2021-08-19 17:37:30 -10:00
Lawrence
277227acf8 fix: budget: handle transpose flag with commodity-columns (#1654)
Budget formatting is quite complicated since we must determine widths
for each of the transposed columns
2021-08-19 17:37:29 -10:00
Lawrence
a3c0c0cade fix: bal: handle transpose flag with commodity-columns (#1654)
The textual output needs to be fully transposed instead of just the cell
values. The multi-period csv handling code already does the right thing
so just use those values.

The change in CompoundBalanceCommand.hs is just to match signatures
since commodity-column is not yet enabled there.
2021-08-19 17:37:27 -10:00
Lawrence
44e1ea10fa fix: bal: correctly handle empty commodity in commodity-column (#1654)
We can't filter out empty commodity strings since that is a legitimate
group. Simultaneously, we should only include the empty commodity if it
is explicitly used (part of a posting) and not generated as part of
`Amounts.amounts`
2021-08-19 17:37:19 -10:00
Simon Michael
07eb3a9086 ci: tweak 2021-08-19 08:55:44 -10:00
Simon Michael
cf95fc7abf ci: tweak 2021-08-18 21:47:40 -10:00
Stephen Morgan
ddba9f6ce4 imp: lib,cli: Implement gain report for balance reports.
A gain report will report on unrealised gains by looking at the
difference between the valuation of an amount (by default, --value=end),
and the valuation of the cost of the amount.
2021-08-18 21:44:30 -10:00
Simon Michael
90612c1444 ci: tweak 2021-08-18 18:05:02 -10:00
Simon Michael
818e098b04 ci: handle another PR failure case; more debug output
"Skip remaining CI steps" now also handles git log failure, continuing on instead of failing. Getting pretty gnarly.
2021-08-18 17:39:46 -10:00
Simon Michael
88b1d3f78b ;bal: doc: add -f options; clarify depth limiting 2021-08-18 00:44:45 -10:00
Simon Michael
df6667232f ci: if git log fails, don't skip steps and succeed
Eg git log fails after force-push to a PR right now.
2021-08-17 22:05:29 -10:00
Arjen Langebaerd
3426030a91 feat: added commodity style commandline option 2021-08-17 22:05:29 -10:00
Simon Michael
b4c516c074 ;doc: period expressions: tweak 2021-08-17 09:17:15 -10:00
Simon Michael
881785c374 ;doc: period expressions: tweak 2021-08-17 09:00:55 -10:00
Simon Michael
7bfed72130 ;doc: period expressions: consistent layout 2021-08-17 08:58:44 -10:00
Simon Michael
1874a971dc ;doc: clarify period expressions, report intervals 2021-08-17 08:54:34 -10:00
Simon Michael
5c18fb289f ;dev: configure hlint, silence all current warnings 2021-08-11 14:51:46 -10:00
Simon Michael
b74aa78345 ;help: doc: clarify 2021-08-08 10:15:21 -10:00
Simon Michael
b43a5263cb ;doc: update manuals 2021-08-08 10:07:44 -10:00
Simon Michael
bfa2ac1dcf ;doc: update CLI usage texts 2021-08-08 10:07:01 -10:00
Simon Michael
9bef817db0 ;bal: doc: --commodity-column: fix link (#1626) 2021-08-08 10:04:52 -10:00
Simon Michael
ca474a8687 ;bal: doc: --commodity-column: fix csv example (#1626)
and make examples reproducible, why not.
2021-08-08 10:02:23 -10:00
Simon Michael
d06d4ca080 ;doc: update manuals 2021-08-08 09:39:20 -10:00
Simon Michael
04812682e8 ;doc: bump man page dates 2021-08-08 09:39:20 -10:00
Simon Michael
bf2e9f24b8 ;doc: update CLI usage texts 2021-08-08 09:39:20 -10:00
Simon Michael
30ea463060 imp: bal: doc: --commodity-column tweaks (#1626)
- promote the heading one level
- periodic CSV reports are supported too
- slight edits to manual and flag description
2021-08-08 09:39:09 -10:00
Lawrence
1be74a01ce fix: bal: handle oneline for custom format correctly
Previously would not actually display anything since the Cell's
WideBuilders are single-element list. Just dispatch to showMixedAmountB
to do the right thing.
2021-08-08 09:19:25 -10:00
Lawrence
5989ca0381 fix: skip budget grand total and average if they look zero
Makes them consistent with the remaining cells and fixes awkward
alignment issue in commodity-column mode where we don't display
anything
2021-08-08 09:19:25 -10:00
Lawrence
234caae557 doc: test: update for commodity-column
Add documentation and sample output for `--commodity-column` behavior
and functional tests e.g single-period balance, yearly balance, and
yearly budget
2021-08-08 09:19:25 -10:00
Lawrence
198d2211fc budget: option to view one commodity per row
Extension of commodity-column to budget reporting.
2021-08-08 09:19:25 -10:00
Lawrence Wu
f3c07144a8 bal: option to view one commodity per row
This adds the `--commodity-column` option that displays each commodity
on a separate line and the commodities themselves as a separate column.
The initial design considerations are at
simonmichael.hledger.issues.1559

The single-period balance report with `--commodity-column` does not
interoperate with custom formats.
2021-08-08 09:19:25 -10:00
Simon Michael
ed7ee7a445 ;doc: RELEASING: mention hledger-install 2021-08-08 07:49:17 -10:00
Simon Michael
6918178684 install: 1.22.2 2021-08-08 07:49:17 -10:00
Stephen Morgan
720fde3187 test: Add forecast transactions to aregister ordering test. 2021-08-07 14:15:19 -10:00
Simon Michael
8791246c4b ;doc: RELEASING 2021-08-07 13:42:53 -10:00
Simon Michael
39a2457d07 ;doc: RELEASING: updates 2021-08-07 13:07:24 -10:00
Simon Michael
c8e5673287 ;web: fix ci, haddock failure 2021-08-07 11:35:19 -10:00
Simon Michael
233b8c91cb ;doc: finalise 1.22.2 changelogs 2021-08-07 09:27:20 -10:00
Simon Michael
2e28c5a1ef ;doc: update changelogs 2021-08-07 09:20:20 -10:00
Simon Michael
31541bb98b ;make: tag-project: tag .99 only after major release 2021-08-07 09:17:13 -10:00
Simon Michael
07eca4e426 ;doc: RELEASING 2021-08-07 09:15:15 -10:00
Simon Michael
9bc77f87fc ;doc: changelogs 2021-08-06 17:26:37 -10:00
Simon Michael
981849a6c1 ;doc: changelogs 2021-08-06 00:16:20 -10:00
Simon Michael
000ff30fd6 ;make: tag-project: that .99 tag should be on master, only 2021-08-05 23:38:23 -10:00
Simon Michael
45c39b055b ;make: tag-project: also set a final .99 tag
This will influence git describe and improve the version strings of dev builds.
2021-08-05 23:27:25 -10:00
Simon Michael
49ff039312 lib: cli/ui/web: clarify version string code
version -> packageversion
versiondescription -> versionStringFor
2021-08-05 22:54:25 -10:00
Simon Michael
53f02c7b3d ;cabal: update cabal files 2021-08-05 22:04:38 -10:00
Simon Michael
33c5726a96 cli: require githash >=0.1.4.0, simplify version code 2021-08-05 22:04:20 -10:00