hledger/hledger-lib/Hledger/Data
Stephen Morgan 7ed2a0aa9b lib!: lib: Remove aismultiplier from Amount.
In Amount, aismultiplier is a boolean flag that will always be False,
except for in TMPostingRules, where it indicates whether the posting
rule is a multiplier. It is therefore unnecessary in the vast majority
of cases. This posting pulls this flag out of Amount and puts it into
TMPostingRule, so it is only kept around when necessary.

This changes the parsing of journals somewhat. Previously you could
include an * before an amount anywhere in a Journal, and it would
happily parse and set the aismultiplier flag true. This will now fail
with a parse error: * is now only acceptable before an amount within an
auto posting rule.

Any usage of the library in which the aismultiplier field is read or set
should be removed. If you truly need its functionality, you should
switch to using TMPostingRule.

This changes the JSON output of Amount, as it will no longer include
aismultiplier.
2021-07-22 19:06:33 -10:00
..
Account.hs lib,cli,ui,bin: Remove unnecessary normalisedMixedAmount, replace 2021-05-01 09:45:29 -10:00
AccountName.hs lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2. 2021-06-07 17:33:54 -10:00
Amount.hs lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Commodity.hs lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2. 2021-06-07 17:33:54 -10:00
Dates.hs lib,cli,ui: Use Text for showDate and related. 2021-01-02 15:08:09 +11:00
Journal.hs lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Json.hs lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Ledger.hs lib,cli: Fix ledgerDateSpan, so that in takes transaction dates into account. 2021-04-03 13:54:23 -10:00
Period.hs lib,cli,ui: Use Text for showDate and related. 2021-01-02 15:08:09 +11:00
PeriodicTransaction.hs lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2. 2021-06-07 17:33:54 -10:00
Posting.hs imp: bal: more predictable sort order with multiple commodities (#1563, #1564) 2021-07-12 21:11:50 -10:00
RawOptions.hs check: support quoted check name + args 2020-11-29 20:48:31 -08:00
StringFormat.hs lib: Remove unused optional width argument for StringFormat. 2021-01-02 15:08:09 +11:00
Timeclock.hs lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2. 2021-06-07 17:33:54 -10:00
Transaction.hs lib: export transactionCheckBalanced (#1596) 2021-07-07 13:20:13 -10:00
TransactionModifier.hs lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Types.hs lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Valuation.hs lib: Remove unused (amount|mixedAmount|posting|transaction)ApplyCostValuation functions. 2021-05-07 22:25:19 +10:00