Hi everyone,
First of all, sorry I haven't updated ledger to the latest when testing
this bug. I'm using 3.1.3-20190331 which comes with Ubuntu 20.04.2 LTS on
my laptop. So perhaps this bug no longer exists.
ledger points out the wrong entry (probably the next entry with multiple
commas) when there is a misplaced comma. Example:
; -*- Mode: ledger -*-
2021/01/06 entry1
assets:cash:savings:bca 200,0000 IDR
assets:cash:dana
2021/01/06 entry2
assets:cash:savings:bca 100,000 IDR
assets:cash:dana
2021/01/06 entry3
assets:cash:savings:bca 3,050,000 IDR
assets:cash:dana
As you can see, the error is in entry1 in line 4. The amount should be
"200,000 IDR" (extraneous 0) or perhaps 2,000,000 IDR (misplaced commas).
But when run through ledger, it complains as follow:
While parsing file "/home/u1/tmp/1.dat", line 12:
While parsing posting:
assets:cash:savings:bca 3,050,000 IDR
^^^^^^^^^^^^^
Error: Too many commas in amount
Regards,
--
---
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/5861dd32-dae4-45e9-8a91-646bea3ede0an%40googlegroups.com.