Changeset - 06a74e7a6105
[Not reviewed]
0 0 3
tripun - 7 years ago 2014-07-01 18:50:51
tripun@gmail.com
added precision directive test
3 files changed with 56 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rounding/bug_reports/dir-commodity-precision-2.test
Show inline comments
 
new file 100644
 
D 10.00 EUR
 
commodity EUR
 
  precision 2
 
  default
 

	
 
2014-01-01 Opening balance
 
 Assets:Investments     10 AAA @ 10.1234 EUR
 
 Assets:Investments     10 BBB @ 10.5692 EUR
 
 Equity:Opening balance
 

	
 

	
 
test -V bal
 
          206.92 EUR  Assets:Investments
 
         -206.92 EUR  Equity:Opening balance
 
--------------------
 
                   0
 
end test
rounding/bug_reports/dir-commodity-precision-3.test
Show inline comments
 
new file 100644
 
D $1000.00
 
commodity $
 
 precision 2
 
 default
 
 
 
2014-06-15 Test 1
 
    Liabilities:Payable           €-19.86 @ $1.3869
 
    Expenses
 

	
 
2014-06-16 Test 2
 
    Liabilities:Payable           €-19.86 @ $1.3869
 
    Expenses
 

	
 

	
 
test -V bal
 
              $55.08  Expenses
 
             $-55.08  Liabilities:Payable
 
--------------------
 
                   0
 
end test
rounding/bug_reports/dir-commodity-precision.test
Show inline comments
 
new file 100644
 
D 1000.00 EUR
 
commodity EUR
 
  precision 2
 
  default
 

	
 
2012-01-01 *
 
   A                        1 AAA @@ 10.00 EUR
 
   A                        1 BBB @@ 20.00 EUR
 
   C
 

	
 
P 2012-07-01 AAA 10.123 EUR
 
P 2012-07-01 BBB 20.123 EUR 
 

	
 
test -V bal
 
           30.24 EUR  A
 
          -30.00 EUR  C
 
--------------------
 
            0.24 EUR
 
end test
0 comments (0 inline, 0 general)