Tryton - Issues



Title FEC should ignore move lines where debit == credit == 0
Priority bug Status unread
Superseder Nosy List risto3
Type Components account_fr
Assigned To Keywords

Created on 2018-05-10.08:49:59 by risto3, last changed by risto3.

msg40608 (view) Author: [hidden] (risto3) Date: 2018-05-10.08:49:58
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
--- a/        Mon Apr 23 17:43:24 2018 +0200
+++ b/        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
+                continue
             row = self.get_row(line, format_date, format_number)
             writer.writerow(map(convert, row))
         value = fec.getvalue()
Date User Action Args
2018-05-10 08:49:59risto3create

Showing 10 items. Show all history (warning: this could be VERY long)