{if $customerinfo.post_name != "" || $customerinfo.post_address != ""} {/if} {foreach $customerinfo.contacts as $item} {/foreach} {if !empty($customerinfo.emails)} {/if} {if !empty($customerinfo.ims)} {/if} {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}
{$customerinfo.customername|escape} ({$customerinfo.id|string_format:"%04d"}){if $customerinfo.deleted} ({trans("deleted customer")}){/if}
{$_CSTATUSES[$customerinfo.status].singularlabel}
{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}
{if $customerinfo.post_name != ""}{$customerinfo.post_name}{/if} {if $customerinfo.post_address != ""}
{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}
{$item.phone} {if $item.typestr}[{$item.typestr}]{/if} {if $item.name} ({$item.name|truncate:"40":"...":true}){/if}
{foreach $customerinfo.emails as $email} {$email.email} {if $email.name} ({$email.name|truncate:"40":"...":true}){/if} {if !$email@last}
{/if} {/foreach}
{$properties = $_CUSTOMERCONTACTTYPES['im']} {foreach $customerinfo.ims as $im} {if isset($properties.formatter)}{call_user_func($properties['formatter'], $im)}{else}{$im.contact}{/if} {if $im.typestr}[{$im.typestr}]{/if} {if $im.name} ({$im.name|truncate:"40":"...":true}){/if} {if !$im@last}
{/if} {/foreach}
{trans("ICN")}: {$customerinfo.icn}
{trans("SSN")}: {$customerinfo.ssn}
{trans("TEN")}: {$customerinfo.ten}
{trans("REGON")}: {$customerinfo.regon}
{trans("RBE")}: {$customerinfo.rbe}
{foreach from=$customergroups item=customergroup name=customergroup} {$customergroup.name}{if !$smarty.foreach.customergroup.last},{/if} {/foreach}
{trans("Balance:")} {if $customerinfo.balance < 0}{$customerinfo.balance|money_format}{else}{$customerinfo.balance|default:"0"|money_format}{/if}