Newbie questions

61 views
Skip to first unread message

Nikos Charonitakis

unread,
May 7, 2020, 12:10:17 PM5/7/20
to Ledger
Hi all
I am a new user of ledger and here is my questions:
a) Is it possible to change the number format when entering transactions? Ledger uses , for thousands and . for decimal. Can we use (and how) them the opposite way: (.) for thousands and , for decimal?
b) My assets are mixed with stocks,bonds,and different currencies. When i use ledger to show balance  expressed in EUR, stocks and bonds are reported in quantity and not in their EUR value.
So the result of this command:
ledger -f file.ldg   -V  bal  Assets --X EUR

is something like that:

100
550EUR Assets




John Wiegley

unread,
May 7, 2020, 1:07:29 PM5/7/20
to Nikos Charonitakis, Ledger
>>>>> "NC" == Nikos Charonitakis <nik...@gmail.com> writes:

NC> a) Is it possible to change the number format when entering transactions?
NC> Ledger uses , for thousands and . for decimal. Can we use (and how) them
NC> the opposite way: (.) for thousands and , for decimal?

Ledger uses whatever it sees you use.

NC> b) My assets are mixed with stocks,bonds,and different currencies. When i
NC> use ledger to show balance  expressed in EUR, stocks and bonds are
NC> reported in quantity and not in their EUR value.

NC> So the result of this command:

NC> ledger -f file.ldg   -V  bal  Assets --X EUR

NC> is something like that:

NC> 100
NC> 550EUR Assets

This is because it doesn't know price of that item in EUR...

John

Nikos Charonitakis

unread,
May 7, 2020, 2:12:57 PM5/7/20
to Nikos Charonitakis, Ledger
Thanks for your answers John.

I ll try to see what is wrong with my file because i set stock prices with eg @ EUR 20 when i first recorded (opening balance) my assets, and after your reply i set at the end of my file
P 7/5/2020 STOCK_NAME EUR 20 but even this does not change behaviour and ledger instists reporting stock quantity and no value.

Regards
Nikos

John Wiegley

unread,
May 7, 2020, 3:11:12 PM5/7/20
to Nikos Charonitakis, Ledger
>>>>> "NC" == Nikos Charonitakis <nik...@gmail.com> writes:

NC> I ll try to see what is wrong with my file because i set stock prices with
NC> eg @ EUR 20 when i first recorded (opening balance) my assets, and after
NC> your reply i set at the end of my file P 7/5/2020 STOCK_NAME EUR 20 but
NC> even this does not change behaviour and ledger instists reporting stock
NC> quantity and no value.

That is indeed odd!

John

Martin Michlmayr

unread,
May 7, 2020, 8:40:33 PM5/7/20
to ledge...@googlegroups.com
* Nikos Charonitakis <nik...@gmail.com> [2020-05-07 09:10]:
> I am a new user of ledger and here is my questions:
> a) Is it possible to change the number format when entering transactions?
> Ledger uses , for thousands and . for decimal. Can we use (and how) them
> the opposite way: (.) for thousands and , for decimal?

Use the --decimal-comma option.

--
Martin Michlmayr
https://www.cyrius.com/

Martin Michlmayr

unread,
May 7, 2020, 8:40:57 PM5/7/20
to ledge...@googlegroups.com, Nikos Charonitakis
* Nikos Charonitakis <nik...@gmail.com> [2020-05-07 21:12]:
> I ll try to see what is wrong with my file because i set stock prices with
> eg @ EUR 20 when i first recorded (opening balance) my assets, and after
> your reply i set at the end of my file
> P 7/5/2020 STOCK_NAME EUR 20 but even this does not change behaviour and
> ledger instists reporting stock quantity and no value.

Can you post a small testcase?

Nikos Charonitakis

unread,
May 8, 2020, 7:18:09 AM5/8/20
to Ledger
thanks, problem solved:
Assets:Stocks:stockname  stockname 200 @ EUR 20
i was writing previously:
Assets:stocks:stockname      200 @ EUR 20
Reply all
Reply to author
Forward
0 new messages