Fix Scotia parser wrong direction
This commit is contained in:
1 parent
f973ead318
commit
e690a2c4d2
1 file changed
+1
-1
@@ -235,7 +235,7 @@ class ScotiaBankParser(TransactionParser):
|
|||||||
if matches is None:
|
if matches is None:
|
||||||
raise TransactionParsingFailed("no matches for extraction RE")
|
raise TransactionParsingFailed("no matches for extraction RE")
|
||||||
|
|
||||||
amount = Decimal(matches["amount"].replace(",", ""))
|
amount = Decimal(matches["amount"].replace(",", "")) * -1
|
||||||
date = parse_email_time(msg["Date"]).date()
|
date = parse_email_time(msg["Date"]).date()
|
||||||
|
|
||||||
if matches["account"] not in self._account_map:
|
if matches["account"] not in self._account_map:
|
||||||
|
|||||||
Reference in new issue
Block a user