{if $customerinfo.post_name != "" || $customerinfo.post_address != ""} {/if} {foreach $_CUSTOMERCONTACTTYPES as $type => $properties} {if isset($customerinfo[$type|cat:"s"])} {/if} {/foreach} {if $customerinfo.icn != ""} {/if} {if $customerinfo.ssn != ""} {/if} {if $customerinfo.ten != ""} {/if} {if $customerinfo.regon != ""} {/if} {if $customerinfo.rbe != ""} {/if} {if $customergroups} {/if} {if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')} {/if}
{icon name="customer"} {$customerinfo.customername|escape} ({$customerinfo.id|string_format:"%04d"}){if $customerinfo.deleted} ({trans("deleted customer")}){/if}
{icon name="customer-status-{$_CSTATUSES[$customerinfo.status].alias}"} {$_CSTATUSES[$customerinfo.status].singularlabel}
{icon name="home"} {if $customerinfo.postoffice && $customerinfo.postoffice != $customerinfo.city && $customerinfo.street}{$customerinfo.city}, {/if}{$customerinfo.address}
{$customerinfo.zip} {if $customerinfo.postoffice}{$customerinfo.postoffice}{else}{$customerinfo.city}{/if}
{icon name="mail"} {if $customerinfo.post_name != ""}{$customerinfo.post_name|escape}{/if} {if $customerinfo.post_address != ""}{if $customerinfo.post_name != ""}
{/if} {if $customerinfo.post_postoffice && $customerinfo.post_postoffice != $customerinfo.post_city && $customerinfo.post_street}{$customerinfo.post_city}, {/if} {$customerinfo.post_address} {/if}
{$customerinfo.post_zip} {if $customerinfo.post_postoffice}{$customerinfo.post_postoffice}{else}{$customerinfo.post_city}{/if}
{icon name="{$properties.ui.legend.icon}"} {$properties.ui.legend.text} {foreach $customerinfo[$type|cat:"s"] as $contact} {/foreach}
{if isset($properties.formatter)}{call_user_func($properties['formatter'], $contact)}{else}{$contact.contact|escape}{/if} {if $contact.typestr}[{$contact.typestr}]{/if} {if $contact.name} ({$contact.name|trunescape:40}){/if}
{icon name="user-id-number"} {trans("Identity type:")}: {trans($_IDENTITY_TYPES[$customerinfo.ict])}
{icon name="user-id-number"} {trans("Identity number:")}: {$customerinfo.icn|escape}
{icon name="user-id-number"} {trans("SSN")}: {$customerinfo.ssn|escape}
{icon name="user-id-number"} {trans("TEN")}: {$customerinfo.ten}
{icon name="user-id-number"} {trans("REGON")}: {$customerinfo.regon}
{icon name="user-id-number"} {trans("RBE")}: {$customerinfo.rbe|escape}
{icon name="customergroup"} {foreach from=$customergroups item=customergroup name=customergroup} {$customergroup.name}{if !$smarty.foreach.customergroup.last},{/if} {/foreach}
{icon name="money"} {trans("Balance:")} {if $customerinfo.balance < 0}{$customerinfo.balance|money_format}{else}{$customerinfo.balance|default:"0"|money_format}{/if}