Hello,

My employer gave me free shares, and I inputed the following in my
ledger file:
I do not know if my inputs in ledger file are correct for a "free
share".
But the point is that --exchange fails silently, by not evaluating to
euro (€) currency.
Then --total-data fails silently because I would have expected 0€.

-----
begin--------------------------------------------------------------
$ cat test_20.ledger
2010/11/15 Employer
    Assets:Invest:Broker  10 ABCXYZ @ 0 €
    Income:Salary:FreeShares

$ ledger --args-only --decimal-comma register Assets --
file=test_20.ledger --exchange=€ --columns=70
10-Nov-15 Employer           Ass:Invest:Broker   10 ABCXYZ   10 ABCXYZ
$ ledger --args-only --decimal-comma register Assets --
file=test_20.ledger --exchange=€ --columns=70 --total-data
2010-11-15 10
-----end-------------------------------------------------------------

If I have others transactions in my ledger fails, then --total-data
fails with error message.

-----
begin--------------------------------------------------------------
$ cat test_20.ledger
2010/11/15 Employer
    Assets:Invest:Broker  10 ABCXYZ @ 0 €
    Income:Salary:FreeShares

2010/01/01 AAPL
    Assets:Invest:Broker  10 AAPL @ 10 $
    Assets:Checking
$ ledger --args-only --decimal-comma register Assets --
file=test_20.ledger --exchange=€ --columns=70
10-Nov-15 Employer           Ass:Invest:Broker   10 ABCXYZ   10 ABCXYZ
10-Jan-01 AAPL               Ass:Invest:Broker     10 AAPL     10 AAPL
                                                             10 ABCXYZ
                             Assets:Checking         $-100       $-100
                                                               10 AAPL
                                                             10 ABCXYZ
$ ledger --args-only --decimal-comma register Assets --
file=test_20.ledger --exchange=€ --columns=70 --total-data
While evaluating value expression:
  quantity(scrub(display_total))
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
While converting 10 AAPL to an amount:
While handling posting from "test_20.ledger", line 6:
>     Assets:Invest:Broker  10 AAPL @ 10 $
Error: Cannot convert a balance with multiple commodities to an amount
2010-11-15 10
-----
end----------------------------------------------------------------

Any suggestion on how I should input my "free shares" so that ledger
do not fails?
Or should I have to input a bug in bugzilla?

Thanks
Thierry




Reply via email to