{block name="customerinfobox-leftcolumn"}
|
{$_CSTATUSES[$customerinfo.status].singularlabel}
|
{if $customerinfo.division}
|
{$customerinfo.division}
|
{/if}
|
{if $customerinfo.type == $smarty.const.CTYPES_COMPANY}{assign var='type' value=$smarty.const.CTYPES_COMPANY}{$_CTYPES.$type}{elseif $customerinfo.type == $smarty.const.CTYPES_PRIVATE}{assign var='type' value=$smarty.const.CTYPES_PRIVATE}{$_CTYPES.$type}{/if}
|
{foreach $customerinfo.addresses as $v}
{if $v.location_address_type == $smarty.const.BILLING_ADDRESS}
 |
{if $v.teryt}{t a=$v.location}$a (TERRIT){/t}{else}{$v.location}{/if}
|
{break}
{/if}
{/foreach}
{foreach $customerinfo.addresses as $v}
{if $v.location_address_type == $smarty.const.POSTAL_ADDRESS}
 |
{if $v.teryt}{t a=$v.location}$a (TERRIT){/t}{else}{$v.location}{/if}
|
{break}
{/if}
{/foreach}
{foreach $customerinfo.addresses as $v}
{if $v.location_address_type != $smarty.const.BILLING_ADDRESS && $v.location_address_type != $smarty.const.POSTAL_ADDRESS}
{if $v.location_address_type == $smarty.const.DEFAULT_LOCATION_ADDRESS}
{$icon = 'img/pin_blue.png'}
{$title = trans('default location address')}
{else}
{$icon = 'img/location.png'}
{$title = trans('location/recipient address')}
{/if}
|
{if $v.teryt}{t a=$v.location}$a (TERRIT){/t}{else}{$v.location}{/if}
|
{/if}
{/foreach}
{foreach $_CUSTOMERCONTACTTYPES as $type => $properties}
{if !empty($customerinfo[$type|cat:"s"])}
|
|
{/if}
{/foreach}
{if $customerinfo.pin}
|
{$customerinfo.pin}
|
{/if}
{if $customerinfo.icn != ""}
|
{trans("ICN")}: {$customerinfo.icn}
|
{/if}
{if $customerinfo.ssn != ""}
|
{trans("SSN")}: {$customerinfo.ssn}
|
{/if}
{if $customerinfo.ten != ""}
|
{trans("TEN")}: {$customerinfo.ten}
|
{/if}
{if $customerinfo.regon != ""}
|
{trans("REGON")}: {$customerinfo.regon}
|
{/if}
{if $customerinfo.rbename != ""}
|
{trans("RBE Name:")}
{$customerinfo.rbename|replace:"\n":" "}
|
|
{/if}
{if $customerinfo.rbe != ""}
|
{trans("RBE")}: {$customerinfo.rbe}
|
{/if}
{if $customerinfo.bankaccount}
|
{format_bankaccount($customerinfo.bankaccount)}
|
{/if}
|
{trans("Deadline:")}
|
{if $customerinfo.paytime == -1}{trans("default")}{else}{$customerinfo.paytime} {trans("days")}{/if}
|
{trans("Payment type:")}
|
{assign var=paytype value=$customerinfo.paytype}{if $_PAYTYPES.$paytype}{$_PAYTYPES.$paytype}{else}{trans("default")}{/if}
|
{if $customerinfo.cutoffstop > $smarty.now}
{if $customerinfo.cutoffstop == intval(pow(2, 31) - 1)}
{trans("Cutoff suspended indefinitely")}
{else}
{t a=$customerinfo.cutoffstop|date_format:"%Y/%m/%d"}Cutoff suspended to $a{/t}
{/if}
|
{/if}
|
|
{block name="customerinfobox-options"}
{trans("Consent to personal data processing:")}
|
{if $customerinfo.consentdate}{$customerinfo.consentdate}{else}{trans("no")}{/if}
|
{trans("Cancellation of a traditional invoice (agreement on an electronic invoice):")}
|
{if $customerinfo.einvoice}{trans("yes")}{else}{trans("no")}{/if}
|
{trans("Consent to invoices delivery via e-mail:")}
|
{if $customerinfo.invoicenotice}{trans("yes")}{else}{trans("no")}{/if}
|
{trans("Consent to messages delivery via e-mail or sms:")}
|
{if $customerinfo.mailingnotice}{trans("yes")}{else}{trans("no")}{/if}
|
{/block}
|
{/block}