Yes, but i was using C 1,00 EUR = €1,00 in the example.

-X €, indeed works. Thanks.

Hans Erik

Op zaterdag 10 januari 2015 22:44:04 UTC+1 schreef thierry:
>
> To my understanding, the syntax 
>
>     C  0,01 EUR = € 0,01
>
> Tell that "€ 0,01" as a string (not an amount or a figure) will be 
> converted to "0,01 EUR".
> Two importants restrictions : 
> - only "€ 0,01", and not "€ 0,02"
> - and this is only for display, treating things as a string, no computation
>
> Well, a misleading command...
>
> I think that what you want is :
>
>     P 1 EUR = 1 €
>
> Thierry
>
> On Wednesday, January 7, 2015 at 12:43:01 PM UTC+1, Hans Erik van Elburg 
> wrote:
>>
>>
>> In my reports amounts 0 <= x < 1 and amounts > 1 are represented 
>> differently.
>>
>> Looks like this is a feature of commodity handling. How can this be 
>> overruled for this particular case?
>>
>> (Note putting 
>> - "C  0,01 EUR = € 0,01", multiplies all values by 100. So also does not 
>> work as I expect.
>> - --exchange €:EUR, does not resort any effect)
>>
>>
>> See below example for an illustration of this:
>>
>>
>> * ledger different representation of amounts > 1 and < 1
>>
>> ** some transactions
>> #+name: transactions_smallamounts
>> #+begin_src ledger :noweb yes
>> C 1,00 EUR = €1,00
>>
>> 2013/12/02 ACME
>>     Expenses:A                       € 0,01
>>     Assets
>>
>> 2014/01/02 ACME
>>     Expenses:A                       € 1,00
>>     Assets
>>
>> 2014/02/02 ACME
>>     Expenses:B                       € 0,01
>>     Assets
>>
>> 2014/03/02 ACME
>>     Expenses:B                       € 0,02
>>     Assets
>> #+end_src
>>
>> #+name: representing_smallamounts
>> #+begin_src ledger :cmdline --sort 'date' reg ^exp  :noweb yes
>> <<transactions_smallamounts>>
>> #+end_src  
>>
>> #+RESULTS: representing_smallamounts
>> : 13-Dec-02 ACME                  Expenses:A                   € 
>> 0,01       € 0,01
>> : 14-Jan-02 ACME                  Expenses:A                 1,00 EUR     
>> 1,01 EUR
>> : 14-Feb-02 ACME                  Expenses:B                   € 0,01     
>> 1,02 EUR
>> : 14-Mar-02 ACME                  Expenses:B                   € 0,02     
>> 1,04 EUR
>>
>> #+name: representing_smallamounts2
>> #+begin_src ledger :cmdline --sort 'date' bal ^exp  :noweb yes
>> <<transactions_smallamounts>>
>> #+end_src  
>>
>> #+RESULTS: representing_smallamounts2
>> :             1,04 EUR  Expenses
>> :             1,01 EUR    A
>> :               € 0,03    B
>> : --------------------
>> :             1,04 EUR
>>
>>

-- 

--- 
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