Thanks. I'll pull to the latest version (I was using a version from 
November 26) and check again.

A follow up question. Lets say I have the given .dat file:

= expr commodity == "EUR" and date >= [2011] and date < [2012]
 ; VALUE:: market($1.5, date, exchange)


2011/1/1 Opening Balance
 Assets:Paypal Account   $2.00 
 Equity

2011/1/28 From U.S. Dollar To Euro - Currency Conversion
 Assets:Paypal Account   1.00 EUR  ; worth $1.5 according to our annual 
average exchange rate
 Assets:Paypal Account   -$1.80    ; paypal's exchange rate is $1.8 = 1 
EUR, costing us $0.30 in exchange fees)
 Expenses:Conversion Fee  

Here I'm hoping that the conversion fee will automatically be debited with 
$0.30, instead I get a strange result from bal:
$ ledger -f new3.dat  bal -X $
               $1.70  Assets:Paypal Account
              $-2.00  Equity
               $1.80
           -1.00 EUR  Expenses:Conversion Fee
--------------------
               $1.50
           -1.00 EUR

There are still EUR values in there despite the -X $ 

Now, if I modify the conversion entry to be explicit about the fee then 
everything works fine:
2011/1/28 From U.S. Dollar To Euro - Currency Conversion
 Assets:Paypal Account   1.00 EUR  ; worth $1.5 according to our annual 
average exchange rate
 Assets:Paypal Account   -$1.80    ; paypal's exchange rate is $1.8 = 1 
EUR, costing us $0.30 in exchange fees)
 Expenses:Conversion Fee  $0.30

$ ledger -f new3.dat  bal -X $
               $1.70  Assets:Paypal Account
              $-2.00  Equity
               $0.30  Expenses:Conversion Fee
--------------------
                   0

Is there any way you could recommend of calculating this conversion fee 
expense automatically?

On Tuesday, January 29, 2013 4:10:37 PM UTC-5, John Wiegley wrote:
>
> >>>>> Andrew Canis <[email protected] <javascript:>> writes: 
>
> > For example,  lets say I have the ledger input new.dat: 
>
> > D $1,000.00 
>
> You need at least one transaction which actually contains a dollar figure 
> used 
> in the way you want it displayed.  I thought "D" enough would do this for 
> you, but perhaps not.  If that doesn't fix it, please log a bug on 
> bugs.ledger-cli.org.  Thanks! 
>
> John 
>

-- 

--- 
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/groups/opt_out.


Reply via email to