Commit 1ed13b9c authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[fix] forgot centimes

parent 8a2e87d9
......@@ -19,7 +19,7 @@ def handle_recordbank_csv(csv_file):
movement = Movement()
movement.bank_id = entry["Ref. v/d verrichting"]
movement.date = datetime.strptime(entry["Datum v. verrichting"], "%d-%m-%Y").date()
movement.amount = float(entry["Bedrag v/d verrichting"].replace(".", "").replace(",", "."))
movement.amount = float(entry["Bedrag v/d verrichting"].replace(".", "").replace(",", ".")) + (int(entry["Munt"]) * 0.01)
if movement.amount < 0:
movement.kind = "debit"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment