Total posting costs and precision issues?

2023-11-20 Thread Bob Wilson
Hi folks, I have some stock purchases that I have specified using total costs. Because of not-round-numbers, I'm having trouble specifying the lot so I can sell it cleanly. Here's an example: 2023/11/01 * Buy Shares Assets:401K 6.456 FSKAX @@ $734.43

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