# "Brutomarge" on "jaarverslag"

**URL:** <https://community.silverfin.com/t/brutomarge-on-jaarverslag/1406>\
**Category:** Templates\
**Tags:** control\_flow, if, custom\_template\
**Created:** [February 26, 2019, 1:50pm UTC](https://community.silverfin.com/t/brutomarge-on-jaarverslag/1406 "2019-02-26T13:50:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WendyVerbiest](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@WendyVerbiest](https://community.silverfin.com/u/WendyVerbiest)\
**Post date:** [February 26, 2019, 1:50pm UTC](https://community.silverfin.com/t/brutomarge-on-jaarverslag/1406/1 "2019-02-26T13:50:55Z")

</div>

Hello,

I wanted to change te code of the “jaarverslag” so that the accountnumbers 61 would be included in the “brutomarge” instead of in the “bedrijfsresultaat”.  
I tought dragging the line from under the “brutomarge” to above the “brutomarge” would do the trick but instead the line just disappears in my “jaarverslag”.  
Only when I select “VOL” schema instead of “VKT” schema the line appears in my “brutomarge”

What should I add to my code?

Kind Regards,  
Wendy

This is the part of the code that I adjusted from “jaarverslag”

|:-----------------------------|-----15%------:|{% if previous\_period.exists %}-----15%------:|------15%-------:|—15%—:{% endif %}+  
| **_Resultatenrekening_** | **{{period.year\_end\_date | date: ‘%d/%m/%Y’}}** |{% if previous\_period.exists %} **{{previous\_period.year\_end\_date | date: ‘%d/%m/%Y’}}** | **Verschil EUR** | **Verschil %** {% endif %}  
|{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Omzet |{%=$0+ -1\*#70 %} |{% if previous\_period.exists %}{%=$1+ -1\*#70:1y %}|{{ $0-$1 | currency }}|{{ ($0-$1)/$1 | percentage }} {% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Handelsgoederen |{%=$0+ -1\*#60 %} |{% if previous\_period.exists %}{%=$1+ -1\*#60:1y %}|{{ ($0-$1) | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% if choice\_vol\_vkt == “VOL schema” %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Diensten & diverse goederen |{%=$0+ -1\*#61 %} |{% if previous\_period.exists %}{%=$1+ -1\*#61:1y %}|{{ ($0-$1) | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Voorraad goederen in bewerking en gereed product en bestellingen in uitvoering |{%=$0+ -1\*#71 %} |{% if previous\_period.exists %}{%=$1+ -1\*#71:1y %}|{{ $0-$1 | currency }}|{{ ($0-$1)/$1 | percentage }} {% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Geproduceerde vaste activa |{%=$0+ -1\*#72 %} |{% if previous\_period.exists %}{%=$1+ -1\*#72:1y %}|{{ $0-$1 | currency }}|{{ ($0-$1)/$1 | percentage }} {% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Andere bedrijfsopbrengsten |{%=$0+ -1\*#74 %} |{% if previous\_period.exists %}{%=$1+ -1\*#74:1y %}|{{ $0-$1 | currency }}|{{ ($0-$1)/$1 | percentage }} {% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% else %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Andere bedrijfsopbrengsten |{%=$0+ -1\*#71\_\_74 %} |{% if previous\_period.exists %}{%=$1+ -1\*#71\_\_74:1y %}|{{ $0-$1 | currency }}|{{ ($0-$1)/$1 | percentage }} {% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% endif %}{% if new\_mar %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Niet-recurrente bedrijfsopbrengsten |{%=$0+ -1\*(#760+#7620+#7630+#764\_\_768) %} |{% if previous\_period.exists %}{%=$1+ -1\*(#760+#7620+#7630+#764\_\_768):1y %}|{{ $0-$1 | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% endif %}  
| |  
| **Brutomarge** | **{{ $10 | currency }}** |{% if previous\_period.exists %} **{{ $11 | currency }}** | **{{ $10-$11| currency }}** |**{{ ($10-$11)/$11 | percentage }}**{% endif %}  
|{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}

|Personeelskosten |{%=$0+ -1\*#62 %} |{% if previous\_period.exists %}{%=$1+ -1\*#62:1y %}|{{ ($0-$1) | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Afschrijving/waardeverminderingen |{%=$0+ -1\*#63 %} |{% if previous\_period.exists %}{%=$1+ -1\*#63:1y %}|{{ ($0-$1) | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Andere bedrijfskosten |{%=$0+ -1\*#64 %} |{% if previous\_period.exists %}{%=$1+ -1\*#64:1y %}|{{ ($0-$1) | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% if new\_mar %}{% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}  
|Niet-recurrente bedrijfskosten |{%=$0+ -1\*(#660+#6620+#6630+#664\_\_667+#6690) %} |{% if previous\_period.exists %}{%=$1+ -1\*(#660+#6620+#6630+#664\_\_667+#6690):1y %}|{{ -1\*($0-$1) | currency }}|{{ ($0-$1)/$1 | percentage }}{% endif %}{%$10+ $0 %}{%$11+ $1 %}{% endcapture %}{% unless $0 == 0 and $1 == 0 %}{{ subtabel }}{% endunless %}{% endif %}  
|  
| **Bedrijfsresultaat** | **{{ $10 | currency }}** |{% if previous\_period.exists %} **{{ $11 | currency }}** | **{{ $10-$11| currency }}** |**{{ ($10-$11)/$11 | percentage }}**{% endif %}  
|

---

<div class="post-metadata">

**Author:** ![Sofie\_Cleemput](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sofie_cleemput/32/709_2.png) [@Sofie\_Cleemput](https://community.silverfin.com/u/Sofie_Cleemput)\
**Post date:** [February 27, 2019, 8:10am UTC](https://community.silverfin.com/t/brutomarge-on-jaarverslag/1406/2 "2019-02-27T08:10:35Z")

</div>

Hi Wendy

if I look at the code, I see that indeed the part of the 61-accountnumbers is between an if statement that says : if you choose VOL, show this part :

```
{% if choice_vol_vkt == “VOL schema” %}
    {% capture subtabel %}{% assign $0 = 0 %}{% assign $1 = 0 %}
    |Diensten & diverse goederen |{%=$0+ -1*#61 %} 
    |{% if previous_period.exists %}{%=$1+ -1*#61:1y %}|{{ ($0-$1) | currency }}
    |{{ ($0-$1)/$1 | percentage }}
{% endif %}

```

You can remove the if-statement, to show the 61-accounts in VKT

Kind regards  
Sofie
