Legal reporting - Address directors

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

Hi @svalais

Thank you for the question.
Is the address data you’re referring to stored in one of our Silverfin templates?

Please also use the correct quotes when posting code snippets as that makes it easier for us to help you

Kind regards,
Romy

Hi Romy,

Yes the data comes from the template Shareholders/Associates & Governance body/Managers.

Best regards,

Sylvie

Hi @svalais

If you are looking for the fields related to the address of the natural person, you should be able to use the following:

zaakvoerder.custom.street
zaakvoerder.custom.street_number
zaakvoerder.custom.postal_code
zaakvoerder.custom.city
zaakvoerder.custom.country_dropdown

Kind regards
Robbe

Hi Robbe,

Yes I know and I already use this fields.

I use now the following code to retrieve this data after selecting a name in the list:

I need to change this code

{% for zaakvoerder3 in period.directors %}{% assign zaakvoerder_name = zaakvoerder_name2 %} {% 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 }}

I now looking for the field Name but I change the code for a natural person to

{% 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 %}

I didn’t find how to search on the field last_name and first_name together.

Can you help me?

Thanks a lot,

Sylvie

Hello,

Any news for my question?

Thanks a lot,

Sylvie