# <ram:DefinedTradeContact>
$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");
$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>