{% if oInvoiceAddressList|length > 0 %}
{% set oInvoiceAddress = '' %}
{# if only one shipping address available -> set address for address display and form #}
{% if oInvoiceAddressList|length == 1 %}
{% for oAddress in oInvoiceAddressList %}
{% set oInvoiceAddress = oAddress %}
{% endfor %}
{# if more than one shipping address available -> show and handle address selection #}
{% elseif oInvoiceAddressList|length > 1 %}
{# show and handle address selection if multiple shipping addresses available #}
{{ script({ add: "c4s_b2b_address_handler.init('c4s-b2b-address-select-" ~ sAddressType ~ "');", dynamic: __oxid_include_dynamic }) }}
{% set sSelectedAddressId = oxcmp_basket.getPartnerRole(sAddressType) %}
{# #}
{% endif %}
{# display actual shipping address #}
{% if oInvoiceAddress %}
{% block c4s_b2b_address_invoice_address %}
{% if oInvoiceAddress.oxaddress__oxcompany.value %}
{{ oInvoiceAddress.oxaddress__oxcompany.value }}
{% endif %}
{% if oInvoiceAddress.oxaddress__oxaddinfo.value %}
{{ oInvoiceAddress.oxaddress__oxaddinfo.value }}
{% endif %}
{# {% if oInvoiceAddress.oxaddress__oxsal.value and oInvoiceAddress.oxaddress__oxfname.value and oInvoiceAddress.oxaddress__oxlname.value %} #}
{#
{% endif %}
{% for country_id, country in oViewConf.getCountryList() %}
{% if (isset(oInvoiceAddress.oxaddress__oxcountryid) and oInvoiceAddress.oxaddress__oxcountryid == country.oxcountry__oxid.value) %}
{% endblock %}
{% endif %}
{# hidden form fields for fancy oxid to set actual invoice address from b2b account to checkout invoice address #}
{# todo : änderung auf einbindung des standard formulars, für den fall, dass rechnundsadressen geändert werden können! #}
{% if not blLoadAddressInAccountView and oInvoiceAddress %}
{% endif %}
{% else %}