final example from rounding post

This commit is contained in:
tripun 2014-07-02 00:31:19 +05:30
parent 06a74e7a61
commit 87837d3875

View file

@ -0,0 +1,26 @@
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