From 76cb45def64e6fd4b27a7e01c94299e4468ed6ab Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sat, 25 Jul 2020 13:09:17 +0800 Subject: [PATCH] doc: clarify virtual prices --- hledger-lib/hledger_journal.m4.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hledger-lib/hledger_journal.m4.md b/hledger-lib/hledger_journal.m4.md index ae503842d..f4702f69c 100644 --- a/hledger-lib/hledger_journal.m4.md +++ b/hledger-lib/hledger_journal.m4.md @@ -549,11 +549,13 @@ There are several ways to record a transaction price: assets:dollars $-135 ; for $135 ``` -4. -5. Like 1 and 2, but the `@` or `@@` is parenthesised; this is for - compatibility with Ledger journals - ([Virtual posting costs](https://www.ledger-cli.org/3.0/doc/ledger3.html#Virtual-posting-costs)), - and in hledger is equivalent to 1 and 2. +4. Like 1, but the `@` is parenthesised, i.e. `(@)`; this is for + compatibility with Ledger journals + ([Virtual posting costs](https://www.ledger-cli.org/3.0/doc/ledger3.html#Virtual-posting-costs)), + and is equivalent to 1 in hledger. + +5. Like 2, but as in 4 the `@@` is parenthesised, i.e. `(@@)`; in hledger, + this is equivalent to 2. Use the [`-B/--cost`](hledger.html#reporting-options) flag to convert amounts to their transaction price's commodity, if any.