John, thank you for quick respond.

Both solutions apply fixed rate, common for all transactions. I which to 
find the way to valuate commodity for each transaction at rate, applicable 
for the transaction's date.

Illustration:

P 2012/11/01  USD  EUR1.00
P 2012/12/01  USD  EUR2.00

;;

2012/11/01 (243) inv 201-243
   a:debtors:one         EUR500; 
   pl:sales                  EUR-500; 

2012/12/05 (241) inv 201-524
   a:debtors:one          EUR500;
   pl:seales                 EUR-500;


I tend to expect something like this:
>leger reg -X USD a:debtors

2012/11/01    pl:sales    USD -500
2012/12/05    pl:sales    USD -1000
total:                            USD -1,500







On Monday, February 18, 2013 2:42:57 PM UTC+2, John Wiegley wrote:
>
> >>>>> Dmitri Kourbatsky <[email protected] <javascript:>> writes: 
>
> > 1. Is there a way to halt re-valuation of the commodity for all or 
> selection 
> >    of accounts? 
>
> You could use an automated transactions to assign the "Value" metadata 
> field 
> for specified accounts: 
>
>     = /<account_re>/ && commodity == "EUR" 
>         ; Value:: $10 
>
> > 2. Is there a way to stipulate exch/rate (or cost, in 'ledger' 
> vocabulary) 
> > for a given transaction via 'price' records ('P YYYY/MM/DD CURR RATE') 
> in 
> > any predictable manner? 
>
> I believe that the -X flag supports assigning commodity values: 
>
>     -X 'EUR=$10' 
>
> This is all using the latest Ledger from GitHub, of course. 
>
> 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