Skip to content

Commit

Permalink
Self transactions: Moved fee amount to sent.
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallapointe committed Feb 24, 2023
1 parent b8838b8 commit 3e7f841
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/account/csv.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,14 @@ export class CsvService {
sentCurrency: sentCurrency,
receivedAmount: row.receivedAmount,
receivedCurrency: receivedCurrency,
feeAmount: row.feeAmount,
feeAmount:
row.sentAmount.toString() === '0' && row.feeAmount != ''
? ''
: row.feeAmount, // Handle self transaction for Koinly
feeCurrency:
row.sentAmount.toString() === '0' && row.feeAmount != ''
? ''
: row.feeCurrency, // Handle self transaction
: row.feeCurrency, // Handle self transaction for Koinly
netWorthAmount: row.netWorthAmount,
netWorthCurrency: row.netWorthCurrency,
label:
Expand Down

0 comments on commit 3e7f841

Please sign in to comment.