Hello,
I use the following code for the reappointment of directors.
Blockquote
{% capture options3 %}{% for zaakvoerder in period.directors %}{% if zaakvoerder.custom.represented_by_name == blank %}{{zaakvoerder.name}}|{% endif %}{% endfor %}{% endcapture %}
{% capture rechtspersoon_opties3 %}{% for director in period.directors %}{% if director.custom.represented_by_name != blank %}{{director.name}}|{% endif %}{% endfor %}{% endcapture %}
{% fori herbenoeming_bestuurder in period.custom.herbenoeming_bestuurder %}
- {% ic %}{% input herbenoeming_bestuurder.benoeming_type as:select options:type_bestuurder option_values:‘1|2’ %}{% endic %}{% if herbenoeming_bestuurder.benoeming_type ==1 %}{% input herbenoeming_bestuurder.benoeming_geslacht as:select options:geslacht_bestuurder option_values:‘1|2’ %} {% input herbenoeming_bestuurder.options3 options:options3 as:select %}{% for zaakvoerder3 in period.directors %}{% assign zaakvoerder_name = zaakvoerder3.name %} {% if zaakvoerder_name == herbenoeming_bestuurder.options3 %}{% assign zaakvoerder = zaakvoerder3 %}{% break %}{% endif %}{% endfor %}{% if herbenoeming_bestuurder.benoeming_geslacht ==1 %}{% t “t_wonende_te” %}{% elsif herbenoeming_bestuurder.benoeming_geslacht ==2 %}{% t “t_wonende_te_v” %}{% endif %} {{ zaakvoerder.address_1 }}, {{ zaakvoerder.custom.postal_code }} {{ zaakvoerder.custom.city }}{% endif %}{% if herbenoeming_bestuurder.benoeming_type ==2 %}{% input herbenoeming_bestuurder.rechtspersoon_opties3 as:select options:rechtspersoon_opties3 %}{% for director3 in period.directors %}{% assign director_name = director3.name %} {% if director_name == herbenoeming_bestuurder.rechtspersoon_opties3 %}{% assign director = director3 %}{% break %}{% endif %}{% endfor %}{% t “t_Ondernemingsnummer” %} {{ director.custom.vat_identifier }}){% t “t_met_zetel_te” %} {% if director.custom.street != blank or director.custom.street_number != blank %}{{ director.custom.street }} {{ director.custom.street_number }}{% else %}{{ director.address_1 }}{% endif %}, {{ director.custom.postal_code }} {{ director.custom.city }}{% t “t_vertegenwoordiging” %} {% input herbenoeming_bestuurder.geslacht as:select options:geslacht_bestuurderRP option_values:‘1|2’ %} {{director.custom.represented_by_name}} {% if herbenoeming_bestuurder.geslacht ==1 %}{% t “t_wonende_te2” %}{% elsif herbenoeming_bestuurder.geslacht ==2 %}{% t “t_wonende_te2_v” %}{% endif %} {{ director.custom.represented_street }} {{ director.custom.represented_number }}, {{ director.custom.represented_postal_code }} {{ director.custom.represented_city }}{% endif %}{% endfori %}
Blockquote
The problem here is when I add a natural person in the disclosure of the shareholders/directors, the name of the new natural person can not be selected.
So I change the first line of the code to
Blockquote
{% capture options3 %}{% for zaakvoerder in period.directors %}{% if zaakvoerder.custom.represented_by_name == blank %}{{zaakvoerder.custom.last_name}} {{zaakvoerder.custom.first_name}}|{% endif %}{% endfor %}{% endcapture %}
Blockquote
The problem is by this change I can not retrieve the address data of the selected director.
Is it possible to help me?
Thanks a lot,
Sylvie