# Document 'bedrijfsparameters' (own design)

**URL:** <https://community.silverfin.com/t/document-bedrijfsparameters-own-design/2034>\
**Category:** Templates\
**Created:** [March 2, 2021, 8:13am UTC](https://community.silverfin.com/t/document-bedrijfsparameters-own-design/2034 "2021-03-02T08:13:50Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Nadja](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nadja](https://community.silverfin.com/u/Nadja)\
**Post date:** [March 10, 2021, 10:19pm UTC](https://community.silverfin.com/t/document-bedrijfsparameters-own-design/2034/9 "2021-03-10T22:19:14Z")

</div>

Hi Kimberly,

I looked around in the community en found this :

{% if director.custom.represented\_by\_name != blank %}  
{% assign default\_type = “legal” %}  
{% else %}  
{% assign default\_type = “nature” %}  
{% endif %}

{% assign type = director.custom.type | default:default\_type %}

{% if type == “legal” %} met als vaste vertegenwoordiger {{ director.custom.represented\_by\_name }}{% endif %}

Now it’s working … I think 🙂

My other question.  
I like to have table A in my export but there is something wrong with my template.  
case: table A : [CASE: different table structures](https://community.silverfin.com/t/case-different-table-structures/1529)

My template :  
{% stripnewlines %}  
{% newline %}  
**{::font size=“xl”} _{{ company.name }}_ {{ company\_form }}{:/font}**  
  
  
{::font size=“m”} **BEDRIJFSPARAMETERS VAN DE VENNOOTSCHAP** {:/font}  
{% endstripnewlines %}

{% stripnewlines %}  
|Oprichtingsdatum:|{{ company.custom.establishment.date | date:"%d %B %Y"}}  
{% newline %}  
|Inbreng/kapitaal:|{{ -#100000-#111900-#110900| currency }} {{ custom.revenue.value }} EURO  
{% newline %}  
|Rechtsvorm:|{{ company.company\_form }}  
{% newline %}  
|Adres:|{{ company.street }}, {{ company.city }} ( {{ company.country }} )  
{% newline %}  
|Ondernemingsnummer:|{{ company.vat\_identifier }}  
{% newline %}  
|Ondernemingsrechtbank:|{{ rpr\_naam }}

{% comment %}Show the correct RPR{% endcomment %}  
{% assign courts\_array = “31;Brussel, Franstalige|32;Brussel, Nederlandstalige|3;Antwerpen, afdeling Antwerpen|10;Antwerpen, afdeling Hasselt|17;Antwerpen, afdeling Mechelen|25;Antwerpen, afdeling Tongeren|27;Antwerpen, afdeling Turnhout|30;Eupen|5;Gent, afdeling Brugge|7;Gent, afdeling Dendermonde|9;Gent, afdeling Gent|12;Gent, afdeling Ieper|13;Gent, afdeling Kortrijk|22;Gent, afdeling Oostende|23;Gent, afdeling Oudenaarde|29;Gent, afdeling Veurne|14;Leuven|4;Liège, afdeling Arlon|8;Liège, afdeling Dinant|11;Liège, afdeling Huy|15;Liège, afdeling Liège|16;Liège, afdeling Marche-en-Famenne|19;Liège, afdeling Namur|20;Liège, afdeling Neufchâteau|28;Liège, afdeling Verviers|6;Hainaut, afdeling Charleroi|18;Hainaut, afdeling Mons|26;Hainaut, afdeling Tournai|21;Waals-Brabant, afdeling Nijvel” | split:"|" %}

{% comment %}the string value RPR is pushed to company.custom.rpr.name while the XBRL code is to company.custom.rpr.naam{% endcomment %}  
{% assign full\_name\_rpr = company.custom.rpr.name %}  
{% assign code\_rpr = company.custom.rpr.naam %}

{% comment %}RPR from the dropdown is shown, otherwise the string is shown{% endcomment %}  
{% if code\_rpr == blank %}  
{% assign rpr\_naam = full\_name\_rpr %}  
{% else %}  
{% if code\_rpr != blank %}  
{% for court in courts\_array %}  
{% assign court\_array = court | split:";" %}  
{% assign code = court\_array[0] %}  
{% assign name = court\_array[1] %}

```
  {% if INT(code_rpr) == INT(code) %}
    {% assign rpr_naam = name %}
    {% break %}
  {% endif %}
{% endfor %}

```

{% endif %}  
{% endif %}  
{% if rpr\_naam != blank %}  
{% assign rpr\_naam = rpr\_naam | prepend:"RPR. " %}  
{% endif %}

{{ rpr\_naam }}

{% endstripnewlines %}

  
  
  
\_Bestuur\_:   
{% stripnewlines %} {% newline %} |Bestuurder(s) / Zaakvoerder(s) |Functie |Begin mandaat |Einde mandaat {% newline %} |:----25%----: |:----25%----: |:----25%----: |:----25%----: {% ic %}#{% endic %} {% comment %}shows GREY header in INPUT mode{% endcomment %} {% nic %}+{% endnic %}{% comment %}shows BLACK LINE header in OUTPUT mode{% endcomment %} {% newline %} |- |- |- |- {{ active\_directors\_bookyear | split:";" % }} {% assign active\_directors\_bookyear = period.directors.active\_as\_director %} {% for director in active\_directors\_bookyear%} {% assign words = director.name {% assign words = director.name {% assign lastname = “” %} {% assign person\_first\_name = “” %} {% assign current\_signature = “” %} {% for word in words %} {% if forloop.last %} {% comment %}correct for syncs like adminis{% endcomment %} {% assign person\_first\_name = word %} {% else %} {% assign lastname = lastname | append:" " | append:word %} {% endif %} {% endfor %} {% newline %} {% if director.custom.first\_name == blank and director.custom.last\_name == blank %} {% assign current\_signature = director.name %} {% elsif director.custom.first\_name == blank and director.custom.last\_name != blank %} {% assign current\_signature = current\_signature | append:person\_first\_name | append:" " | append:director.custom.last\_name %} {% elsif director.custom.first\_name != blank and director.custom.last\_name == blank %} {% assign current\_signature = current\_signature | append:director.custom.first\_name | append:" " | append:lastname %} {% else %} {% assign current\_signature = current\_signature | append:director.custom.first\_name | append:" " | append:director.custom.last\_name %} {% endif %} |{{ current\_signature }}{% if director.custom.represented\_by\_name != blank %} {% assign default\_type = "legal" %} {% else %} {% assign default\_type = "nature" %} {% endif %} {% assign type = director.custom.type | default:default\_type %} {% if type == "legal" %} met als vaste vertegenwoordiger {{ director.custom.represented\_by\_name }}{% endif %} |{{ director.custom.function\_title }} |{{ director.director\_start\_date | date:"%d/%m/%Y" }} |{{ director.director\_end\_date | date:"%d/%m/%Y" }} {% endfor %}

{% endstripnewlines %}

---

_[View the full topic](https://community.silverfin.com/t/document-bedrijfsparameters-own-design/2034)._
