npo-ledger-cli/rounding/bug_reports/dir-commodity-precision-4.test

27 lines
661 B
Text
Raw Normal View History

2014-07-01 19:01:19 +00:00
D 1000.000 EUR
commodity EUR
precision 2
default
2014-06-01 * Opening balance
Assets:Investments 123 XXX {1.23456 EUR} @ 1.23456 EUR
Equity:Opening balances -151.85 EUR
2014-06-22 * Sell some shares
Assets:Investments -123 XXX {1.23456 EUR} @ 2.345 EUR
Assets:Cash 288.44 EUR
Income:Capital gains -136.59 EUR
test -V bal
288.440 EUR Assets:Cash
-15.270 EUR Equity
136.580 EUR Capital Gains
-151.850 EUR Opening balances
-136.590 EUR Income:Capital gains
--------------------
136.580 EUR
end test