Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Antonio MCh
OK, understand. When the bug was present, I was able to have the same files and run either ledger or hledger depending on the need, I guess I will have to find a way to make them both work together again. Thanks Martin for your time and help. Antonio M. El lunes, 20 de noviembre de 2023 a las

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Martin Michlmayr
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

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Antonio MCh
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 [2023-11-20 15:35]: > > commodity JPY >

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Martin Michlmayr
* Antonio MCh [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

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Antonio MCh
Hello! I'm having a similar issue, or at least the error message is the same: I'm trying to add a commodity like this: 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

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-11-20 Thread Antonio MCh
Hi everyone! I think I'm having the same/similar issue. I try to declare the following commodity: commodity JPY format 1,234. JPY Note that I include a dot at the end of the amount, this is to indicate the commodity does not uses decimals. This is compatible with hledger, but with

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-06-04 Thread Scott Carpenter
Thanks, Martin. And thanks for all the work you do with maintaining things and managing these releases! Scott On Sunday, June 4, 2023 at 10:30:13 AM UTC-5 Martin Michlmayr wrote: > I think this works as expected (now), but maybe it needs to be > documented better. "format" requires an example

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-06-04 Thread Martin Michlmayr
I think this works as expected (now), but maybe it needs to be documented better. "format" requires an example of how the commodity is to be used - you have to include the commodity because some people (or regions) put it before the number and some people after. * Scott Carpenter [2023-06-04

Re: Ledger 3.3.2 change in commodity format sub-directive handling

2023-06-04 Thread Scott Carpenter
I see now that if I use, say: commodity xyz format 1,000.000 xyz Putting the commodity last, things behave the same as before with my output. On Sunday, June 4, 2023 at 7:23:06 AM UTC-5 Scott Carpenter wrote: > After updating to 3.3.2, I was getting errors like this with my >

Ledger 3.3.2 change in commodity format sub-directive handling

2023-06-04 Thread Scott Carpenter
After updating to 3.3.2, I was getting errors like this with my commodities: While parsing file , line 6: Error: commodity directive symbol abc and format directive symbol should be the same Note the two spaces between "symbol" and "should". Looks like there is no format directive symbol.