Merge pull request #114 from odoucet/fix-cfonb

fix cfonb return line bug
This commit is contained in:
Luc De Meyer 2025-02-28 19:33:15 +01:00 committed by GitHub
commit 84ba72dab0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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