doc: clarify virtual prices

This commit is contained in:
Martin Michlmayr 2020-07-25 13:09:17 +08:00 committed by Simon Michael
parent 081ee390ab
commit 76cb45def6

View File

@ -549,11 +549,13 @@ There are several ways to record a transaction price:
assets:dollars $-135 ; for $135 assets:dollars $-135 ; for $135
``` ```
4. 4. Like 1, but the `@` is parenthesised, i.e. `(@)`; this is for
5. Like 1 and 2, but the `@` or `@@` is parenthesised; this is for compatibility with Ledger journals
compatibility with Ledger journals ([Virtual posting costs](https://www.ledger-cli.org/3.0/doc/ledger3.html#Virtual-posting-costs)),
([Virtual posting costs](https://www.ledger-cli.org/3.0/doc/ledger3.html#Virtual-posting-costs)), and is equivalent to 1 in hledger.
and in hledger is equivalent to 1 and 2.
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 Use the [`-B/--cost`](hledger.html#reporting-options) flag to convert
amounts to their transaction price's commodity, if any. amounts to their transaction price's commodity, if any.