{% extends "page/account/dashboard.html.twig" %} {% block account_dashboard_user_data %} {% set oUser = oxcmp_user %} {% if oUser %} {% set oB2BAccount = oUser.getB2BAccount() %} {% if oB2BAccount %} {# User Data #}

{{ translate({ ident: "DASHBOARD_ACCOUNT_DATA" }) }}

    {% if oUser.oxuser__oxfname.value or oUser.oxuser__oxlname.value %}
  • {{ oUser.oxuser__oxfname.value }} {{ oUser.oxuser__oxlname.value }}
  • {% endif %}
  •  
  • {% if oUser.oxuser__oxusername.value %}
  • {{ oUser.oxuser__oxusername.value }}
  • {% endif %} {% block c4s_b2b_account_dashboard_user_fon %} {% if oUser.oxuser__oxfon.value %}
  • {{ oUser.oxuser__oxfon.value }}
  • {% endif %} {% endblock %} {#
  •  
  • #} {# {% if oUser.oxuser__oxcompany.value %}
  • {{ oUser.oxuser__oxcompany.value }}
  • {% endif %} #} {# {% if oUser.oxuser__oxcustnr.value %}
  • {{ translate({ ident: "DASHBOARD_CUSTOMERID", suffix: "COLON" }) }} {{ oUser.oxuser__oxcustnr.value }}
  • {% endif %} #} {# {% if oUser.oxuser__oxustid.value %} #} {#
  • {{ oUser.oxuser__oxustid.value }}
  • #} {# {% endif %} #} {# {% if oUser.oxuser__oxstreet.value or oUser.oxuser__oxstreetnr.value %} #} {#
  •  
  • #} {#
  • {{ oUser.oxuser__oxstreet.value }} {{ oUser.oxuser__oxstreetnr.value }}
  • #} {# {% endif %} #} {# {% if oUser.oxuser__oxcity.value %}
  • {{ oUser.oxuser__oxzip.value }} {{ oUser.oxuser__oxcity.value }}
  • {% endif %} #} {# {% if oUser.oxusr__oxcountry.value %}
  • {{ oUser.oxusr__oxcountry.value }}
  • {% endif %} #} {# {% if oUser.oxuser__oxfax.value %} #} {#
  •  
  • #} {# {% if oUser.oxuser__oxfax.value %}
  • {{ oUser.oxuser__oxfax.value }}
  • {% endif %} #} {# {% endif %} #}
{% else %} {{ parent() }} {% endif %} {% endif %} {% endblock %} {% block account_dashboard_contact_person %} {# user dashboard right - account address #} {% set oB2BAccount = oxcmp_user.getB2BAccount() %} {% set sClientAddressType = "AG" %} {% set sInvoiceAddressType = "RE" %} {# display AG address if available for b2b account #} {% if oB2BAccount and oB2BAccount.getAddresses(sClientAddressType)|length > 0 %} {% set oClientAddressList = oB2BAccount.getAddresses(sClientAddressType) %}
{% include "@c4s_b2b/widget/address/c4s_b2b_widget_address_partner.html.twig" with {sAddressType: sClientAddressType, oPartnerAddressList: oClientAddressList} %}
{# fallback if no AG address available: display RE address if available for b2b account #} {% elseif oB2BAccount and oB2BAccount.getAddresses(sInvoiceAddressType)|length > 0 %} {% set oInvoiceAddressList = oB2BAccount.getAddresses(sInvoiceAddressType) %}
{% include "@c4s_b2b/widget/address/c4s_b2b_widget_address_invoice.html.twig" with {sAddressType: sInvoiceAddressType, oInvoiceAddressList: oInvoiceAddressList, blLoadAddressInAccountView: false} %}
{# fallback if no AG and RE addresses available: display default (contact person) #} {% else %} {{ parent() }} {% endif %} {% endblock %}