Correct sign for debit amount

pull/272/head
Matthieu Dietrich 2016-07-06 16:25:54 +02:00 committed by Yannick Vaucher
parent 658b810f85
commit daa111b87f
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class GenericFileParser(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,
'account_id': account_id,
'partner_id': partner_id,
}