Factur-X/ZUGFeRD: UStID-Nr des Kunden nur ausgeben, wenn tatsächlich angegeben
authorMoritz Bunkus <m.bunkus@linet.de>
Thu, 26 Nov 2020 10:04:09 +0000 (11:04 +0100)
committerMoritz Bunkus <m.bunkus@linet.de>
Thu, 26 Nov 2020 14:44:31 +0000 (15:44 +0100)
SL/DB/Helper/ZUGFeRD.pm

index 86daa9c..5455398 100644 (file)
@@ -477,7 +477,7 @@ sub _buyer_trade_party {
   $params{xml}->dataElement("ram:Name", _u8($self->customer->name));
 
   _customer_postal_trade_address(%params, customer => $self->customer);
-  _specified_tax_registration($self->customer->ustid, %params);
+  _specified_tax_registration($self->customer->ustid, %params) if $self->customer->ustid;
 
   $params{xml}->endTag;
   #       </ram:BuyerTradeParty>