Skip to content

Commit

Permalink
Correct wrong signs on viseca importer
Browse files Browse the repository at this point in the history
  • Loading branch information
tarioch committed Sep 9, 2022
1 parent e4d0128 commit b96732b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tariochbctools/importers/viseca/importer.py
Original file line number Diff line number Diff line change
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 b96732b

Please sign in to comment.