Commit Graph

4328 Commits

Author SHA1 Message Date
Simon Michael
fe0d4fd3ec ;doc: changelogs 2025-09-16 04:24:00 -07:00
Stephen Morgan
f515c5f811 fix: balance: Don't display zero rows with --no-elide (#2454)
Zero rows with --no-elide should only be displayed if either --empty is
called or they have non-zero children at some depth.
2025-09-15 15:40:32 -07:00
Simon Michael
8c051f3af1 ;doc:Text encoding: updates 2025-09-13 15:08:13 +01:00
Simon Michael
3e449fe238 fix:setup: fix "undeclared commodities" whitespace 2025-09-13 14:35:59 +01:00
Simon Michael
8c4e2e08b6 ;cabal: update cabal files 2025-09-13 06:57:22 +01:00
Simon Michael
7ccc0d5bdd lib:Hledger.UI.ErrorScreen: rename, clarify uiReload*
uiReloadJournal -> uiReload
 uiReloadJournalIfChanged -> uiReloadIfFileChanged
2025-09-12 10:02:35 +01:00
Simon Michael
1d0ea95b9c ;doc:changelogs 2025-09-11 11:09:12 +01:00
Simon Michael
f731d3c25a lib!: Hledger.Cli.Utils: stop exporting pivotByOpts, anonymiseByOpts 2025-09-11 10:51:16 +01:00
Simon Michael
c19620f3bc lib!: refactor, rename
pivotByOpts -> maybePivot
anonymiseByOpts -> maybeWarnAboutAnon
2025-09-11 10:18:41 +01:00
Simon Michael
e64c26e603 lib!: rename withJournal -> withJournalDo, with alias and deprecation warning 2025-09-11 10:03:10 +01:00
Simon Michael
2c18614e7b ;dev: journalTransform notes 2025-09-11 09:58:24 +01:00
Simon Michael
ed5cf569b5 imp:print: alphabetise flags, mostly 2025-09-11 07:33:22 +01:00
Simon Michael
3a1e30255c fix:print: remove unused --show-costs flag from command line help 2025-09-11 07:33:22 +01:00
Simon Michael
eb9fa40d5b ;doc:valuation: edit 2025-09-11 07:33:22 +01:00
Stephen Morgan
aad61e465d fix: balance: Correctly handle empty journals (#2452)
Eliminate several partial functions.
2025-09-11 07:29:27 +01:00
Simon Michael
c79c66a740 ;doc:posting dates: link to legacy syntax 2025-09-06 07:03:05 +01:00
Simon Michael
99b60b0868 ;doc: changes, relnotes: move import stderr output to "Breaking changes" 2025-09-05 07:34:30 +01:00
Simon Michael
e2f5858916 ;doc: changes, relnotes: edit 2025-09-03 22:31:32 +01:00
Simon Michael
82552b4ea8 ;doc: update embedded manuals 2025-09-03 20:22:46 +01:00
Simon Michael
8be3e85676 ;cabal: update cabal files 2025-09-03 20:22:40 +01:00
Simon Michael
7ee721eab0 ;pkg: set version to 1.50.99 2025-09-03 20:22:40 +01:00
Simon Michael
dc84d54ae1 ;cabal: update cabal files 2025-09-03 20:07:41 +01:00
Simon Michael
39af7120e4 ;doc:csv:source: edit 2025-09-03 20:03:30 +01:00
Simon Michael
541e0ebf48 ;doc: finalise changelogs for 1.50 on 2025-09-03 2025-09-03 20:03:21 +01:00
Simon Michael
38116dce19 ;doc: update changelogs 2025-09-03 20:03:15 +01:00
Simon Michael
80e659b51c ;pkg: bump minimum supported GHC from 8.10.7 to 9.6 (and base 4.18)
System.IO.hGetContents' was the latest paper cut; I could keep
supporting ghc 8.10.7, or at least 9.0-9.4, released 2021-2023;
but feck it. Debian Stable has 9.6 and this time can be better spent.
2025-09-03 20:02:59 +01:00
Simon Michael
4f03d22501 ;pkg: update tested-with 2025-09-03 20:00:16 +01:00
Simon Michael
9d05d5d083 ;dev: note bitrotted error message tests 2025-09-01 08:57:27 +01:00
Simon Michael
65eb0b1f78 fix:timeclock: change misleadding error message in --old-timeclock mode 2025-09-01 08:49:11 +01:00
Simon Michael
9849f196cb fix:timeclock: process in parse order; fully support overlapping sessions [#2417]
We no longer attempt to process timeclock entries in time order - that
was a wrong requirement, probably given by me, that can't work.  Now
we just process them in parse order. This plus a little tweaking of
error checking fixes several ordering bugs with overlapping sessions
and also allows same-named overlapping sessions.

More cleanup will follow. More testing might show that --old-timeclock
is no longer needed.
2025-09-01 08:27:08 +01:00
Simon Michael
efe1d11edb fix:timeclock: --old-timeclock also affects included files [#2417]
This required changing the Reader type and passing InputOpts down to
journal's include directive parser.
2025-09-01 08:26:44 +01:00
Simon Michael
8bd9d92981 imp:timeclock: improve overlapping sessions error [#2417] 2025-09-01 06:03:26 +01:00
Simon Michael
04e6c140c0 imp:timeclock: more informative error output for clashing sessions [#2417] 2025-08-31 17:35:13 +01:00
Simon Michael
e6dbe5d231 fix:timeclock: sessions can begin at a same-named session's end time
Now we process entries in a more careful order: time, then parse
order, like journal format. This fixes the original issue and another
one mentioned at #2417.
2025-08-31 12:01:04 +01:00
Simon Michael
5a3e34cc55 imp:timeclock: syntax is more robust and featureful
The default timeclock parser (ie when not using --old-timeclock) has
the following changes, related to issues such as
[#2141], [#2365], [#2400], [#2417]:

- semicolon now always starts a comment; timeclock account names can't include semicolons
  (though journal account names still can)
- clock-in and clock-out entries now have different syntax
- clock-ins now require an account name
- clock-outs now can have a comment and tags
- the doc has been rewritten, and now mentions the --old-timeclock flag

- lib: accountnamep and modifiedaccountnamep now take a flag to allow semicolons or not
2025-08-31 10:58:37 +01:00
Simon Michael
0d0f2697de ;doc:timeclock: fix legacy anchor 2025-08-31 09:20:30 +01:00
Simon Michael
252f4bf13c ;dev:timeclock: tests cleanup 2025-08-31 09:20:30 +01:00
Stephen Morgan
db6714a120 fix: budget: Respect --summary-only flag. (#2443)
Budget reports will now respect the --summary-only flag.
2025-08-30 20:17:31 +01:00
Simon Michael
91b24df4b2 ;doc:csv:source: add data command examples 2025-08-28 21:38:38 +01:00
Simon Michael
7de0c0ac7a imp:import: show briefer no txns output, just file names 2025-08-28 21:38:38 +01:00
Simon Michael
97899f9a9b feat:csv: support data generating scripts
and rewrite the rules reader.
2025-08-28 21:38:38 +01:00
Simon Michael
cffee7f546 imp:import: avoid extra newline after output 2025-08-28 21:38:38 +01:00
Simon Michael
b22f94007f dev: source, archive, rules reader: improve docs 2025-08-28 21:38:38 +01:00
Simon Michael
b64ddfe813 dev:rules reader: drop "fall back to reading latest archived" 2025-08-28 21:38:38 +01:00
Simon Michael
c515fedf70 feat:csv: support data cleaning scripts 2025-08-28 21:38:38 +01:00
Simon Michael
c3e85ce9f7 dev: valuation tests cleanup 2025-08-28 17:26:42 +01:00
Simon Michael
c930fd0952 imp:end value reports: future P directives don't influence report end/valuation date [#2445]
In end-value reports with unspecified end date, a market price later
than the latest transaction can extend the default report end date and
valuation date. Now, only market prices on or before "today" can do this;
market price declarations dated in the future will be ignored.

Report span and valuation date calculations have been clarified.
2025-08-28 17:26:42 +01:00
Simon Michael
5c6ea2f56e ;doc:valuation: drop mention of old hledger-ui bug 2025-08-28 17:26:42 +01:00
Stephen Morgan
ef5c220690 fix: balance: Clip account names in generateMultiBalanceAccount, not before (#2434)
Previously accounts were clipped in getPostings, however compound
balance reports re-use the output of getPostings for the different
subreports. This caused a problem when clipping erased the information
needed to determine the account type, as would be used by e.g.
incomestatement.

Add some extra tests for --count.
2025-08-28 05:26:42 +01:00
Simon Michael
b5cb1d08d0 fix: add, commodities, diff: support the --conf and -n/--no-conf flags [#2446] 2025-08-26 14:01:48 +01:00