Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into iva-code-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Feb 8, 2024
2 parents 38e8a8d + fa0275b commit eef3fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion items.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {

Check failure on line 124 in items.go

View workflow job for this annotation

GitHub Actions / golangci-lint

unnecessary conversion (unconvert)
return c.Name[i18n.IT]
}
}
Expand Down

0 comments on commit eef3fc6

Please sign in to comment.