mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Correct sign for debit amount
This commit is contained in:
committed by
Florian da Costa
parent
9baf2ff197
commit
ebda3349a4
@@ -76,7 +76,7 @@ class GenericFileParser(FileParser):
|
|||||||
'name': line.get('label', '/'),
|
'name': line.get('label', '/'),
|
||||||
'date_maturity': line.get('date', datetime.datetime.now().date()),
|
'date_maturity': line.get('date', datetime.datetime.now().date()),
|
||||||
'credit': amount > 0.0 and amount or 0.0,
|
'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,
|
'account_id': account_id,
|
||||||
'partner_id': partner_id,
|
'partner_id': partner_id,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user