Commit Graph

13941 Commits

Author SHA1 Message Date
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
Simon Michael
1c63d20c6f ;tools: checkembeddedfiles: detect more embedFile* calls 2025-06-03 11:21:12 -10:00
Simon Michael
fdb0caa9c1 fix:web: declare embedded file, fix compilation failure [#2397] 2025-06-03 11:14:50 -10:00
Simon Michael
ffa84d7a8d ;doc:Query types: clarify amt: [#2396] 2025-06-03 10:10:04 -10:00
Simon Michael
959be5f51d fix:lib:Hledger.Query: parseQueryTerm: don't call error for a bad amt: argument 2025-06-03 10:10:04 -10:00
Simon Michael
2a4718d40a fix: make a few more error messages consistent, hiding call stack [#2367] 2025-06-03 10:10:04 -10:00
Simon Michael
0799f19271 ;doc:REGRESSIONS 2025-06-03 08:03:13 -10:00
Simon Michael
bcde959105 ;dev: tests for amt:/cur: with balance commands [#2396] 2025-06-03 07:48:38 -10:00
Simon Michael
455db07495 ;tools: Shake changelogs: fix missing blank lines around old heading 2025-06-03 07:34:52 -10:00
Simon Michael
aa0f4a74c9 ;fix:doc: more text encoding corrections/cleanups, 4 [#2394] 2025-06-03 00:14:30 -10:00
Simon Michael
2ad6f7f744 ;fix:doc: more text encoding corrections/cleanups [#2394] 2025-06-02 23:49:36 -10:00
Simon Michael
925b85a65e ;doc: relnotes edits 2025-06-02 17:16:43 -10:00
Simon Michael
de86b3c3ef ;doc: changelog edits 2025-06-02 17:16:43 -10:00
Simon Michael
80c09f24ee ;doc: RELEASING 2025-06-02 08:41:16 -10:00
Simon Michael
84d9afed90 ;tools: ghcruns-download: make tmp dir 2025-06-01 13:39:41 -10:00
Simon Michael
a6637b3256 ;doc: announcements 2025-06-01 12:31:24 -10:00
Simon Michael
0c75328015 ;doc: relnotes 1.43 2025-06-01 12:31:24 -10:00
Simon Michael
a39a278e4e ;doc: mailmap 2025-06-01 12:31:24 -10:00