Commit Graph

13958 Commits

Author SHA1 Message Date
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
Simon Michael
2f6166142a ;doc:REGRESSIONS 2025-06-03 19:21:49 -10:00
Simon Michael
05c982aefd ;doc: relnotes 2025-06-03 18:44:40 -10:00
Simon Michael
847567095d ;doc: finalise changelogs for 1.43.1 on 2025-06-03 2025-06-03 18:44:40 -10:00
Simon Michael
871eee9549 ;pkg:ui: allow brick 2.9 2025-06-03 18:44:40 -10:00
Simon Michael
c2972b3d5d ;pkg: update tested-with 2025-06-03 18:44:40 -10:00
Simon Michael
b67379c3d8 fix: cur: in posting-based reports filters multicommodity amounts again [#2396] 2025-06-03 18:44:08 -10:00
Simon Michael
6daba4edb8 dev: refactor journalValueAndFilterPostingsWith a bit [#2396] 2025-06-03 18:44:08 -10:00
Simon Michael
bdd2018663 lib:Hledger.Query: queryIsAmtOrSym 2025-06-03 18:44:08 -10:00
Simon Michael
5bbf31096d ;lib: note an issue with filterQuery 2025-06-03 18:44:08 -10:00
Simon Michael
3410052934 ;dev: query-expr.test: a simpler test [#2371] 2025-06-03 18:44:08 -10:00
Simon Michael
a591d26ecb ;dev:web: fix compilation warning in MiscR.hs 2025-06-03 18:43:31 -10:00
Simon Michael
53b15ebd4a ;dev:web: use embedFileRelative, like others 2025-06-03 11:22:05 -10:00