Skip to content

Introduce multi-period Account data type and use it for MultiBalanceReport and BudgetReport. #2360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7dbcae1
ref: lib: Allow Account to store date-indexed balances.
Xitian9 Nov 26, 2024
d1b5407
ref: lib: Allow generating day-indexed Account from postings.
Xitian9 Nov 27, 2024
f1b45d3
ref: lib: Better show instances for AccountBalance, AccountBalances, …
Xitian9 Mar 24, 2025
55df2ff
imp: lib: Create mergeAccounts to merge two Accounts.
Xitian9 Mar 13, 2025
38429e8
test: Add new test for --flat --empty
Xitian9 Mar 14, 2025
ce2f561
test: Make --declared treat parent accounts consistently
Xitian9 Mar 12, 2025
6d314a5
ref: lib: Begin using new Account for MultiBalanceReport.
Xitian9 Jan 4, 2025
f9dc496
fix: lib: Ensure accounts with no postings are not shown in flat mode.
Xitian9 Mar 16, 2025
35a4ba5
fix: Make sure declared accounts are added.
Xitian9 Mar 17, 2025
547d8a1
ref: Allow more efficient and general calculation of PeriodicReportRows.
Xitian9 Mar 14, 2025
072ead6
ref: Sorting Account by amount needs to specify which amount.
Xitian9 Mar 14, 2025
e7efffe
ref: lib: Use new infrastructure in budget report.
Xitian9 Mar 14, 2025
2fd2fee
ref: lib: Refactor boolean logic in markAccountBoring.
Xitian9 Mar 25, 2025
e23ea50
fix: Get hledger-ui and hledger-web working with new Account interface.
Xitian9 Mar 25, 2025
79ff3fc
ref: lib: Simplify Account type.
Xitian9 Mar 26, 2025
31d4d2c
ref: lib: Use sparse accounts to increase efficiency and flexibility.
Xitian9 Mar 27, 2025
898b1d0
ref: lib: Clean up unused functions and add mapAccountBalances.
Xitian9 Mar 28, 2025
04cb729
ref: lib: Make mergeAccountBalances safer.
Xitian9 Mar 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion hledger-lib/Hledger/Data.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ functionality. This package re-exports all the Hledger.Data.* modules

module Hledger.Data (
module Hledger.Data.Account,
module Hledger.Data.AccountBalance,
module Hledger.Data.AccountName,
module Hledger.Data.Amount,
module Hledger.Data.Balancing,
Expand All @@ -36,6 +37,7 @@ where

import Test.Tasty (testGroup)
import Hledger.Data.Account
import Hledger.Data.AccountBalance
import Hledger.Data.AccountName
import Hledger.Data.Amount
import Hledger.Data.Balancing
Expand All @@ -58,7 +60,10 @@ import Hledger.Data.Types hiding (MixedAmountKey, Mixed)
import Hledger.Data.Valuation

tests_Data = testGroup "Data" [
tests_AccountName
tests_Account
,tests_AccountName
,tests_AccountBalance
,tests_AccountBalances
,tests_Amount
,tests_Balancing
-- ,tests_Currency
Expand Down
Loading