From 4ed80d40699b7be837aa01cb168a7480486c29d1 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 28 Jan 2022 09:21:43 -1000 Subject: [PATCH] ;doc: update journalFinalise haddock --- hledger-lib/Hledger/Read/Common.hs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/hledger-lib/Hledger/Read/Common.hs b/hledger-lib/Hledger/Read/Common.hs index 556b3feb9..c4e45c289 100644 --- a/hledger-lib/Hledger/Read/Common.hs +++ b/hledger-lib/Hledger/Read/Common.hs @@ -288,19 +288,27 @@ parseAndFinaliseJournal' parser iopts f txt = do -- | Post-process a Journal that has just been parsed or generated, in this order: -- --- - apply canonical amount styles, +-- - add misc info (file path, read time) -- --- - save misc info and reverse transactions into their original parse order, +-- - reverse transactions into their original parse order -- --- - add forecast transactions, +-- - apply canonical commodity styles -- --- - evaluate balance assignments and balance each transaction, +-- - add forecast transactions if enabled -- --- - apply transaction modifiers (auto postings) if enabled, +-- - add auto postings if enabled -- --- - check balance assertions if enabled. +-- - evaluate balance assignments and balance each transaction -- --- - infer transaction-implied market prices from transaction prices +-- - check balance assertions if enabled +-- +-- - infer equity postings in conversion transactions if enabled +-- +-- - infer market prices from costs if enabled +-- +-- - check all accounts have been declared if in strict mode +-- +-- - check all commodities have been declared if in strict mode -- journalFinalise :: InputOpts -> FilePath -> Text -> ParsedJournal -> ExceptT String IO Journal journalFinalise iopts@InputOpts{auto_,infer_equity_,balancingopts_,strict_} f txt pj = do