From abaa04f2f9c3184385dfe2c10365f8e227b1bc29 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 19 Jan 2023 21:07:51 -1000 Subject: [PATCH] doc: cli: note --infer-costs limitation, no missing amounts for now In journalFinalise currently things are done in this order: ... 1. infer costs from equity conversion postings if requested 2. balance transactions, possibly inferring a missing amount, and/or balancing costs if permitted 3. infer equity conversion postings from costs if requested ... You would think that 1 could happen after 2, allowing missing amounts to be inferred before attempting to infer costs from equity postings, but somehow the current expected behaviour of tolerating excess costs generated with --infer-costs depends on the current ordering. Just document it for now. --- hledger/hledger.m4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 49c4f3386..511b20c4a 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -5051,6 +5051,7 @@ For `--infer-costs` to work, an exchange must consist of four postings: (or if they are not declared, they must be named `equity:conversion`, `equity:trade`, `equity:trading` or subaccounts of these) 3. the equity postings' amounts must exactly match the non-equity postings' amounts +4. all of the amounts must be explicit, with none missing Multiple such exchanges can coexist within a single transaction, should you need that.