report show nature
Some checks failed
Generate check / check-changes (push) Successful in 4s
Generate check / check-generate (push) Has been skipped
Generate check / check-changes (pull_request) Successful in 4s
Quality / check-changes (pull_request) Successful in 3s
Generate check / check-generate (pull_request) Successful in 28s
Quality / tests (pull_request) Failing after 41s

This commit is contained in:
2025-11-24 16:03:28 +00:00
parent 8c784f3b74
commit c323047175
6 changed files with 155 additions and 32 deletions

View File

@@ -30,7 +30,7 @@ type RecordReader interface {
type ReportItem struct {
Symbol string
Nature string
Nature Nature
BrokerCountry int64
AssetCountry int64
BuyValue decimal.Decimal
@@ -118,6 +118,7 @@ func processRecord(ctx context.Context, q *FillerQueue, rec Record, writer Repor
SellTimestamp: rec.Timestamp(),
Fees: buy.Fees().Add(rec.Fees()),
Taxes: buy.Taxes().Add(rec.Fees()),
Nature: buy.Nature(),
})
if err != nil {
return fmt.Errorf("write report item: %w", err)