Skip to content

Commit

Permalink
Merge pull request #72 from tarioch/bugfix/viseca_importer_wrong_sign
Browse files Browse the repository at this point in the history
Correct wrong signs on viseca importer
  • Loading branch information
tarioch committed Sep 9, 2022
2 parents e4d0128 + b96732b commit 11e1446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tariochbctools/importers/viseca/importer.py
Expand Up @@ -76,9 +76,9 @@ def extract(self, file, existing_entries):
if lastTrxDate:
amt = None
if "-" in lastAmount:
amt = -amount.Amount(D(lastAmount.strip(" -")), "CHF")
amt = amount.Amount(D(lastAmount.strip(" -")), "CHF")
else:
amt = amount.Amount(D(lastAmount), "CHF")
amt = -amount.Amount(D(lastAmount), "CHF")

book_date = datetime.strptime(lastTrxDate, "%d.%m.%y").date()

Expand Down

0 comments on commit 11e1446

Please sign in to comment.