This works perfectly.
2014-06-18
A -1 EUR @ $1.00
A -1 CAD @ $1.00
C $2.00
for -V bal
$-2.00 A
$2.00 C
--------------------
0
but when I use fixed price I get an error
2014-06-18
A -1 EUR {=$1.00}
A -1 CAD {=$1.00}
C $2.00
for -V bal or simply bal
While parsing file "test.txt", line 5:
While balancing transaction from "test.txt", lines 1-5:
> 2014-06-18
> A -1 EUR {=$1.00}
> A -1 CAD {=$1.00}
> C $2.00
>
Unbalanced remainder is:
$2.00
-1 CAD {=$1.00}
-1 EUR {=$1.00}
Amount to balance against:
$2.00
Error: Transaction does not balance
A bug (992) is already opened but that is another issue or may be arising of this. When I debug both cases using code amount. the parsing is fine but when I use code commodity,price. the value conversion is working fine for market price but there is not even a single debug message in case of fixed price and it simply fails.
debug text :
https://gitorious.org/ledger/npo-ledger-cli/source/5037c020666a099131a7464bb07549199fad78da:rounding/bug_reports/992_debug.txtError also occur for this
2014-06-18
A -1 EUR {=$1.00}
A -1 CAD {=$1.00}
C -1 EUR @ $1.00
C -1 CAD @ $1.00
The point is when value conversion is accepted for market price then it should work in case of fixed price too. There is no precision problem here. Is it something I am missing?