handle 'caisse d'epargne' export encoding

This commit is contained in:
Simon Vieille 2025-02-02 20:12:00 +01:00
commit 7e224d5e37

View file

@ -174,11 +174,11 @@ func ImportCaisseEpargneTransactions(content string, bankAccountID int) ([]Trans
ShortLabel: toUTF8(fields[1]),
Label: toUTF8(fields[2]),
Reference: ref,
Information: toUTF8(fields[4]),
OperationType: toUTF8(fields[5]),
Information: fields[4],
OperationType: fields[5],
AccountedAt: toDate(fields[0], "02/01/2006"),
BankCategory: toUTF8(fields[6]),
BankSubCategory: toUTF8(fields[7]),
BankCategory: fields[6],
BankSubCategory: fields[7],
Debit: -toFloat(fields[8]),
Credit: toFloat(fields[9]),
BankAccountID: bankAccountID,