{$pin_tip = ConfigHelper::getConfig('phpui.pin_restriction_description')} {if !$pin_tip} {if $pin_min_size == $pin_max_size} {$pin_tip=trans("Enter \$a characters PIN code", $pin_min_size)} {else} {$pin_tip=trans("Enter \$a to \$b characters PIN code", $pin_min_size, $pin_max_size)} {/if} {/if}
{hint content="Enter first/lastname of customer"}
{hint content="Enter first name of customer (optional)"}
{hint content="Enter customer identifier in external system (optional)"}
{block name="customereditbox-leftcolumn"} {if $divisions} {/if} {$addr_counter = 0} {foreach $customerinfo.addresses as $v} {if $v.location_address_type != $smarty.const.BILLING_ADDRESS && $v.location_address_type != $smarty.const.POSTAL_ADDRESS } {/if} {/foreach} {include file="customer/customercontacts.html" customerinfo=$customerinfo formelemprefix="customerdata"} {/block}
{hint content="Select legal personality type"}
{foreach $customerinfo.addresses as $v} {if $v.location_address_type == $smarty.const.BILLING_ADDRESS} {$v.prefix = "customerdata[addresses]["|cat:$addr_counter|cat:"]"} {$addr_counter = $addr_counter + 1} {$v.hide_name=true} {location_box_expandable data=$v} {/if} {/foreach}
{$postal_addr = 0} {foreach $customerinfo.addresses as $v} {if $v.location_address_type == $smarty.const.POSTAL_ADDRESS} {$v.prefix = "customerdata[addresses]["|cat:$addr_counter|cat:"]"} {$addr_counter = $addr_counter + 1} {$postal_addr = 1} {location_box_expandable data=$v} {/if} {/foreach} {* if postal address is not set *} {if $postal_addr == 0} {$tmp['location_address_type'] = $smarty.const.POSTAL_ADDRESS} {$tmp['prefix'] = "customerdata[addresses]["|cat:$addr_counter|cat:"]"} {$addr_counter = $addr_counter + 1} {location_box_expandable data=$tmp} {/if}
{if $v.location_address_type == $smarty.const.DEFAULT_LOCATION_ADDRESS} {else} {/if} {$v.prefix = "customerdata[addresses]["|cat:$addr_counter|cat:"]"} {$address_idx = $addr_counter} {$v.default_type = 1} {$v.delete_button = 1} {$v.billing_address_button = 1} {$v.post_address_button = 1} {$addr_counter = $addr_counter + 1} {location_box_expandable data=$v}
{button class="lms-ui-location-add-button" icon="add" label="Add address" data_prefix="customerdata"}
{button type="link" icon="next" id="randomize" tip="Generate PIN"} {hint text=$pin_tip}
{trans("Identity document")}
{trans("SSN")} {if $customerinfo.ssnwarning} {/if} {if $customerinfo.ssnexistencewarning} {/if}
{trans("TEN")} {if $customerinfo.tenwarning} {/if} {if $customerinfo.tenexistencewarning} {/if} {button type="link" icon="division" class="gusapi-button" data_type=Utils::GUS_REGON_API_SEARCH_TYPE_TEN tip="Click here to autocomplete company data from GUS REGON database"}
{trans("REGON")} {button type="link" icon="division" class="gusapi-button" data_type=Utils::GUS_REGON_API_SEARCH_TYPE_REGON tip="Click here to autocomplete company data from GUS REGON database"}
{trans("RBE Name")}
{hint content="Enter National Court Register / Register of Business Entities Name (optional)"}
{trans("RBE")}
{button type="link" icon="division" class="gusapi-button" data_type=Utils::GUS_REGON_API_SEARCH_TYPE_RBE tip="Click here to autocomplete company data from GUS REGON database"} {hint content="Enter National Court Register / Register of Business Entities Number (optional)"}
{trans("Deadline")}
{hint content="Select default deadline in days"}
{trans("Payment type")}
{paytypes elemname="customerdata[paytype]" selected=$customerinfo.paytype trigger="paytype"} {hint content="Select default invoices payment type"}
{trans("Cutoff suspending")}
  {hint content="Select date of cutoff suspending (optional)"}
{block name="customereditbox-options"} {foreach $_CCONSENTS as $type => $consent} {/foreach} {/block}
{trans("Consents")}
{$consent.label}
{block name="customereditbox-rightcolumn"} {/block}
{hint content="Enter additional information (optional)"}
{hint content="Enter notice contents (optional)"}
{hint content="Enter notes (optional)"}
{hint content="Enter document memo (optional)"}
{trans("Balance")} {if $customerinfo.balance < 0} {moneyf($customerinfo.balance)} {else} {moneyf($customerinfo.balance)} {/if}
{trans("Created")} {$customerinfo.createdby|escape}, {$customerinfo.creationdateh}
{trans("Modified")} {if $customerinfo.moddate}{$customerinfo.modifiedby|escape}, {$customerinfo.moddateh}{else}-{/if}
{button type="submit" id="save-button" icon="save" label="Submit"} {button id="cancel-button" icon="cancel" label="Cancel" onclick="location.href = '{$backurl}';"}