It seems I can't always use multiple posting costs in the same transaction.
Here are two hypothetical test cases. Is this the expected behavior?
*Case 1*:
2015/03/05 * Payee
Assets:Bank $1.00 @ 1.02 EUR
Income:Revenue -$1.00 @ 1.01 EUR
Expected output of bal is that the transaction fails to balance.
Seen output:
$ ledger -f /tmp/x.dat bal
$1.00 Assets:Bank
$-1.00 Income:Revenue
--------------------
0
*Case 2*: Add "D" entries for each currency.
D $1.00
D 1.00 EUR
2015/03/05 * Payee
Assets:Bank $1.00 @ 1.02 EUR
Income:Revenue -$1.00 @ 1.01 EUR
Now I get the expected error:
$ ledger -f /tmp/x.dat bal
While parsing file "/tmp/x.dat", line 6:
While balancing transaction from "/tmp/x.dat", lines 4-6:
> 2015/03/05 * Payee
> Assets:Bank $1.00 @ 1.02 EUR
> Income:Revenue -$1.00 @ 1.01 EUR
Unbalanced remainder is:
0.01 EUR
Amount to balance against:
1.02 EUR
Error: Transaction does not balance
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.