From c51245652f3696d60ee3caf5204c399d79195350 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 8 Apr 2020 21:01:44 -0700 Subject: [PATCH] add an example of Ledger's cap gains calculation during balancing --- examples/investment-gains-balancing.journal | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/investment-gains-balancing.journal diff --git a/examples/investment-gains-balancing.journal b/examples/investment-gains-balancing.journal new file mode 100644 index 000000000..acab09d7d --- /dev/null +++ b/examples/investment-gains-balancing.journal @@ -0,0 +1,6 @@ +; Ledger expects the 5 EUR capital gain income here because selling a 10 EUR lot at 15 EUR. +; hledger does not. Must leave that amount implicit to allow both to parse this. +2019-03-01 Sell + Assets:Shares -1 ETF {10 EUR} @ 15 EUR + Assets:Cash 15 EUR + Income:Capital Gains ;-5 EUR