Commit Graph

13987 Commits

Author SHA1 Message Date
Simon Michael
da6df3702d ;ci: test step showing stack paths 2025-06-13 15:57:40 -10:00
Simon Michael
e9be7ea7f5 ;doc:add: edits 2025-06-13 12:31:56 -10:00
Simon Michael
1e9bd3c2c9 ;doc:add: edits 2025-06-13 12:26:34 -10:00
Simon Michael
e434c0101e ;doc:relnotes: 1.43.2 2025-06-13 12:05:20 -10:00
Simon Michael
d3c86bafdf ;doc: finalise changelogs for 1.43.2 on 2025-06-13 2025-06-13 12:05:20 -10:00
Simon Michael
cc95eca1ce ;doc: update changelogs 2025-06-13 12:05:20 -10:00
Simon Michael
e0fb08ee9b ;doc: REGRESSIONS 2025-06-13 11:31:19 -10:00
Simon Michael
9da947f3f5 ;doc:ghnightly:1.43.2 2025-06-13 11:28:05 -10:00
Simon Michael
3b1bd92cf2 ;doc: add: balance assignments: mention -I [#2406] 2025-06-13 10:29:23 -10:00
Simon Michael
5514c926b9 ;doc:ghnightly: go back to comparing with binaries branch
it's more reliable
2025-06-13 10:23:57 -10:00
Simon Michael
db6488ba95 ;doc:ghnightly: compare with nightly tag, not binaries branch 2025-06-13 10:02:39 -10:00
Simon Michael
e716c3f054 ;doc:dev 2025-06-13 09:35:26 -10:00
Simon Michael
b75a730250 ;tools: nightly-push: edits 2025-06-13 09:19:28 -10:00
Simon Michael
53120e86bc ;doc: update embedded manuals 2025-06-13 09:11:44 -10:00
Simon Michael
a823a719f2 ;tools:just: rename some nightly recipes 2025-06-13 09:10:54 -10:00
Simon Michael
bd2d8728d1 fix: txn balancing: fix logic for the 1.50 message [#2402]
and add more tests.
2025-06-13 09:10:46 -10:00
Simon Michael
3713a1b77b ;fix:doc:add: document balance assertions/assignments behaviour [#2406] 2025-06-13 07:36:45 -10:00
Simon Michael
8a03b2ee89 ;examples:csv:eternl.rules 2025-06-13 07:35:47 -10:00
Simon Michael
219f7a7ec3 ;doc: ghnightlynotes 2025-06-12 20:39:00 -10:00
Simon Michael
62e3b57564 ;dev:tests: add missing file 2025-06-12 19:41:10 -10:00
Simon Michael
986a55218b ;doc: update embedded manuals 2025-06-12 19:06:40 -10:00
Simon Michael
16fd84166a ;dev: cleanup 2025-06-12 18:48:48 -10:00
Simon Michael
57031b0e78 dev: rename exitOnError -> handleExit, improve doc 2025-06-12 18:48:10 -10:00
Simon Michael
0750a27d00 dev: ignore SIGPIPE errors from truncated output in a more robust way [#2405] 2025-06-12 18:36:41 -10:00
Simon Michael
c335f93bcb dev:tests: costs can affect display precision via implicit amounts 2025-06-12 18:17:03 -10:00
Simon Michael
005fe0557c dev: fix query-expr.test, broken by fix for #2407
I bypassed the CI tests that would have caught this.
2025-06-12 18:13:48 -10:00
Simon Michael
cda62d9a59 ;dev: change "1.44" to "1.50" in docs and error messages 2025-06-12 17:55:13 -10:00
Simon Michael
0d388a6f93 ;imp: show a more helpful error for transactions unbalanced by upgrade [#2402]
(and drop the last sentence from the single-commodity unbalanced
transaction error)
2025-06-12 17:55:13 -10:00
Simon Michael
868d535f3f ;doc: transaction balancing: doc rewrite [#2402] 2025-06-12 17:55:13 -10:00
Simon Michael
de4d637def dev: transaction balancing: cleanup [#2402] 2025-06-12 17:55:13 -10:00
Simon Michael
0252367de4 ;doc: Transaction balancing: update, mention migration workarounds
Also, for release notes:

Notably, the old behaviour could allow small remainders to accumulate over time, in accounts that (a) often have an inexact posting amount or cost amount and (b) are never reconciled (typically equity, revenues, and expenses).
You can check for this more easily now, eg with a command like

hledger bal cur:\\$ -c '$1.000000000000' | rg '\...0*[1-9]'

(Show account balances, limited to the $ currency, overriding $'s display style to show 12 decimal places, and filter that to just the lines with a non-zero decimal digit in the 3rd place or beyond.)
2025-06-12 17:55:13 -10:00
Simon Michael
bf90b20f2c imp: --txn-balancing flag to select transaction balancing precision [#2402] 2025-06-12 17:55:13 -10:00
Simon Michael
442bd24bc5 ;dev: commodityStyleFromRawOpts: cleanup 2025-06-12 17:55:13 -10:00
Simon Michael
21d403d45d ;dev: test showing formerly accepted inexact entry now rejected [#2402] 2025-06-12 17:55:13 -10:00
Simon Michael
9f93055782 ;dev: tests showing P and inferred amounts affecting display precision 2025-06-12 17:55:13 -10:00
Simon Michael
a9408b8cd5 imp:journal: balance transactions with local precisions [#2402] 2025-06-12 17:55:13 -10:00
Simon Michael
82ba831822 dev: move commodityStylesFromAmounts to Hledger.Data.Amount
Also drop canonicalStyleFrom, seems unused.
2025-06-12 17:55:13 -10:00
Simon Michael
157de7c34c ;doc:REGRESSIONS 2025-06-12 17:55:13 -10:00
Simon Michael
eb6b48dded fix:cli: don't raise an error if output is truncated in a pipe [#2405]
This broke in 1.43.

Now we ignore any IOException whose message contains "broken pipe".
Hopefully this matches pre-1.43 behaviour and doesn't hide real errors.
2025-06-12 17:55:13 -10:00
Simon Michael
001a0b9572 fix:areg: round all amounts to display precision again [#2407]
This broke in 1.32.
2025-06-12 17:55:13 -10:00
Simon Michael
8bda89c4ef ;doc:relnotes: fix issue link [#73] 2025-06-12 07:34:00 -10:00
Simon Michael
ad0c10cae1 ;doc:hledger: changelog, relnotes: mention improved decoding errors [#73] 2025-06-12 07:27:07 -10:00
Simon Michael
a21bafe87f ;doc: REGRESSIONS 2025-06-10 14:56:08 -10:00
Simon Michael
f12d3a473f ;doc: REGRESSIONS 2025-06-10 14:23:53 -10:00
Simon Michael
9cd8e632db ;doc: REGRESSIONS 2025-06-09 15:00:39 -10:00
Simon Michael
41e62885c4 dev: avoid a strange vscode/Haskell highlighting bug 2025-06-07 15:28:41 -10:00
Simon Michael
f49f9c35cd ;examples: vat.journal 2025-06-05 07:46:58 -10:00
Stephen Morgan
80cf1d1995 !dev: lib: Allow Account to store date-indexed balances.
This upgrades Account to enable it to store a multiperiod balance, with
a separate balance for each date period. This enables it do the hard
work in MultiBalanceReport.

Some new types are created to enable convenient operation of accounts.
- `BalanceData` is a type which stores an exclusive balance, inclusive
  balance, and number of postings. This was previously directly stored
  in Account, but is now factored into a separate data type.
- `PeriodData` is a container which stores date-indexed data, as well as
  pre-period data. In post cases, this represents the report spans,
  along with the historical data.
- Account becomes polymorphic, allowing customisation of the type of
  data it stores. This will usually be `BalanceData`, but in
  `BudgetReport` it can use `These BalanceData BalanceData` to store
  both actuals and budgets in the same structure. The data structure
  changes to contain a `PeriodData`, allowing multiperiod accounts.

Some minor changes are made to behaviour for consistency:
- --declared treats parent accounts consistently.
- --flat --empty ensures that implied accounts with no postings are not displayed, but
  accounts with zero balance and actual postings are.
2025-06-04 23:10:00 -10:00
Simon Michael
6f08c52f7f ;doc: COMMANDS: mention general options
I was trying to insert a mention/link next to each command's specific
flags, but it's too disruptive given the complex ways we reuse and
generate these docs.
2025-06-04 17:13:42 -10:00
Simon Michael
6fd60dde3d ;doc: fix mishighlighting in vscode 2025-06-04 17:13:09 -10:00