From cd1455e9ea65cc066a0270fdf8dd10fef04f04b2 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 4 Jan 2019 19:03:03 +0000 Subject: [PATCH] lib: note aquantity zero with AUTO amounts --- hledger-lib/Hledger/Data/Types.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-lib/Hledger/Data/Types.hs b/hledger-lib/Hledger/Data/Types.hs index 9ce46ed41..898bc172a 100644 --- a/hledger-lib/Hledger/Data/Types.hs +++ b/hledger-lib/Hledger/Data/Types.hs @@ -201,8 +201,8 @@ data Commodity = Commodity { instance NFData Commodity data Amount = Amount { - acommodity :: CommoditySymbol, - aquantity :: Quantity, + acommodity :: CommoditySymbol, -- commodity symbol, or special value "AUTO" + aquantity :: Quantity, -- numeric quantity, or zero in case of "AUTO" aismultiplier :: Bool, -- ^ kludge: a flag marking this amount and posting as a multiplier -- in a TMPostingRule. In a regular Posting, should always be false. astyle :: AmountStyle,