final example from rounding post
This commit is contained in:
parent
06a74e7a61
commit
87837d3875
1 changed files with 26 additions and 0 deletions
26
rounding/bug_reports/dir-commodity-precision-4.test
Normal file
26
rounding/bug_reports/dir-commodity-precision-4.test
Normal 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
|
Loading…
Reference in a new issue