Hi everybody,
First time asking something on this community.
We have a problem with a report who shows all the shareholders, but I wan’t see/includes the “Bare ownership”. An idea how to change the following code?
I have already tried to simply remove the “Naakte eigendem”, “Nue-propriété” and “Bare owneship” but it seems not to be so easy…
{% assign shareholders = period.shareholders %}
{% assign show_suffix = false %}
{% assign total_shares = 0 %}
{% for shareholder in shareholders %}
{% if shareholder.custom.kind_of_shares == “Naakte eigendom” or shareholder.custom.kind_of_shares == “Nue-propriété” or shareholder.custom.kind_of_shares == “Bare ownership” or shareholder.custom.kind_of_shares == “Usufruct” or shareholder.custom.kind_of_shares == “Usufruit” or shareholder.custom.kind_of_shares == “Vruchtgebruik” %}
{% $0+ shareholder.amount_of_shares/2 %}
{% assign show_suffix = true %}
{% else %}
{% $0+ shareholder.amount_of_shares %}
{% endif %}
{% endfor %}{% newpage %}
{::font size=‘s’}
{% unless hide_shareholders %}
{% stripnewlines %}
|—15%—|–20%–|–15%–|–18%–|–32%–+ {% newline %}
| | Actionnaire | Nombre | Pourcentage | Adresse {% newline %}
{% for shareholder in shareholders limit:page_1_limit_shareholders %}{% assign shareholders_count_print = shareholders_count_print+1 %}
|
| {% if shareholder.custom.first_name != blank %}{{ shareholder.custom.first_name }} {{ shareholder.custom.last_name }}{% else %}{{ shareholder.name }}{% endif %}
| {{ shareholder.amount_of_shares | integer }}
{% if show_suffix %}
{% if shareholder.custom.kind_of_shares == “Naakte eigendom” %}NP{% endif %}
{% if shareholder.custom.kind_of_shares == “Nue-propriété” %}NP{% endif %}
{% if shareholder.custom.kind_of_shares == “Bare ownership” %}BO{% endif %}
{% if shareholder.custom.kind_of_shares == “Usufruct” or shareholder.custom.kind_of_shares == “Usufruit” %}UF{% endif %}
{% if shareholder.custom.kind_of_shares == “Vruchtgebruik” %}UF{% endif %}
{% if shareholder.custom.kind_of_shares == “Volle eigendom” %}PP{% endif %}
{% if shareholder.custom.kind_of_shares == “Pleine propriété” %}PP{% endif %}
{% if shareholder.custom.kind_of_shares == “Full ownership” %}FO{% endif %}
{% endif %}
| {{ shareholder.amount_of_shares/$0 | percentage }}
| {% if shareholder.custom.street != blank %}{{ shareholder.custom.street }} {{ shareholder.custom.street_number }}
{{ shareholder.custom.postal_code }} {{ shareholder.custom.city }}{% else %}{{ shareholder.address_1 }}
{{ shareholder.address_2 }}{% endif %}
{% newline %}
{% unless second_page %}
{% if forloop.last %}
|
|
|^{{ $0 | integer }}^
|^{{ $0/$0 | percentage }}^
{% endif %}
{% endunless %}
{% endfor %}
{% endstripnewlines %}
{% endunless %}
{:/font}
{::font size=‘s’}
{% if second_page %}
{% unless hide_shareholders %}
{% stripnewlines %}
|—15%—|–20%–|–15%–|–18%–|–32%–+ {% newline %}
| | Actionnaire | Nombre | Pourcentage | Adresse {% newline %}
{% for shareholder in shareholders offset:shareholders_count_print limit:page_2_limit %}
|
| {% if shareholder.custom.first_name != blank %}{{ shareholder.custom.first_name }} {{ shareholder.custom.last_name }}{% else %}{{ shareholder.name }}{% endif %}
| {{ shareholder.amount_of_shares | integer }}
{% if show_suffix %}
{% if shareholder.custom.kind_of_shares == “Naakte eigendom” %}NP{% endif %}
{% if shareholder.custom.kind_of_shares == “Nue-propriété” %}NP{% endif %}
{% if shareholder.custom.kind_of_shares == “Bare ownership” %}BO{% endif %}
{% if shareholder.custom.kind_of_shares == “Usufruct” or shareholder.custom.kind_of_shares == “Usufruit” %}UF{% endif %}
{% if shareholder.custom.kind_of_shares == “Vruchtgebruik” %}UF{% endif %}
{% if shareholder.custom.kind_of_shares == “Volle eigendom” %}PP{% endif %}
{% if shareholder.custom.kind_of_shares == “Pleine propriété” %}PP{% endif %}
{% if shareholder.custom.kind_of_shares == “Full ownership” %}FO{% endif %}
{% endif %}
| {{ shareholder.amount_of_shares/$0 | percentage }}
| {% if shareholder.custom.street != blank %}{{ shareholder.custom.street }} {{ shareholder.custom.street_number }}
{{ shareholder.custom.postal_code }} {{ shareholder.custom.city }}{% else %}{{ shareholder.address_1 }}
{{ shareholder.address_2 }}{% endif %}
{% newline %}
{% if forloop.last %}
|
|
|^{{ $0 | integer }}^
|^{{ $0/$0 | percentage }}^
{% endif %}
{% endfor %}
{% endstripnewlines %}
{% endunless %}
{% endif %}
{:/font}
Thanks for your help!