Skip to content
Snippets Groups Projects
Commit a9e817ea authored by migodoo's avatar migodoo
Browse files

[fix] convert string into float instead of int

parent 06bee2e0
Branches 12.0
No related tags found
No related merge requests found
......@@ -124,8 +124,8 @@ class ScopImportIDFWizard(models.TransientModel):
if len(existing_import_line) > 0:
logs += "<li> Ligne " + str(line) + ": Doublon</li>"
else:
debit = int(row['Débit euro'])
credit = int(row['Crédit euro'])
debit = float(row['Débit euro'].replace(',','.'))
credit = float(row['Crédit euro'].replace(',','.'))
if debit > 0 and credit > 0:
logs += "<li> Ligne " + str(
line) + ": Montants incorrects</li>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment