Ensure that commodities using decimal period, have comma separators removed for string-to-number.
This commit is contained in:
parent
09f5e41d96
commit
821847b018
1 changed files with 3 additions and 1 deletions
|
|
@ -94,7 +94,9 @@ which must be translated both directions."
|
|||
(while (string-match "\\." val)
|
||||
(setq val (replace-match "," nil nil val)))) ;; gets rid of periods
|
||||
(t
|
||||
(error "ledger-commodity-string-number-decimalize: direction not properly specified %S" direction))))
|
||||
(error "ledger-commodity-string-number-decimalize: direction not properly specified %S" direction)))
|
||||
(while (string-match "," val)
|
||||
(setq val (replace-match "" nil nil val))))
|
||||
val))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue