fix for fiat amount

This commit is contained in:
2021-05-11 20:58:24 +02:00
parent 1ef459bcad
commit 0d9466c1fe
@@ -20,6 +20,8 @@ def separate_fees(apps, schema_editor):
tr.transaction_type = 'T' tr.transaction_type = 'T'
tr.fiat_amount = tr.amount tr.fiat_amount = tr.amount
if tr.fiat_amount < 0:
tr.fiat_amount = -1 * tr.fiat_amount
tr.fiat_fee = 0 tr.fiat_fee = 0
tr.save() tr.save()