Merge branch 'TP-202105-fees_in_crypto' of https://github.com/tpokorra/walletmonitor into TP-202105-fees_in_crypto
This commit is contained in:
@@ -20,6 +20,8 @@ def separate_fees(apps, schema_editor):
|
||||
tr.transaction_type = 'T'
|
||||
|
||||
tr.fiat_amount = tr.amount
|
||||
if tr.fiat_amount < 0:
|
||||
tr.fiat_amount = -1 * tr.fiat_amount
|
||||
tr.fiat_fee = 0
|
||||
|
||||
tr.save()
|
||||
|
||||
Reference in New Issue
Block a user