Correct debit amount

pull/271/head
Matthieu Dietrich 2016-09-07 16:33:53 +02:00 committed by Yannick Vaucher
parent 20618bf483
commit eb00e93f6a
1 changed files with 1 additions and 1 deletions

View File

@ -66,6 +66,6 @@ class TransactionIDFileParser(FileParser):
'name': line.get('label', '/'),
'date_maturity': line.get('date', datetime.datetime.now().date()),
'credit': amount > 0.0 and amount or 0.0,
'debit': amount < 0.0 and amount or 0.0,
'debit': amount < 0.0 and -amount or 0.0,
'transaction_ref': line.get('transaction_id', '/'),
}