FEC should ignore move lines where debit == credit == 0
running Test-Compta-Demat I noticed the following observations in the test report:
Les anomalies suivantes figurent dans le fichier
o Structure fichier incorrecte, débit/crédit ... renseignés sur une même ligne ... , ou débit=crédit=0
[7] fois dans le fichier
Checking the file, I could confirm seeing lines where débit == crédit == 0
The following patch in account_fr seems to fix this issue:
diff -r 0a79f2a6089d account.py
--- a/account.py Mon Apr 23 17:43:24 2018 +0200
+++ b/account.py Thu May 10 08:40:33 2018 +0200
@@ -117,6 +117,8 @@
for row in self.get_start_balance():
writer.writerow(map(convert, row))
for line in self.get_lines():
+ if not line.debit and not line.credit:
+ continue
row = self.get_row(line, format_date, format_number)
writer.writerow(map(convert, row))
value = fec.getvalue()