]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Fix bug in sepa transfer
authorHenryk Plötz <henryk@ploetzli.ch>
Mon, 10 Sep 2018 14:02:06 +0000 (16:02 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:34:29 +0000 (19:34 +0100)
fints/client.py

index 9b41fcac600d5cfd52632d28d2f3d354ff2a7233..4446071876de2619faec0c28277c10d9578c4c00 100644 (file)
@@ -598,7 +598,7 @@ class FinTS3Client:
             "name": recipient_name,
             "IBAN": iban,
             "BIC": bic,
-            "amount": int(Decimal(amount) * 100),  # in cents
+            "amount": round(Decimal(amount) * 100),  # in cents
             "execution_date": datetime.date(1999, 1, 1),
             "description": reason,
             "endtoend_id": endtoend_id,