Fix Scotia parser wrong direction
This commit is contained in:
@@ -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