On Saturday, August 15, 2015 at 4:41:39 AM UTC-4, John Wiegley wrote:

>
> What options are you using to generate those reports? 
>
> John 
>

After a bit more testing --

Some of what I don't want is generated by my requested formatting.

A query like this:

> ledger --group-by "tag('category')" reg -X $ tag vacation=2015europe -w 
-F '%10(date) %6(code) %-.40(payee) %14(amount) %14(display_total)\n' -p aug

yields lines like this:

> 2015/08/02        Stadtmuseum Dresden                      14.00 euro 
{$1.111428571428571429} [15-Aug-02]         $20.01

If I simplify and don't ask for the special formatting, it's more like what 
I want:

> ledger --group-by "tag('category')" reg -X $ tag vacation=2015europe -w 
-p aug

changes the above line to this:

> 15-Aug-02 Stadtmuseum Dresden                
Expenses:Vacation                                     $15.56               
$20.01

So I guess the "amount" expression includes the foreign currency, exchange 
rate, and date instead of the converted amount in USD.

Two questions now --

First, I still have the revalued commodity lines. Some of them are like 
this:

> 15-Aug-07 Commodities revalued               
<Revalued>                                             $2.38               
$22.06

and some are like this
 
> 15-Aug-02 Dresden Rest. Kurfuerstenhof       
<Adjustment>                                           $0.01              
$102.32

Is there a setting that would stop this revaluing?

Second, is there an expression like (amount) that will give me the 
converted amount in USD rather than the amount in the original currency 
with the exchange rate and date?

Hope this is clear -- thanks in advance for any help.

(I really do like ledger.....)

--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/d/optout.

Reply via email to