if both credit and debit are empty, set value to 0
This commit is contained in:
parent
ec05550073
commit
a8b1c5ed5b
1 changed files with 3 additions and 1 deletions
|
|
@ -56,8 +56,10 @@ class FrenchTransaction(Transaction):
|
|||
|
||||
if len(debit) > 0:
|
||||
self.amount = - abs(Decimal(debit))
|
||||
else:
|
||||
elif len(credit) > 0:
|
||||
self.amount = Decimal(credit)
|
||||
else:
|
||||
self.amount = 0.0
|
||||
|
||||
def parse(self, date, raw):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue