X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FHelper%2FZUGFeRD.pm;h=5455398cd9c948464521d1c0b1bf07474e93eba9;hb=ec4cffa8a9fe604ecaab2a0af734b5e28c040935;hp=211e88535e0e3f2508b02f8d9dbad0877d004797;hpb=9a14696176033f03c97244f420d93f9c15efed61;p=kivitendo-erp.git diff --git a/SL/DB/Helper/ZUGFeRD.pm b/SL/DB/Helper/ZUGFeRD.pm index 211e88535..5455398cd 100644 --- a/SL/DB/Helper/ZUGFeRD.pm +++ b/SL/DB/Helper/ZUGFeRD.pm @@ -435,7 +435,7 @@ sub _seller_trade_party { # $params{xml}->startTag("ram:DefinedTradeContact"); - $params{xml}->dataElement("ram:PersonName", _u8($sales_person_cfg{name} || $sales_person_cfg{login})); + $params{xml}->dataElement("ram:PersonName", _u8($sales_person->safe_name)); if ($sales_person_cfg{tel}) { $params{xml}->startTag("ram:TelephoneUniversalCommunication"); @@ -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; #