{if $customerinfo.post_name neq "" || $customerinfo.post_address neq ""} {/if} {foreach from=$customerinfo.contacts item=item} {/foreach} {if $customerinfo.email neq ""} {/if} {foreach from=$customerinfo.messengers item=item} {/foreach} {if $customerinfo.icn neq ""} {/if} {if $customerinfo.ssn neq ""} {/if} {if $customerinfo.ten neq ""} {/if} {if $customerinfo.regon neq ""} {/if} {if $customerinfo.rbe neq ""} {/if} {if $customergroups} {/if}
{$customerinfo.customername|escape} ({$customerinfo.id|string_format:"%04d"}){if $customerinfo.deleted} ({t}deleted customer{/t}){/if}
{if $customerinfo.status eq "3"}{/if} {if $customerinfo.status eq "2"}{/if} {if $customerinfo.status eq "1"}{/if} {if $customerinfo.status eq "3"}{t}connected{/t}{/if} {if $customerinfo.status eq "2"}{t}waiting{/t}{/if} {if $customerinfo.status eq "1"}{t}interested{/t}{/if}
{$customerinfo.address}
{$customerinfo.zip} {$customerinfo.city}
{if $customerinfo.post_name neq ""}{$customerinfo.post_name}{/if} {if $customerinfo_post_address neq ""}
{$customerinfo.post_address}{/if}
{$customerinfo.post_zip} {$customerinfo.post_city}
{$item.phone} {if $item.typestr}[{$item.typestr}]{/if} {if $item.name} ({$item.name|truncate:"40":"...":true}){/if}
{$customerinfo.email}
{if $item.type == $smarty.const.IM_GG} {elseif $item.type == $smarty.const.IM_YAHOO} {elseif $item.type == $smarty.const.IM_SKYPE} {else} {/if} {if $item.type == $smarty.const.IM_GG} {$item.uid} {elseif $item.type == $smarty.const.IM_YAHOO} {$item.uid} {elseif $item.type == $smarty.const.IM_SKYPE} {$item.uid} {else} {$item.uid} {/if}
{t}ICN{/t}: {$customerinfo.icn}
{t}SSN{/t}: {$customerinfo.ssn}
{t}TEN{/t}: {$customerinfo.ten}
{t}REGON{/t}: {$customerinfo.regon}
{t}RBE{/t}: {$customerinfo.rbe}
{foreach from=$customergroups item=customergroup name=customergroup} {$customergroup.name}{if !$smarty.foreach.customergroup.last},{/if} {/foreach}
{t}Balance:{/t} {if $customerinfo.balance < 0}{$customerinfo.balance|money_format}{else}{$customerinfo.balance|default:"0"|money_format}{/if}