diff --git a/items.go b/items.go index cc1b077..c4bafb7 100644 --- a/items.go +++ b/items.go @@ -4,6 +4,7 @@ import ( "strconv" "github.com/invopop/gobl/bill" + "github.com/invopop/gobl/cbc" "github.com/invopop/gobl/i18n" "github.com/invopop/gobl/regimes/it" "github.com/invopop/gobl/tax" @@ -120,7 +121,7 @@ func findRiferimentoNormativo(rateTotal *tax.RateTotal) string { nature := rateTotal.Ext[it.ExtKeySDINature].Code() for _, c := range def.Codes { - if c.Code == nature { + if c.Code == cbc.Code(nature) { return c.Name[i18n.IT] } }