Commit Graph

12729 Commits

Author SHA1 Message Date
Simon Michael
861a57ebf3 ;doc:code blocks: language types 2024-03-02 12:10:27 -10:00
Simon Michael
f20457e2af ;doc:manuals: code block language type 2024-03-02 11:53:51 -10:00
Simon Michael
b605b5bfd5 ;doc:manuals: fix some code block language types 2024-03-02 11:50:10 -10:00
Jonathan Dowland
3b416a76ef ;cln:import: clarify haddock for getEffectiveAssignment
Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-03-02 20:56:35 +00:00
Simon Michael
ee0c36dfde ;tools: bump snapshot/ghc versions 2024-03-02 10:06:35 -10:00
Simon Michael
63938f1da1 ;just:format: be silent if there's no changes to commit 2024-03-02 07:47:05 -10:00
Simon Michael
a59df34a5b ;just: cleanup 2024-03-02 07:36:43 -10:00
Simon Michael
46b0c9bacf ;just: format 2024-03-02 07:32:48 -10:00
Simon Michael
bf7b00819b ;just: tidy up 2024-03-02 07:31:42 -10:00
Simon Michael
cb0b054df7 doc:web: mention -E flag, and cost hiding, and zero balances that aren't [#2140] 2024-03-01 23:09:27 -10:00
Simon Michael
bac7171454 imp:web: show zero amounts with their commodity symbol(s?) [#2140]
This was mainly to make the sidebar more informative,
but also affects and hopefully helps, all amounts displayed elsewhere.
2024-03-01 22:51:48 -10:00
Simon Michael
7e3b205309 dev:web: give amounts in the sidebar the "amount" class also 2024-03-01 22:24:06 -10:00
Simon Michael
805fa67a28 ;tools:buglist: improvements 2024-03-01 22:23:17 -10:00
Simon Michael
8d9ce2abf9 ;just:push: allow custom poll interval argument 2024-03-01 18:13:30 -10:00
Simon Michael
3ca208a3b6 fix:queries: fix OR-ing open-ended dates, spanUnion; add spanExtend [#2177] 2024-03-01 18:10:24 -10:00
Simon Michael
b7d7dda463 dev: rename query-expr.test 2024-03-01 18:09:34 -10:00
Simon Michael
afd009db9e ;doc: update command help 2024-03-01 18:09:34 -10:00
Simon Michael
7db8e01200 imp:stats: with multiple reports, add a blank line before runtime stats 2024-03-01 18:09:34 -10:00
Simon Michael
c24054455f imp:stats: be more private by default; update doc
The old details (file paths, commodity names) can be shown
with -v/--verbose.
2024-03-01 09:03:57 -10:00
Simon Michael
0c44eddd4c imp:stats: more compact sub-80-width output 2024-03-01 08:09:51 -10:00
Jonathan Dowland
c5079d4f1e dev:import: call hledgerFieldValue rather than re-implementing it
Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-03-01 18:02:29 +00:00
Jonathan Dowland
1424a1f2f1 ;cln:import: update some Haddock strings to reflect #2158
Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-03-01 17:58:28 +00:00
Simon Michael
7e28e38bbc ;doc:balance: cleanups 2024-02-29 23:13:23 -10:00
Simon Michael
d8f86a9b7d ;doc:balance: updates, cleanups 2024-02-29 22:56:23 -10:00
Simon Michael
67f027de33 ;doc:journal:transaction balancing, commodity directive: simplify 2024-02-29 19:23:31 -10:00
Simon Michael
babaf70932 ;doc:journal:transaction balancing, commodity directive: highlight #2135 2024-02-29 19:09:39 -10:00
Simon Michael
3e93b69c25 ;doc:balance: consolidated --related/-r doc 2024-02-29 18:14:52 -10:00
Simon Michael
39a0a4d08a ;doc:journal:valuation: cleanups 2024-02-29 18:00:10 -10:00
Simon Michael
24571f99e0 ;doc:journal: drop redundant/wrong Querying with cost or value section 2024-02-29 17:48:22 -10:00
Simon Michael
1a7523d16e ;doc:journal: move complex discussion of other lot notations later 2024-02-29 17:09:09 -10:00
Simon Michael
158e0850fd ;doc:journal:directives: fix formatting 2024-02-29 16:56:22 -10:00
Simon Michael
b39948a3dd ;doc:journal: move complex discussion of commodity styles later 2024-02-29 16:53:20 -10:00
Simon Michael
256294101d ;doc:journal:Digit group marks: simplify, don't encourage mad unicode spaces 2024-02-29 16:35:45 -10:00
Simon Michael
ed3dc344fc ;doc:journal: split Decimal marks, Digit group marks 2024-02-29 16:31:26 -10:00
Simon Michael
81f9b51967 ;doc:journal: edits 2024-02-29 16:16:23 -10:00
Simon Michael
d0c0a3f72c ;doc:journal:transaction balancing: edits 2024-02-29 16:12:32 -10:00
Simon Michael
8225b3dcef ;doc:journal:commodity directive: clarify & fix scope of effects (#2135) 2024-02-29 16:06:46 -10:00
Simon Michael
90c824adaa ;doc:journal:transactions: typo 2024-02-29 15:34:48 -10:00
Simon Michael
86ba7cc3a3 ;doc:journal:amounts/commodities/numbers: cleanup 2024-02-29 15:31:44 -10:00
Simon Michael
62151d679e ;doc:journal: move intro before cheatsheet 2024-02-29 15:05:41 -10:00
Simon Michael
2ccbb16f07 ;doc:journal:transactions: explain transaction balancing (#2135) 2024-02-29 14:52:52 -10:00
Simon Michael
a6db6762ac ;doc:journal:transactions: edits; mention debits and credits and sign 2024-02-29 14:52:19 -10:00
Simon Michael
1ee0e80719 imp:errors:unbalanced transaction: show more precise amounts (#2135)
Like we used to in 1.30, but better (show all available decimal digits,
unless they're infinite in which case show 8, show trailing zeros,
show commodity symbol with zero).
2024-02-29 12:34:17 -10:00
Simon Michael
3ec432bd53 dev: rename/improve amountSetFullPrecisionUpTo, add mixedAmountSetFullPrecisionUpTo 2024-02-29 12:31:07 -10:00
Jonathan Dowland
71684f5611 ref:import: simplify renderTemplate and friends
renderTemplate and its ancillary functions did not need the
HledgerFieldName argument, so remove it.

Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-29 21:44:42 +00:00
Jonathan Dowland
b7027c8bbb feat:import: resolve matchgroup references in ConditionalBlock scope (#2158)
Adjust getEffectiveAssignment to compute an intermediary form of the
active assignments (with an additional Either wrapper to distinguish
top-level and conditional assignments) and move the remaining work to
its only caller, hledgerField.

Rework hledgerFieldValue. Instead of calling hledgerField, call
getEffectiveAssignment and--in the conditional block case--construct
a CsvRules scoped just to the active ConditionalBlock before calling
renderTemplate.

Adjust regexMatchValue to use rconditionalblocks to access conditional
blocks from the CsvRules, rather than rblocksassigning, since we haven't
narrowed the scope of that field.

The result is match group references are only expanded for match groups
that occur within the in-scope ConditionalBlock. Fixes: #2158.

Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-29 21:44:40 +00:00
Jonathan Dowland
ac7f726282 ;ref:import: consistently use hledgerField
hledgerField is an alias to the function getEffectiveAssignment: both
names are used in various parts of RulesReader.

Treat hledgerField as the canonical name, and getEffectiveAssignment
as an implementation detail of hledgerField.

Replace all uses of getEffectiveAssignment with hledgerField (except the
one in hledgerField.)

Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-29 21:44:39 +00:00
Jonathan Dowland
8b14022d97 ;test:import: update matchgroup functest for #2158
Also re-format the comments. Some of the comments within the conditional
blocks were actually being parsed as case-insensitive regexes to match
against each record. Luckily this didn't impact the results.

Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-29 21:44:38 +00:00
Jonathan Dowland
8f514ac16d ;test:import: test case for match groups (#2158)
Add a test which captures the issue of overlapping scope described
in GitHub issue #2158.

Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-29 21:44:36 +00:00
Jonathan Dowland
7e06e0caeb ;dev:ghc-tags: ignore hledger/test/addons
Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-29 21:44:35 +00:00