fix cfonb return line bug

This commit is contained in:
Olivier Doucet
2025-02-28 14:00:42 +01:00
committed by Luc De Meyer
parent 236b356b5b
commit 5cace2784c

View File

@@ -369,8 +369,7 @@ class EbicsFile(models.Model):
Statements without transactions are removed. Statements without transactions are removed.
""" """
datas = [] datas = []
file_data = base64.b64decode(self.data) file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"")
file_data.replace(b"\n", b"").replace(b"\r", b"")
if len(file_data) % 120: if len(file_data) % 120:
message = _( message = _(
"Incorrect CFONB120 file:\n" "Incorrect CFONB120 file:\n"