Fixes convertion to decimal of transactions amount
This commit is contained in:
parent
c41bfb4bdf
commit
647db5e86f
@ -27,7 +27,7 @@ class Transaction:
|
|||||||
self.description = " ".join(arg[1].split())
|
self.description = " ".join(arg[1].split())
|
||||||
self.bank = arg[2]
|
self.bank = arg[2]
|
||||||
if type(arg[3]) is float:
|
if type(arg[3]) is float:
|
||||||
self.value = arg[3]
|
self.value = Decimal(str(arg[3]))
|
||||||
else:
|
else:
|
||||||
self.value = Decimal(args[3])
|
self.value = Decimal(args[3])
|
||||||
self.category = arg[4]
|
self.category = arg[4]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user