hledger/hledger-lib/Hledger
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
..
Data lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Read lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Reports lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Utils ui: Do not log to debug.log when regenerating journal in Transaction 2021-06-30 16:07:32 -10:00
Data.hs lib: Change internal representation of MixedAmount to use a strict Map 2021-05-01 09:45:29 -10:00
Query.hs lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2. 2021-06-07 17:33:54 -10:00
Read.hs lib!: lib: Remove aismultiplier from Amount. 2021-07-22 19:06:33 -10:00
Reports.hs lib!: lib,web: Remove unused TransactionReport. Move the useful utility 2021-07-22 19:00:37 -10:00
Utils.hs lib,cli,ui,bin: Create a new API for MixedAmount arithmetic. This should 2021-03-18 09:47:21 +11:00