Skip to content

Commit

Permalink
Fixing tax ID check
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Jan 25, 2024
1 parent 9d62bb4 commit 33b3eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transmission.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 33b3eb6

Please sign in to comment.