# Numbering not correct

**URL:** <https://community.silverfin.com/t/numbering-not-correct/2258>\
**Category:** Templates\
**Tags:** list, styling, list\_ordered\
**Created:** [March 14, 2022, 5:09pm UTC](https://community.silverfin.com/t/numbering-not-correct/2258 "2022-03-14T17:09:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [March 14, 2022, 5:09pm UTC](https://community.silverfin.com/t/numbering-not-correct/2258/1 "2022-03-14T17:09:01Z")

</div>

Hi!

I have a numbering in my template, but I think something is not closed correctly in the code as in the middle of the document, the numbers start from 1 again…  
I can’t find what’s wrong though, does someone has any tips for me please?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/0/08e63129cb9f33a3091b09e9f80f60d6f45c7141.png)

{% capture profit\_loss\_placeholder %}Extra toelichting m.b.t. de {% if profit %}bestemming {% else %}verwerking {% endif %}van het resultaat{% endcapture %}  
{% ifi period.custom.av.bestemminginfo != blank %}  
  
{% endifi %}  
{% if period.custom.av.bestemminginfo.updated\_at %}{% unless period.custom.av.bestemminginfo\_nl.updated\_at %}{% capture av\_bestemminginfo\_text %}{{ period.custom.av.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}{% input period.custom.av.bestemminginfo\_nl as:text default:av\_bestemminginfo\_text placeholder:profit\_loss\_placeholder %}

{% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block liquidation reserve{% endcomment %}

{% if liq\_res %}

{% assign nr = nr | plus:1%}{{nr}}. AANLEG LIQUIDATIERESERVE.  
{% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block discharge directors{% endcomment %}

{% assign nr = nr | plus:1%}{{nr}}. BESLIST kwijting te verlenen aan {% if count\_shareh == 1 %}de enige bestuurder {% else %}de bestuurders {% endif %} {% if commissaris %}en commissaris {% endif %}voor de uitoefening van hun mandaat over het afgelopen boekjaar afgesloten per {{ period.year\_end\_date | date:’%d/%m/%Y’ }}.  
{% nic %}  
{% endnic %}

---

<div class="post-metadata">

**Author:** ![Melle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/melle/32/1312_2.png) [@Melle](https://community.silverfin.com/u/Melle)\
**Post date:** [March 14, 2022, 7:28pm UTC](https://community.silverfin.com/t/numbering-not-correct/2258/2 "2022-03-14T19:28:54Z")

</div>

Hi @lieels01, thanks for reaching out to community! Would it be possible to provide a little more code so that we will better able to help you out? There must be some reason the `nr` local variable is set to 0. Suspectedly somewhere above the section you have copy-pasted here.

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [April 12, 2022, 11:34am UTC](https://community.silverfin.com/t/numbering-not-correct/2258/3 "2022-04-12T11:34:26Z")

</div>

Hi!

My apologies for the late reply, please find herewith more code:

{% comment %}Block acknowledgement report directors{% endcomment %}

{% assign nr = nr | plus:1%}{{nr}}. NEEMT AKTE van het jaarverslag van {% if count\_shareh == 1 %}de enige bestuurder. {% else %}de bestuurders.{% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block acknowledgement report auditor{% endcomment %}

{% if commissaris %}  
{% assign nr = nr | plus:1%}{{nr}}. NEEMT AKTE van het verslag van de commissaris;{% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block alarmbelprocedure{% endcomment %}

{% unless geen\_alarmbel %}{% if alarmbel %}{% if period.custom.alarmbel.uiteenzetting != true %}  
{% assign nr = nr | plus:1%}{{nr}}. NEEMT AKTE van het bijzonder verslag van {% if count\_shareh == 1 %}de enige bestuurder{% else %}de bestuurders{% endif %} op basis van artikel {% if new\_company\_law %}{% if improper\_cvba %}431{% endif %}{% if NV %}7:228{% elsif CV %}6:119{% else %}{% if liquidity\_test == true and balance\_test == false %}5:153 §2{% elsif liquidity\_test == false and balance\_test == true %}5:153 §1{% elsif liquidity\_test == true and balance\_test == true %}5:153 §1-2{% endif %}{% endif %}{% else %}{% if company\_form == ‘NV’ or company\_form == ‘COMMVA’ %}633{% elsif company\_form == ‘CVBA’ %}431{% else %}332{% endif %} {% endif %} {% assign result\_7229 = {netto\_actief | currency} %} {% unless result\_7229 \< 61500 %} en artikel 7:229 {% else %} {% endunless %} van het Wetboek van vennootschappen en verenigingen; {% endif %}{% endif %}{% endunless %}  
{% nic %}  
{% endnic %}

{% comment %}Block loss of capital{% endcomment %}

{% if verlies\_kapitaal and artikel\_634 or artikel\_333 or artikel\_432 or artikel\_657 or artikel\_7\_229 %}  
{% ifi alarmbel\_remove\_from\_report %}  
{% assign nr = nr | plus:1%}{{nr}}. VERLIES;{% endifi %} {% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block conflict of interest{% endcomment %}

{% if belangenconflict %}  
{% assign nr = nr | plus:1%}{{nr}}. EVENTUELE ONTBINDING  
{% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block approval annual accounts{% endcomment %}

{% assign nr = nr | plus:1%}{{nr}}. BESLIST de jaarrekening over het boekjaar eindigend per {{ period.year\_end\_date | date:’%d/%m/%Y’ }}, met een {% if winst\_verlies \>= 0%}winst{% else %}verlies{% endif %} van het boekjaar van {{ winst\_verlies | currency }} {{ company\_currency }} en een balanstotaal van {{ period.accounts.assets.value | currency }} {{ company\_currency }} goed te keuren;  
{% nic %}  
{% endnic %}

{% comment %}Block appropriation result{% endcomment %}

{% assign nr = nr | plus:1%}{{nr}}. BESLIST het resultaat als volgt te bestemmen, in overeenstemming met de jaarrekening:

{% assign winst\_verlies = #60\_\_68+#70\_\_78 %}  
{% assign vorig\_jaar = #690+#790 %}  
{% assign te\_verwerken\_winst\_verlies = (#60\_\_68+#70\_\_78)+vorig\_jaar %}  
{% assign over\_te\_dragen = #14 %}

{% capture indenter %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{% endcapture %}

|:-------------------------------------------------------|----------15%--------:|-----15%----:+  
| {% if te\_verwerken\_winst\_verlies \<= 0%}Te bestemmen winst{% else %}Te verwerken verlies{% endif %}saldo | |{{ -1_te\_verwerken\_winst\_verlies | currency }}{% if winst\_verlies != 0 %}  
|{{ indenter }}{% if winst\_verlies \<= 0%}Te bestemmen winst{% else %}Te verwerken verlies{% endif %} van het boekjaar | {{ -1_winst\_verlies | currency }}{% endif %}{% if vorig\_jaar != 0 %}  
|{{ indenter }}{% if vorig\_jaar \<= 0%}Overgedragen winst van het vorig boekjaar{% else %}Overgedragen verlies van het vorig boekjaar {% endif %} | {{ -1_vorig\_jaar | currency }}{% endif %}{% if #791+#792 !=0 %}  
|Onttrekking aan het eigen vermogen | | {{ -1_(#791+#792) | currency }}{% endif %}{% if #691\_\_692 !=0 %}  
|Toevoeging aan het eigen vermogen | | {{ #691\_\_692 | currency }}{% endif %}{% if #691 !=0 %}  
|{{ indenter }}Aan {{ capital\_or\_contribution\_article }}&nbsp;{{ capital\_or\_contribution }} en aan de uitgiftepremies | {{ #691 | currency }}{% endif %}{% if #6920 !=0 %}  
|{{ indenter }}Aan de wettelijke reserve | {{ #6920 | currency }}{% endif %}{% if #6921 !=0 %}  
|{{ indenter }}Aan de overige reserves | {{ #6921 | currency }}{% endif %}{% if over\_te\_dragen !=0 %}  
|{% if over\_te\_dragen \<= 0%}Over te dragen winst{% else %}Over te dragen verlies {% endif %} || {{ -1\*over\_te\_dragen | currency }}{% endif %}{% if #794 !=0 %}  
|Tussenkomst van de vennoten in het verlies | | {{ #794 | currency }}{% endif %}{% if #694\_\_697 !=0 %}  
|Uit te keren winst | | {{ #694\_\_697 | currency }}{% endif %}{% if #694 !=0 %}  
|{{ indenter }}Vergoeding van {{ capital\_or\_contribution\_article }}&nbsp;{{ capital\_or\_contribution }} | {{ #694 | currency }} {% endif %}{% if #695 !=0 %}  
|{{ indenter }}{% case director\_type %}{% when ‘zaakvoerder’ or ‘manager’%}Zaakvoerder{% when ‘zaakvoerders’ or ‘managers’%}Zaakvoerders{% else %}Bestuurders{% endcase %}| {{ #695 | currency }}{% endif %}{% if #696 !=0 %}  
|{{ indenter }}Werknemers | {{ #696 | currency }}{% endif %}{% if #697 != 0 %}  
|{{ indenter }}Andere rechthebbenden | {{ #697 | currency }}{% endif %}

{% comment %}table for information on payable dividends and bonusses (tantièmes) of the bookyear{% endcomment %}  
{% assign profit\_to\_attribute = #694\_\_697 %}  
{% capture profit\_attribution\_placeholder %} Deze vergoeding is betaalbaar vanaf [datum] {% endcapture %}

{% if profit\_to\_attribute != 0 %}  
{% ifi period.custom.attribution.capital\_nl != blank or period.custom.attribution.director\_type\_nl != blank or period.custom.attribution.employees\_nl != blank or period.custom.attribution.other\_nl != blank %}Betaalbaarstelling:

|:-------------------------|------15%------------------------|:----70%-----+{% endifi %}{% ifi period.custom.attribution.capital\_nl != blank %}{% if #694 !=0 %}  
| Vergoeding van {{ capital\_or\_contribution\_article }}&nbsp;{{ capital\_or\_contribution }}: | {{ #694 | currency }} | {% input period.custom.attribution.capital\_nl placeholder:profit\_attribution\_placeholder as:text %}{% endif %}{% endifi %}{% ifi period.custom.attribution.director\_type\_nl != blank %}{% if #695 !=0 %}  
| {% case director\_type %}{% when ‘zaakvoerder’ or ‘manager’%}Zaakvoerder{% when ‘zaakvoerders’ or ‘managers’%}Zaakvoerders{% else %}Bestuurders{% endcase %}: | {{ #695 | currency }} | {% input period.custom.attribution.director\_type\_nl placeholder:profit\_attribution\_placeholder as:text %}{% endif %}{% endifi %}{% ifi period.custom.attribution.employees\_nl != blank %}{% if #696 !=0 %}  
| Werknemers: | {{ #696 | currency }} | {% input period.custom.attribution.employees\_nl placeholder:profit\_attribution\_placeholder as:text %}{% endif %}{% endifi %}{% ifi period.custom.attribution.other\_nl != blank %}{% if #697 !=0 %}  
| Andere rechthebbenden: | {{ #697 | currency }} | {% input period.custom.attribution.other\_nl placeholder:profit\_attribution\_placeholder as:text %}{% endif %}{% endifi %}  
{% endif %}

{% capture default\_fintrax\_text %}Op basis van het bijzonder verslag betreffende de balanstest en liquiditeitstest opgesteld door het bestuursorgaan, kan gesteld worden dat aan de wettelijke bepalingen werd voldaan.{% endcapture %}

{% comment %}fintrax {% endcomment %}  
{% if BV or CV %}  
{% if period.reconciliations.fintrax\_liquidity\_test\_cashflow != blank %}  
{% if profit\_to\_attribute != 0 %}  
{% if period.reconciliations.fintrax\_liquidity\_test\_cashflow.results.liquidity\_test == true %}  
{% input custom.explanaition.fintrax\_nl as:text default:default\_fintrax\_text %}  
{% endif %}  
{% endif %}  
{% endif %}  
{% endif %}

{% capture profit\_loss\_placeholder %}Extra toelichting m.b.t. de {% if profit %}bestemming {% else %}verwerking {% endif %}van het resultaat{% endcapture %}  
{% ifi period.custom.av.bestemminginfo != blank %}  
  
{% endifi %}  
{% if period.custom.av.bestemminginfo.updated\_at %}{% unless period.custom.av.bestemminginfo\_nl.updated\_at %}{% capture av\_bestemminginfo\_text %}{{ period.custom.av.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}{% input period.custom.av.bestemminginfo\_nl as:text default:av\_bestemminginfo\_text placeholder:profit\_loss\_placeholder %}

{% nic %}  
{% endnic %}

{% comment %}Block liquidation reserve{% endcomment %}

{% if liq\_res %}  
{% assign nr = nr | plus:1%}{{nr}}. AANLEG LIQUIDATIERESERVE.  
{% endif %}  
{% nic %}  
{% endnic %}

{% comment %}Block discharge directors{% endcomment %}

{% assign nr = nr | plus:1%}{{nr}}. BESLIST kwijting te verlenen aan {% if count\_shareh == 1 %}de enige bestuurder {% else %}de bestuurders {% endif %} {% if commissaris %}en commissaris {% endif %}voor de uitoefening van hun mandaat over het afgelopen boekjaar afgesloten per {{ period.year\_end\_date | date:’%d/%m/%Y’ }}.  
{% nic %}  
{% endnic %}

---

<div class="post-metadata">

**Author:** ![Melle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/melle/32/1312_2.png) [@Melle](https://community.silverfin.com/u/Melle)\
**Post date:** [April 13, 2022, 12:25pm UTC](https://community.silverfin.com/t/numbering-not-correct/2258/4 "2022-04-13T12:25:33Z")

</div>

Hi @lieels01,

Thanks for reaching out to community. After some research the solution to your issue comes in two steps:

Step (1) add `stripnewlines` tags to enclose a significant portion of your code:

The opening tag should be between `{% comment %}Block appropriation result{% endcomment %}` and `{% assign nr = nr | plus:1%}{{nr}}. BESLIST het resultaat als volgt te bestemmen, in overeenstemming met de jaarrekening:`, so that will look like:

```auto
{% comment %}Block appropriation result{% endcomment %}
{% stripnewlines %}
{% assign nr = nr | plus:1%}{{nr}}. BESLIST het resultaat als volgt te bestemmen, in overeenstemming met de jaarrekening:

```

The closing tag will be right after the following: `{% if period.custom.av.bestemminginfo.updated_at %}{% unless period.custom.av.bestemminginfo_nl.updated_at %}{% capture av_bestemminginfo_text %}{{ period.custom.av.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}{% input period.custom.av.bestemminginfo_nl as:text default:av_bestemminginfo_text placeholder:profit_loss_placeholder %}`, so that will be like:

```auto
{% if period.custom.av.bestemminginfo.updated_at %}{% unless period.custom.av.bestemminginfo_nl.updated_at %}{% capture av_bestemminginfo_text %}{{ period.custom.av.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}{% input period.custom.av.bestemminginfo_nl as:text default:av_bestemminginfo_text placeholder:profit_loss_placeholder %}

{% endstripnewlines %}

```

Read more about `stripnewlines` tags here: [Styling](https://developer.silverfin.com/docs/styling-1#section-stripnewlines)

Step (2): you will note that your tables will “break” after step (1). You will need to devote some time to adjust your code according to the guidelines we have available for markdown tables. Find more info here: [Markdown tables](https://developer.silverfin.com/docs/tables-in-silverfin). The most important will be to add {% newline %} to each place where you want to add a new line. You can find more info on building tables around the community.

So there will be some work in this for you unfortunately. However it should work, please let us know if it doesn’t, we will provide additional input.

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [April 25, 2022, 4:39pm UTC](https://community.silverfin.com/t/numbering-not-correct/2258/5 "2022-04-25T16:39:49Z")

</div>

Hi @Melle

Thank you for your reply, but I’m afraid that If I do this, it still doesn’t give me the desired result. The numbering does indeed continue which is great, but the table doesn’t work out at all.

**I now have this:**

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/7/7341c456a718dd5005d264582019d1ceba87a5df.png)

**instead of this:**

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/f/fe246f773fe8d5e09e72e2731196817c59355612.png)

**using the below coding**

{% stripnewlines %}

{% assign nr = nr | plus:1%}{{nr}}. RESOLVES to appropriate the result of the financial year as follows, as stated in the annual accounts:{% newline %}

{% assign winst\_verlies = #60\_\_68+#70\_\_78 %}  
{% assign vorig\_jaar = #690+#790 %}  
{% assign te\_bestemmen\_winst\_verlies = (#60\_\_68+#70\_\_78)+vorig\_jaar %}  
{% assign over\_te\_dragen = #14 %}

{% capture indenter %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{% endcapture %}{% newline %}

|:-------------------------------------------------------|----------15%--------:|-----15%----:+  
|Net {% if te\_bestemmen\_winst\_verlies \<= 0%}profit{% else %}loss{% endif %} to be appropriated | |{{ -1_te\_bestemmen\_winst\_verlies | currency }}{% newline %}  
|{{ indenter }}{% if winst\_verlies \<= 0%}Profit{% else %}Loss{% endif %} from the financial {{ period\_year }} to be {% if new\_company\_law %}appropriated{% else %}allocated{% endif %} | {{ -1_winst\_verlies | currency }}{% newline %}  
|{{ indenter }}{% if vorig\_jaar \<= 0%}Profit{% else %}Loss {% endif %} from the previous financial {{ period\_year }} | {{ -1_vorig\_jaar | currency }}{% if #791+#792 !=0 %}{% newline %}  
|Subtraction of shareholders’ equity | | {{ -1_(#791+#792) | currency }}{% endif %}{% if #691\_\_692 !=0 %}{% newline %}  
|{% if new\_company\_law %}Appropriation to {% if COMMV or VOF %}associates’ {% endif %}equity{% else %}Addition of shareholders’ equity{% endif %} | | {{ #691\_\_692 | currency }}{% endif %}{% if #691 !=0 %}{% newline %}  
|{{ indenter }}To {{ capital\_or\_contribution }} and share premiums | {{ #691 | currency }}{% endif %}{% if #6920 !=0 %}{% newline %}  
|{{ indenter }}To legal reserves | {{ #6920 | currency }}{% endif %}{% if #6921 !=0 %}{% newline %}  
|{{ indenter }}To other reserves | {{ #6921 | currency }}{% endif %}{% if over\_te\_dragen !=0 %}{% newline %}  
|{% if over\_te\_dragen \<= 0%}Profit{% else %}Loss{% endif %} to be {% if new\_company\_law %}transferred{% else %}carried forward{% endif %} || {{ -1\*over\_te\_dragen | currency }}{% endif %}{% if #794 !=0 %}{% newline %}  
|Intervention of partners in the loss | | {{ #794 | currency }}{% endif %}{% if #694\_\_697 !=0 %}{% newline %}  
|Profit to be {% if new\_company\_law %}distributed{% else %}allocated{% endif %} | | {{ #694\_\_697 | currency }}{% endif %}{% if #694 !=0 %}{% newline %}  
|{{ indenter }}{% if new\_company\_law %}Compensation{% else %}Remuneration{% endif %} for {{ capital\_or\_contribution }} | {{ #694 | currency }}{% endif %}{% if #695 !=0 %}{% newline %}  
|{{ indenter }}{% case director\_type %}{% when ‘zaakvoerder’ or ‘manager’ %}Managing director{% when ‘zaakvoerders’ or ‘managers’ %}Managing directors{% else %}Executive directors{% endcase %}| {{ #695 | currency }}{% endif %}{% if #696 !=0 %}{% newline %}  
|{{ indenter }}Employees | {{ #696 | currency }}{% endif %}{% if #697 != 0 %}{% newline %}  
|{{ indenter }}Other entitled parties | {{ #697 | currency }}{% endif %}{% newline %}

{% capture profit\_loss\_placeholder %}Extra information with regard to the allocation of the results{% endcapture %}  
{% ifi period.custom.av.bestemminginfo != blank %}  
  
{% endifi %}  
{% if period.custom.av.bestemminginfo.updated\_at %}{% unless period.custom.av.bestemminginfo\_nl.updated\_at %}{% capture av\_bestemminginfo\_text %}{{ period.custom.av.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}{% input period.custom.av.bestemminginfo\_ENG as:text default:av\_bestemminginfo\_text placeholder:profit\_loss\_placeholder %}

{% endstripnewlines %}

---

<div class="post-metadata">

**Author:** ![Melle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/melle/32/1312_2.png) [@Melle](https://community.silverfin.com/u/Melle)\
**Post date:** [April 26, 2022, 7:28am UTC](https://community.silverfin.com/t/numbering-not-correct/2258/6 "2022-04-26T07:28:01Z")

</div>

Hi @lieels01 , thanks for your response! Try formatting your table as follows:

> [@Melle](#):
>
> Find more info here: [Markdown tables](https://developer.silverfin.com/docs/tables-in-silverfin)

Or even try reading into HTML tables which are relatively new (these are more intuitive to set up in a number of ways): [https://developer.silverfin.com/docs/creating-html-tables](https://developer.silverfin.com/docs/creating-html-tables)

The trick will be to: (1) appropriately enclose your table definition (the `|---|--15%--..`) thing within `{% newline %}` tags; (2) provide your table with its own `{% stripnewlines %}` tags. So it will look like the following.

Tip: please try to structure your code e.g. by putting `{% newline %}` tags on separate rows or even to put each pipe (‘|’) on a new row, it will become more easy to read and debug.

```auto
{% stripnewlines %}

{% assign nr = nr | plus:1%}{{nr}}. RESOLVES to appropriate the result of the financial year as follows, as stated in the annual accounts:{% newline %}

{% assign winst_verlies = #60 __68+#70__ 78 %}
{% assign vorig_jaar = #690+#790 %}
{% assign te_bestemmen_winst_verlies = (#60 __68+#70__ 78)+vorig_jaar %}
{% assign over_te_dragen = #14 %}

{% capture indenter %} {% endcapture %}{% newline %}
{% endstripnewlines %}

{% stripnewlines %}
{% newline %}
|:-------------------------------------------------------|----------15%--------:|-----15%----:+
{% newline %}
|Net {% if te_bestemmen_winst_verlies <= 0%}profit{% else %}loss{% endif %} to be appropriated | |{{ -1te_bestemmen_winst_verlies | currency }}{% newline %}
|{{ indenter }}{% if winst_verlies <= 0%}Profit{% else %}Loss{% endif %} from the financial {{ period_year }} to be {% if new_company_law %}appropriated{% else %}allocated{% endif %} | {{ -1winst_verlies | currency }}{% newline %}
|{{ indenter }}{% if vorig_jaar <= 0%}Profit{% else %}Loss {% endif %} from the previous financial {{ period_year }} | {{ -1vorig_jaar | currency }}{% if #791+#792 !=0 %}{% newline %}
|Subtraction of shareholders’ equity | | {{ -1(#791+#792) | currency }}{% endif %}{% if #691__692 !=0 %}{% newline %}
|{% if new_company_law %}Appropriation to {% if COMMV or VOF %}associates’ {% endif %}equity{% else %}Addition of shareholders’ equity{% endif %} | | {{ #691__692 | currency }}{% endif %}{% if #691 !=0 %}{% newline %}
|{{ indenter }}To {{ capital_or_contribution }} and share premiums | {{ #691 | currency }}{% endif %}{% if #6920 !=0 %}{% newline %}
|{{ indenter }}To legal reserves | {{ #6920 | currency }}{% endif %}{% if #6921 !=0 %}{% newline %}
|{{ indenter }}To other reserves | {{ #6921 | currency }}{% endif %}{% if over_te_dragen !=0 %}{% newline %}
|{% if over_te_dragen <= 0%}Profit{% else %}Loss{% endif %} to be {% if new_company_law %}transferred{% else %}carried forward{% endif %} || {{ -1*over_te_dragen | currency }}{% endif %}{% if #794 !=0 %}{% newline %}
|Intervention of partners in the loss | | {{ #794 | currency }}{% endif %}{% if #694__697 !=0 %}{% newline %}
|Profit to be {% if new_company_law %}distributed{% else %}allocated{% endif %} | | {{ #694__697 | currency }}{% endif %}{% if #694 !=0 %}{% newline %}
|{{ indenter }}{% if new_company_law %}Compensation{% else %}Remuneration{% endif %} for {{ capital_or_contribution }} | {{ #694 | currency }}{% endif %}{% if #695 !=0 %}{% newline %}
|{{ indenter }}{% case director_type %}{% when ‘zaakvoerder’ or ‘manager’ %}Managing director{% when ‘zaakvoerders’ or ‘managers’ %}Managing directors{% else %}Executive directors{% endcase %}| {{ #695 | currency }}{% endif %}{% if #696 !=0 %}{% newline %}
|{{ indenter }}Employees | {{ #696 | currency }}{% endif %}{% if #697 != 0 %}{% newline %}
|{{ indenter }}Other entitled parties | {{ #697 | currency }}{% endif %}{% newline %}
{% endstripnewlines %}

{% stripnewlines %}
{% capture profit_loss_placeholder %}Extra information with regard to the allocation of the results{% endcapture %}
{% ifi period.custom.av.bestemminginfo != blank %}

{% endifi %}
{% if period.custom.av.bestemminginfo.updated_at %}{% unless period.custom.av.bestemminginfo_nl.updated_at %}{% capture av_bestemminginfo_text %}{{ period.custom.av.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}{% input period.custom.av.bestemminginfo_ENG as:text default:av_bestemminginfo_text placeholder:profit_loss_placeholder %}

{% endstripnewlines %}

```

Please let us know if this works well!

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [April 27, 2022, 11:38am UTC](https://community.silverfin.com/t/numbering-not-correct/2258/7 "2022-04-27T11:38:09Z")

</div>

Hi!

I tried the above solution, restructured the coding by putting 'newline"-tags on separate rows and also played around with the “stripnewlines”-tags, but I’m afraid we’re back to were we started… The table comes out perfectly again and the numbering doesn’t follow, it goes from 6 to 1 instead of 7.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/8/84beebad6ba52f6dd02c9a6a1dab3155d880e22c.png)

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [April 27, 2022, 11:40am UTC](https://community.silverfin.com/t/numbering-not-correct/2258/8 "2022-04-27T11:40:33Z")

</div>

Please find herewith the code as well:

{% comment %}Block appropriation result{% endcomment %}

{% stripnewlines %}  
{% assign nr = nr | plus:1%}{{nr}}. RESOLVES to appropriate the result of the financial year as follows, as stated in the annual accounts:{% newline %}

{% assign winst\_verlies = #60\_\_68+#70\_\_78 %}  
{% assign vorig\_jaar = #690+#790 %}  
{% assign te\_bestemmen\_winst\_verlies = (#60\_\_68+#70\_\_78)+vorig\_jaar %}  
{% assign over\_te\_dragen = #14 %}

{% capture indenter %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{% endcapture %}{% newline %}  
{% endstripnewlines %}

{% stripnewlines %}  
{% newline %}  
|:-------------------------------------------------------|----------15%--------:|-----15%----:+  
{% newline %}  
|Net {% if te\_bestemmen\_winst\_verlies \<= 0%}profit{% else %}loss{% endif %} to be appropriated | |{{ -1_te\_bestemmen\_winst\_verlies | currency }}  
{% newline %}  
|{{ indenter }}{% if winst\_verlies \<= 0%}Profit{% else %}Loss{% endif %} from the financial {{ period\_year }} to be {% if new\_company\_law %}appropriated{% else %}allocated{% endif %} | {{ -1_winst\_verlies | currency }}  
{% newline %}  
|{{ indenter }}{% if vorig\_jaar \<= 0%}Profit{% else %}Loss {% endif %} from the previous financial {{ period\_year }} | {{ -1_vorig\_jaar | currency }}{% if #791+#792 !=0 %}  
{% newline %}  
|Subtraction of shareholders’ equity | | {{ -1_(#791+#792) | currency }}{% endif %}{% if #691\_\_692 !=0 %}  
{% newline %}  
|{% if new\_company\_law %}Appropriation to {% if COMMV or VOF %}associates’ {% endif %}equity{% else %}Addition of shareholders’ equity{% endif %} | | {{ #691\_\_692 | currency }}{% endif %}{% if #691 !=0 %}  
{% newline %}  
|{{ indenter }}To {{ capital\_or\_contribution }} and share premiums | {{ #691 | currency }}{% endif %}{% if #6920 !=0 %}  
{% newline %}  
|{{ indenter }}To legal reserves | {{ #6920 | currency }}{% endif %}{% if #6921 !=0 %}  
{% newline %}  
|{{ indenter }}To other reserves | {{ #6921 | currency }}{% endif %}{% if over\_te\_dragen !=0 %}  
{% newline %}  
|{% if over\_te\_dragen \<= 0%}Profit{% else %}Loss{% endif %} to be {% if new\_company\_law %}transferred{% else %}carried forward{% endif %} || {{ -1\*over\_te\_dragen | currency }}{% endif %}{% if #794 !=0 %}  
{% newline %}  
|Intervention of partners in the loss | | {{ #794 | currency }}{% endif %}{% if #694\_\_697 !=0 %}  
{% newline %}  
|Profit to be {% if new\_company\_law %}distributed{% else %}allocated{% endif %} | | {{ #694\_\_697 | currency }}{% endif %}{% if #694 !=0 %}  
{% newline %}  
|{{ indenter }}{% if new\_company\_law %}Compensation{% else %}Remuneration{% endif %} for {{ capital\_or\_contribution }} | {{ #694 | currency }}{% endif %}{% if #695 !=0 %}  
{% newline %}  
|{{ indenter }}{% case director\_type %}{% when ‘zaakvoerder’ or ‘manager’ %}Managing director{% when ‘zaakvoerders’ or ‘managers’ %}Managing directors{% else %}Executive directors{% endcase %}| {{ #695 | currency }}{% endif %}{% if #696 !=0 %}  
{% newline %}  
|{{ indenter }}Employees | {{ #696 | currency }}{% endif %}{% if #697 != 0 %}  
{% newline %}  
|{{ indenter }}Other entitled parties | {{ #697 | currency }}{% endif %}  
{% newline %}  
{% endstripnewlines %}

{% stripnewlines %}  
{% capture profit\_loss\_placeholder %}Extra information with regard to the allocation of the results{% endcapture %}  
{% ifi period.custom.jaarverslag.bestemminginfo != blank %}

{%endifi%}  
{% if period.custom.jaarverslag.bestemminginfo.updated\_at %}{% unless period.custom.jaarverslag.bestemminginfo\_en.updated\_at %}{% capture jaarverslag\_bestemming %}{{ period.custom.jaarverslag.bestemminginfo }}{% endcapture %}{% endunless %}{% endif %}  
{% input period.custom.jaarverslag.bestemminginfo\_en as:text default:jaarverslag\_bestemming placeholder:‘Extra information with regard to the allocation of the results’ %}  
{% endstripnewlines %}

{% nic %}  
{% endnic %}

---

<div class="post-metadata">

**Author:** ![Melle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/melle/32/1312_2.png) [@Melle](https://community.silverfin.com/u/Melle)\
**Post date:** [May 2, 2022, 11:02am UTC](https://community.silverfin.com/t/numbering-not-correct/2258/9 "2022-05-02T11:02:35Z")

</div>

Hi @lieels01, yes just copying in my code example may not work. You should start with [my previous response on how to resolve the count](https://community.silverfin.com/t/numbering-not-correct/2258/4) , then apply that to your entire template. I.e. make sure first that your count variable is behaving correctly, and after that start focusing on fixing the tables. I can say that I have managed to create a working version here.

Is this what you have tried already? If yes, it may be worth trying to build the template again but more structured, consisting of a couple of (HTML-)tables. We can of course answer all questions you might have in that course. Unfortunately the community is not really intended to provide tailor-made pieces of custom code, but we are willing to help you as much as needed otherwise.

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [May 3, 2022, 10:29am UTC](https://community.silverfin.com/t/numbering-not-correct/2258/10 "2022-05-03T10:29:20Z")

</div>

Hi,

I’m afraid I already tried all of this, but nothing seems to help to get this table right…

Kind regards,  
Liesa

---

<div class="post-metadata">

**Author:** ![Kalpna\_Dhokia](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/kalpna_dhokia/32/1840_2.png) [@Kalpna\_Dhokia](https://community.silverfin.com/u/Kalpna_Dhokia)\
**Post date:** [May 3, 2022, 12:57pm UTC](https://community.silverfin.com/t/numbering-not-correct/2258/11 "2022-05-03T12:57:00Z")

</div>

Hi Liesa,

A few of our developers have played around with the code and the following should now fix the numbering issue:

|—\>{% comment %}Block discharge directors{% endcomment %}{% assign nr = nr | plus:1 %} {{nr}}. BESLIST kwijting te verlenen aan {% if count\_shareh == 1 %}de enige bestuurder {% else %}de bestuurders {% endif %} {% if commissaris %}en commissaris {% endif %}voor de uitoefening van hun mandaat over het afgelopen boekjaar afgesloten per {{ period.year\_end\_date | date:"%d/%m/%Y" }}.

So you can either use `|` in front or `&nbsp;` infront of the above block of code and the numbering should continue as normal.

I hope this works as expected for you!

Thanks 🙂
