fix critical tax calculation
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/nmoniz/any2anexoj/internal"
|
"github.com/nmoniz/any2anexoj/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNature_StringUnknow(t *testing.T) {
|
func TestNature_String(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
nature internal.Nature
|
nature internal.Nature
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ func processRecord(ctx context.Context, q *FillerQueue, rec Record, writer Repor
|
|||||||
SellValue: sellValue,
|
SellValue: sellValue,
|
||||||
SellTimestamp: rec.Timestamp(),
|
SellTimestamp: rec.Timestamp(),
|
||||||
Fees: buy.Fees().Add(rec.Fees()),
|
Fees: buy.Fees().Add(rec.Fees()),
|
||||||
Taxes: buy.Taxes().Add(rec.Fees()),
|
Taxes: buy.Taxes().Add(rec.Taxes()),
|
||||||
Nature: buy.Nature(),
|
Nature: buy.Nature(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user