GnuCash import quotes values, expecting them to use comma (,) with Swedish SEK Achieve this by once again replacing period to comma for final output

AfoHT
Jan 23, 2022, 7:38 PM
V6WMVNO6HSBPTGGC4OL2JFRVDEKJI47VRMTQ7V3GMJ7OE3RRQBWQC

Dependencies

  • [2] Q4VYTFJ7 Add saldo/balance in the Note field
  • [3] 4BWPI66V Add first mapping attempt
  • [4] 4DJWIQSI Implement cargo clippy suggestions
  • [5] LDUI5PR2 Change to using STDIO
  • [*] QDZOD3MN Able to parse CSV

Change contents

  • edit in src/main.rs at line 122
    [2.115][2.115:147]()
    //.replace("-", "")
  • replacement in src/main.rs at line 165
    [2.901][2.901:951]()
    Some(value) => value.to_string(),
    [2.901]
    [2.951]
    Some(value) => value.to_string().replace(".", ","),
  • replacement in src/main.rs at line 183
    [3.1252][3.1401:1437]()
    amount_num.to_string(),
    [3.1252]
    [3.1606]
    amount_num.to_string().replace(".", ","),