Commit Graph

13970 Commits

Author SHA1 Message Date
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
Simon Michael
9754abfe49 ;doc: update embedded manuals 2025-06-04 16:51:48 -10:00
Simon Michael
fcb1b4ed1c imp:cli: simplify flag group titles 2025-06-04 15:25:27 -10:00
Simon Michael
f1c4fed1a7 ;doc:ISSUES: update links 2025-06-04 14:33:39 -10:00
Simon Michael
2f564cd1df ;tools: add/improve relver, nightlytag, devtag 2025-06-04 12:42:05 -10:00
Simon Michael
4240d6b017 ;doc: ghnightly description 2025-06-04 12:17:26 -10:00
Simon Michael
f8d50fcb53 ;doc: ghnightly description 2025-06-04 12:01:15 -10:00
Simon Michael
2475163338 ;doc:REGRESSIONS 2025-06-04 12:01:09 -10:00
Simon Michael
7fbeea60b1 ;doc:REGRESSIONS: parentheses 2025-06-04 09:38:13 -10:00
Simon Michael
98371fbd30 ;doc:REGRESSIONS: simplify heading 2025-06-04 09:28:57 -10:00
Simon Michael
e7efadd96e ;doc:REGRESSIONS: add Fixed versions 2025-06-04 09:25:18 -10:00
Simon Michael
eb2fc5d715 ;doc:changelogs/relnotes: add some missing issue numbers 2025-06-04 09:24:55 -10:00
Simon Michael
125975cc3d ;doc:REGRESSIONS 2025-06-04 08:32:36 -10:00
Simon Michael
a473e137ce ;doc:REGRESSIONS 2025-06-04 08:30:35 -10:00
Simon Michael
8498894a96 ;doc: update command docs 2025-06-04 07:54:03 -10:00
Simon Michael
2899b46c59 ;doc: update embedded manuals 2025-06-04 07:31:18 -10:00
Simon Michael
af9822a60a ;cabal: update cabal files 2025-06-04 07:31:13 -10:00
Simon Michael
a0a539cb66 ;pkg: set version to 1.43.99 2025-06-04 07:31:12 -10:00