From 29ff5468bf51fe1c9cf8c3960fe140a4fa1c1cdf Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 28 Aug 2023 07:11:24 +0100 Subject: [PATCH] dev:journalBalanceTransactions: styling comment --- hledger-lib/Hledger/Data/Balancing.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hledger-lib/Hledger/Data/Balancing.hs b/hledger-lib/Hledger/Data/Balancing.hs index 5027795d8..12b874f2a 100644 --- a/hledger-lib/Hledger/Data/Balancing.hs +++ b/hledger-lib/Hledger/Data/Balancing.hs @@ -454,6 +454,9 @@ journalBalanceTransactions bopts' j' = -- display precisions used in balanced checking styles = Just $ journalCommodityStyles j bopts = bopts'{commodity_styles_=styles} + -- XXX ^ The commodity directive styles and default style and inferred styles + -- are merged into the command line styles in commodity_styles_ - why ? + -- Mainly for the precisions, used during amount and cost inference and balanced checking ? -- balance assignments are not allowed on accounts affected by auto postings autopostingaccts = S.fromList . map (paccount . tmprPosting) . concatMap tmpostingrules $ jtxnmodifiers j in