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:
Bradley M. Kuhn 2012-09-30 14:53:05 -04:00
parent e56a4ffef0
commit bf7375db11
2 changed files with 30 additions and 0 deletions

View 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

View 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