-
-
Notifications
You must be signed in to change notification settings - Fork 342
Closed
Labels
A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.journalThe journal file format, and its features.The journal file format, and its features.
Description
Consider example:
% COLUMNS=80 hledger reg -f -
commodity EUR
format 1,000.00 EUR
commodity UAH
format 1.000,00 UAH
2017/1/1
expenses 1,000 EUR
expenses 1.000 EUR
expenses 1,000.00 EUR
assets
2017/1/1
expenses 1,000 UAH
expenses 1.000 UAH
expenses 1.000,00 UAH
assetsThis results in
2017/01/01 expenses 1.00 EUR 1.00 EUR
expenses 1.00 EUR 2.00 EUR
expenses 1,000.00 EUR 1,002.00 EUR
assets -1,002.00 EUR 0
2017/01/01 expenses 1,00 UAH 1,00 UAH
expenses 1,00 UAH 2,00 UAH
expenses 1.000,00 UAH 1.002,00 UAH
assets -1.002,00 UAH 0
Which is pretty unexpected.
It should be:
2017/01/01 expenses 1,000.00 EUR 1,000.00 EUR
expenses 1.00 EUR 1,001.00 EUR
expenses 1,000.00 EUR 2,001.00 EUR
assets -2,001.00 EUR 0
2017/01/01 expenses 1,00 UAH 1,00 UAH
expenses 1.000,00 UAH 1.001,00 UAH
expenses 1.000,00 UAH 2.001,00 UAH
assets -2.001,00 UAH 0
I have to be very careful when I write numbers with thousands and always put decimals separator to avoid treating my numbers smaller than they are in fact.
hledger should honor decimals and digit groups specification of commodity format.
I don't mind to use space as a separator, but this isn't allowed yet. See #330 .
dashed
Metadata
Metadata
Assignees
Labels
A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.journalThe journal file format, and its features.The journal file format, and its features.