diff --git a/internal/nature_test.go b/internal/nature_test.go index dded2fb..26c764c 100644 --- a/internal/nature_test.go +++ b/internal/nature_test.go @@ -6,7 +6,7 @@ import ( "github.com/nmoniz/any2anexoj/internal" ) -func TestNature_StringUnknow(t *testing.T) { +func TestNature_String(t *testing.T) { tests := []struct { name string nature internal.Nature diff --git a/internal/report.go b/internal/report.go index 4007167..1aa9ca1 100644 --- a/internal/report.go +++ b/internal/report.go @@ -117,7 +117,7 @@ func processRecord(ctx context.Context, q *FillerQueue, rec Record, writer Repor SellValue: sellValue, SellTimestamp: rec.Timestamp(), Fees: buy.Fees().Add(rec.Fees()), - Taxes: buy.Taxes().Add(rec.Fees()), + Taxes: buy.Taxes().Add(rec.Taxes()), Nature: buy.Nature(), }) if err != nil {