fix critical tax calculation

This commit is contained in:
2025-11-24 16:18:02 +00:00
parent 93f1dab3d2
commit bd101ce46a
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 {