From bd101ce46a06ea116b74840ef9452bed04e5896d Mon Sep 17 00:00:00 2001 From: Natercio Moniz Date: Mon, 24 Nov 2025 16:18:02 +0000 Subject: [PATCH] fix critical tax calculation --- internal/nature_test.go | 2 +- internal/report.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {