hledger/hledger-lib/Hledger/Data
Simon Michael d19d866446 fix: use costs when balancing a txn with a balance assignment (fix #2039)
Transaction balancing is supposed to balance costs, but these were
being stripped when calculating balance assignments, causing us to
wrongly reject this transaction when the last amount is left implicit,
unlike Ledger:

2023-01-01
    Assets                AAA -1.1 @@ CCC 2
    Assets                BBB -1.2 @@ CCC 3
    Expenses:Fees         CCC  0.2
    Assets                                  = CCC 4.9

I'm not sure why costs were being stripped. I seem to have added it
in 2019 (to Journal.balanceNoAssignmentTransactionB in 3b47b58ae),
but this bug seems to be present even before that.
2023-05-27 08:34:11 -10:00
..
JournalChecks dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Account.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
AccountName.hs journal: Fully unbracket AccountNames in account directives 2023-01-23 12:43:13 -10:00
Amount.hs ;dev: lib: also build with GHC 9.6.1; add base-compat 2023-03-14 10:42:48 -10:00
Balancing.hs fix: use costs when balancing a txn with a balance assignment (fix #2039) 2023-05-27 08:34:11 -10:00
Dates.hs fix: "every 29th/30th/31st day of month" dates with a start date (fix #2032) 2023-05-03 19:18:35 -10:00
Errors.hs ;dev: improve comment 2023-04-27 09:17:29 -10:00
Journal.hs imp: revert 2b5194238 imp: generate auto postings on forecast transactions by default (#2027) 2023-04-30 08:08:26 -10:00
JournalChecks.hs feat: check: the tags check checks tag names 2023-02-16 11:56:22 -10:00
Json.hs imp: partial/inferred dates are flexible, full dates are not (#1982) 2023-02-17 07:24:19 -10:00
Ledger.hs cln: tests: Remove test and tests, which are just aliases for testCase 2021-08-30 16:32:19 -10:00
Period.hs imp: partial/inferred dates are flexible, full dates are not (#1982) 2023-02-17 07:24:19 -10:00
PeriodicTransaction.hs imp: Generated/modified txns/postings are now tagged only with --verbose-tags 2023-04-29 18:25:11 -10:00
Posting.hs imp: Generated/modified txns/postings are now tagged only with --verbose-tags 2023-04-29 18:25:11 -10:00
RawOptions.hs lib: add toggleopt, for flags that toggle when repeated 2023-05-09 10:08:52 -10:00
StringFormat.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Timeclock.hs imp: timeclock: support comments and tags (fix #1220) 2023-05-03 00:05:11 -10:00
Transaction.hs imp: Generated/modified txns/postings are now tagged only with --verbose-tags 2023-04-29 18:25:11 -10:00
TransactionModifier.hs imp: revert 2b5194238 imp: generate auto postings on forecast transactions by default (#2027) 2023-04-30 08:08:26 -10:00
Types.hs imp: timeclock: support comments and tags (fix #1220) 2023-05-03 00:05:11 -10:00
Valuation.hs dev: lib: support debug logging to file in a few more places for hledger-ui 2022-11-06 09:01:12 -10:00