From 33b3eb6ffae0650aad3b906145318012c0b10e14 Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Thu, 25 Jan 2024 15:36:19 +0000 Subject: [PATCH] Fixing tax ID check --- transmission.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission.go b/transmission.go index d186c42..aeca811 100644 --- a/transmission.go +++ b/transmission.go @@ -52,7 +52,7 @@ func (c *Converter) newDatiTrasmissione(inv *bill.Invoice, env *gobl.Envelope) * func formatoTransmissione(cus *org.Party) string { if cus != nil { taxID := cus.TaxID - if taxID.Country == l10n.IT && taxID.Type == it.TaxIdentityTypeGovernment { + if taxID != nil && taxID.Country == l10n.IT && taxID.Type == it.TaxIdentityTypeGovernment { return formatoTrasmissioneFPA12 } }