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

[fix] convert to float instead of int

parent fc9b927a
No related branches found
No related tags found
No related merge requests found
...@@ -133,8 +133,8 @@ class ScopImportIDFWizard(models.TransientModel): ...@@ -133,8 +133,8 @@ class ScopImportIDFWizard(models.TransientModel):
if len(existing_import_line) > 0: if len(existing_import_line) > 0:
logs += "<li> Ligne " + str(line) + ": Doublon</li>" logs += "<li> Ligne " + str(line) + ": Doublon</li>"
else: else:
debit = int(row["Débit euro"]) debit = float(row['Débit euro'].replace(',','.'))
credit = int(row["Crédit euro"]) credit = float(row['Crédit euro'].replace(',','.'))
if debit > 0 and credit > 0: if debit > 0 and credit > 0:
logs += ( logs += (
"<li> Ligne " + str(line) + ": Montants incorrects</li>" "<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