There was a bug in earlier version that the format info in commodity directives were not properly validated.
1,234. is not a valid number in ledger. Just try this: 2023-01-01 * "Test" Assets:Investments 1,100. GBP Assets:Cash -1,100.00 GBP Related bug not the same: https://github.com/ledger/ledger/issues/2095 https://github.com/ledger/ledger/issues/1990 Martin * Antonio MCh <[email protected]> [2023-11-20 19:57]: > I tested the commodity declaration in Ledger 3.2.1-20200518, and there it > is valid, just wondering if there was a reason to stop supporting that > format. > > El lunes, 20 de noviembre de 2023 a las 21:50:49 UTC-5, Martin Michlmayr > escribió: > > > * Antonio MCh <[email protected]> [2023-11-20 15:35]: > > > commodity JPY > > > format 1,234. JPY > > > > > > Note that I have a dot '.' to indicate the commodity does not uses > > > decimals. This is recommended by hledger, but when I try it in ledger > > > (Ledger 3.3.2-20230330) I get the error: > > > > hledger and ledger are incompatible in several ways. 1,234. is not a > > valid number in ledger. > > > > -- > > Martin Michlmayr > > https://www.cyrius.com/ > > > > -- > > --- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/6801b1ac-32b1-4a8f-8f24-3139cbb64c8an%40googlegroups.com. -- Martin Michlmayr https://www.cyrius.com/ -- --- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20231121040706.GA2538382%40jirafa.cyrius.com.
