Rounding is different for balance totals vs. postings when using posting costs.
test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both pass, but test/regress/CAE63F5C-c.test does not, because the total line of $6.46 is rounded wrong; it should be $6.45. There seems to be different rounding occurring for totals vs. postings. This seems to be related to Bug #492.
This commit is contained in:
parent
e56a4ffef0
commit
bf7375db11
2 changed files with 30 additions and 0 deletions
15
test/regress/CAE63F5C-b.test
Normal file
15
test/regress/CAE63F5C-b.test
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
2012/08/22 Payment
|
||||||
|
Accrued €208.00 {=$1.3109} @ $1.2799
|
||||||
|
Expenses €4.16 {=$1.2798689} @ $1.2799
|
||||||
|
Assets $-271.54
|
||||||
|
Income:Currency Conversion $-6.45
|
||||||
|
|
||||||
|
test bal -X $
|
||||||
|
$272.67 Accrued
|
||||||
|
$-271.54 Assets
|
||||||
|
$6.45 Equity:Capital Gains
|
||||||
|
$5.32 Expenses
|
||||||
|
$-6.45 Income:Currency Conversion
|
||||||
|
--------------------
|
||||||
|
$6.45
|
||||||
|
end test
|
||||||
15
test/regress/CAE63F5C-c.test
Normal file
15
test/regress/CAE63F5C-c.test
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
2012/08/22 Payment
|
||||||
|
Accrued €208.00 {=$1.3109} @ $1.2798689
|
||||||
|
Expenses €4.16 {=$1.2798689} @ $1.2798689
|
||||||
|
Assets $-271.54
|
||||||
|
Income:Currency Conversion $-6.45
|
||||||
|
|
||||||
|
test bal -X $
|
||||||
|
$272.67 Accrued
|
||||||
|
$-271.54 Assets
|
||||||
|
$6.45 Equity:Capital Gains
|
||||||
|
$5.32 Expenses
|
||||||
|
$-6.45 Income:Currency Conversion
|
||||||
|
--------------------
|
||||||
|
$6.45
|
||||||
|
end test
|
||||||
Loading…
Add table
Reference in a new issue