Changeset - 87837d3875c4
[Not reviewed]
0 0 1
tripun - 7 years ago 2014-07-01 19:01:19
tripun@gmail.com
final example from rounding post
1 file changed with 26 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rounding/bug_reports/dir-commodity-precision-4.test
Show inline comments
 
new file 100644
 
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
0 comments (0 inline, 0 general)