Commit Graph

3207 Commits

Author SHA1 Message Date
Simon Michael
605b3d6b94 imp:cli:Hledger.Cli.Version: export packagemajorversion 2023-10-21 03:36:04 +01:00
Simon Michael
7970ce7434 ;doc:areg,ui: note how separately-dated postings get combined 2023-10-19 10:24:47 +01:00
Simon Michael
661260f756 ;doc:print: cleanups (#2085) 2023-10-18 14:02:59 +01:00
Simon Michael
2f5feffa74 ;doc:CHANGES: document print and zero-rendering changes (#2085) 2023-10-18 13:56:24 +01:00
Simon Michael
5a72b9e9ea feat:print: add --round option for more control of precisions (#2085) 2023-10-18 13:56:24 +01:00
Simon Michael
c13c13ab1f lib!: use styleAmounts in more places; add rounding strategies 2023-10-18 13:56:24 +01:00
Simon Michael
f8027abb44 dev:print: refactor, add AmountStyle "rounding strategy"
Changes to enable more control of "rounding" behaviour
(ie, choosing display precisions for amounts).

This reverts 1.31's change of asprecision, making it a non-Maybe
again, and adds a new asrounding field providing more control over how
a target display precision is applied to existing amounts (two options
for now, more later). Functionality is in an interim state (reports do
no rounding).
2023-10-18 13:56:24 +01:00
Simon Michael
9ead8a64e1 fix:timedot: parse unitful quantities more accurately (fix #2096)
A quantity with a unit like "15m" was being parsed internally as
0.249999999... rather than 0.25 (and since hledger 1.21, printed that
way also). Now we round such quantities to two places during parsing,
to get exact quarter-hour amounts.
2023-10-17 12:05:10 +01:00
Simon Michael
72ef9186ba ;doc:journal: rewrite Commodity display style 2023-10-17 11:46:00 +01:00
Simon Michael
e8da1f9f25 fix: balance-assigned amounts affect styles again (fix #2091) 2023-10-14 08:38:20 +01:00
Simon Michael
0bfd7f66b0 ;doc:troubleshooting: nix locale config (#2089) 2023-10-10 12:14:06 +01:00
Simon Michael
c577fa809b ;doc: csv: negative matchers (#2088) 2023-10-09 20:54:55 +01:00
Stephen Morgan
20132e892b feat: balance: Add summary-only flag (#1012)
Add a flag --summary-only for multi-column balance reports, which does
not display the main date columns for a report, but only displays the
summary columns (--row-total, --average). This is useful when there are
many columns (a weekly summary over many years) where you're only
interested in the average (or some other summary).
2023-10-06 05:25:26 +01:00
Simon Michael
bdf292b377 ;cabal: update cabal files 2023-10-04 10:03:35 +01:00
Simon Michael
fffae7f578 ;doc: main module haddock cleanups 2023-10-04 10:03:35 +01:00
Simon Michael
40037afaf1 lib!: export less from cli and web packages, and more from ui 2023-10-04 10:03:35 +01:00
Simon Michael
0e98f73e30 dev:cli: merge Hledger.Cli.Main with Hledger.Cli 2023-10-04 10:03:35 +01:00
Simon Michael
1ef48fd7a5 fix: failing balance assertions with cost show correct highlight #2083 2023-09-11 10:11:24 +01:00
Simon Michael
4a2da0ba1b ;doc:journal: clarify valuation date, note bug #2084 2023-09-11 10:10:49 +01:00
Simon Michael
549823a783 ;doc: update manuals 2023-09-11 09:57:30 +01:00
Simon Michael
8666cc5391 ;doc: update command help 2023-09-11 09:57:02 +01:00
Simon Michael
ce41252998 ;cabal: update cabal files 2023-09-11 09:56:35 +01:00
Simon Michael
6f7c331ace ;pkg: bump version to 1.31.99 2023-09-11 09:56:34 +01:00
Simon Michael
50d4555860 ;doc: merge 1.31 changelogs 2023-09-11 09:55:38 +01:00
Simon Michael
9c4235bf88 pkg: allow megaparsec 9.5 2023-09-03 08:23:43 +01:00
Simon Michael
aa7b329e3a ;errors: balance assertion: wording 2023-09-03 08:23:43 +01:00
Simon Michael
c215f920aa dev: update tests 2023-09-02 06:46:14 +01:00
Simon Michael
644635b918 imp: print: show a disambiguating decimal mark when needed
Eg "1,000" (with , as a thousands separator and no decimal digits) is
now displayed with a decimal mark: "1,000.".

"1 000" (where space is a thousands separator) is less ambiguous,
but we do the same thing (eg "1 000.") for consistency, and also to
help disambiguate when forgetting to quote a numeric commodity symbol
(eg "1234 0" where 1234 is a symbol that should have been in double quotes).
2023-09-02 06:46:14 +01:00
Simon Michael
4bd0dd7ab0 fix: print: don't round in implicit conversions (fix #2079) 2023-09-02 06:46:14 +01:00
Simon Michael
fd97c40266 lib: amount styling: add a final styling pass to all reports 2023-09-02 06:46:14 +01:00
Simon Michael
85845e51b2 dev: AmountStyle: rename, reorder fields more mnemonically
Since this type is about to change anyway.
2023-09-02 06:46:14 +01:00
Simon Michael
00a8abd46d dev: commodity-styles tests: cleanup 2023-09-02 06:46:14 +01:00
Simon Michael
ff730f775b imp:print: zero posting amounts are now shown with commodity & style
print now shows zero posting amounts with their original commodity
symbol and the corresponding style (instead of stripping the symbol).

If an inferred amount has multiple zeroes in different commodities,
a posting is displayed for each of these.

Possible breaking changes:

showMixedAmountLinesB, showAmountB, showAmountPrice now preserve
commodityful zeroes when rendering. This is intended to improve print output,
but it seems possible it might also affect balance and register reports,
though our tests show no change in those.
2023-08-27 07:34:09 +01:00
Dmitry Astapov
c20ebae26d ;doc:roi: mention annualization differences, clean up TWR section 2023-08-24 18:42:52 +01:00
Simon Michael
50f26c280e ;doc:check: cleanup 2023-08-22 09:56:25 +01:00
Simon Michael
ea55c75c2e ;doc:journal:include: fix data formats link 2023-08-22 09:56:08 +01:00
Simon Michael
df9917be57 ;doc:bal: note an issue with the no-symbol commodity and hledger-bar 2023-08-22 08:45:13 +01:00
Simon Michael
115b639ec2 ;doc: update manuals 2023-08-22 08:41:22 +01:00
Simon Michael
95b67ef86b ;doc: update command help 2023-08-22 08:40:46 +01:00
Simon Michael
5f1bf0404a imp:check: more intuitive "balanced..." check names
balancedwithautoconversion -> autobalanced
balancednoautoconversion   -> balanced
2023-08-22 08:38:52 +01:00
Simon Michael
273c51165e ;dev: prepare for renaming balanced checks 2023-08-22 08:04:40 +01:00
Simon Michael
9579b7a4a6 ;imp:cli:help: move test to HELP 2023-08-22 07:35:57 +01:00
Simon Michael
e849a73aa8 ;imp:cli:help: move files to BASIC REPORTS 2023-08-22 07:29:32 +01:00
Simon Michael
dd559226d8 imp:demo: ignore a broken journal, like other HELP commands 2023-08-22 07:11:53 +01:00
Simon Michael
6a12ff1232 ;doc:csv: clarify intra-day-reversed 2023-08-14 13:17:51 +01:00
Dmitry Astapov
588d0dfd26 fix:cli:roi: report TWR per period and overall TWR for multi-period reports (fix #2068) 2023-08-01 14:35:33 -04:00
Simon Michael
f7dbfcf657 fix:cli:commands list: don't show bar when not in path (fix #2065) 2023-07-20 12:04:27 -07:00
Simon Michael
e1723b7d3b ;doc:csv: rewrite "amount field" section 2023-07-17 15:55:03 -10:00
Simon Michael
c1c28aea3f imp:journal: match equity conversion postings more tolerantly (fix #2041)
Equity conversion postings and cost amounts were being matched up too
exactly, causing valid entries with redundant conversion postings and
costs to be rejected. Now the amounts are compared with the precision
(number of decimal places) used in the conversion posting's amount.
Eg, here the first posting's 209.60495 GEL cost is recognised as a
match for the third posting's -209.60 GEL, using the latter's two
digit precision:

    2023-01-01
        Assets               -84.01 USD @ 2.495 GEL  ; 209.60495 GEL
        Equity:Conversion     84.01 USD
        Equity:Conversion   -209.60 GEL
        Assets               209.60 GEL
2023-07-15 16:21:00 -10:00
Simon Michael
c63fba88b6 ;doc: "Cost reporting" capitalisation 2023-07-15 16:09:18 -10:00