# Template 'investeringen in terreinen en gebouwen'

**URL:** https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408
**Category:** Templates
**Tags:** input, custom\_template
**Created:** [February 28, 2019, 7:57am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408 "2019-02-28T07:57:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Yana](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@Yana](https://community.silverfin.com/u/Yana)
#### Post date: [February 28, 2019, 7:57am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408/1 "2019-02-28T07:57:42Z")

</div>

Hello

I have a problem with the template ‘investeringen in terreinen en gebouwen’.  
See my code below

"{% stripnewlines %}  
|Datum  
|Omschrijving  
|Regime  
|Aantal m²  
|Prijs per m²  
|Saldo  
|  
{% newline %}  
|----10%----  
|----27%----  
|----15%----  
|----15%----  
|----15%----  
|----15%—:  
|—3%-----+

{% fori admin in custom.terreinen %}  
{% newline %}  
| {% input admin.datum as:date %}  
| {% input admin.omschrijving %}  
| {% input admin.regime as:select options:“BTW|Registratie” %}  
| {% input admin.aantalm² %}  
| {% input admin.prijsperm² as:currency %}  
| {% $1+input admin.Saldo as:currency %}  
| {% input admin.bijlage as:file %}  
{% if forloop.last %}  
{% newline %}  
{% ifi admin.Saldo != blank %}  
| **Terreinen**  
|  
|  
|  
|  
| **{{ $1 | currency }}**  
|  
{% endifi %}  
{% endif %}  
{% endfori %}

{% fori detail in custom.gebouwen %}  
{% newline %}  
| {% input detail.datum as:date %}  
| {% input detail.omschrijving %}  
| {% input detail.regime as:select options:“BTW|Registratie” %}  
| {% input detail.aantalm² %}  
| {% input detail.prijsperm² as:currency %}  
| {% $2+input detail.Saldo as:currency %}  
| {% input detail.bijlage as:file %}  
{% if forloop.last %}  
{% newline %}  
{% ifi detail.Saldo != blank %}  
| **Gebouwen**  
|  
|  
|  
|  
| **{{ $2 | currency }}**  
|

{% endifi %}  
{% endif %}  
{% endfori %}

{% newline %}  
|  
|  
|  
|  
|  
|  
|

{% newline %}

|_^ **Totaal** ^_  
|_^^_  
|_^^_  
|_^^_  
|_^^_  
|_^ **{{ $1+$2 | currency }}** ^_  
|_^^_

{% endstripnewlines %}

  

{% comment %}EXTRA TOELICHTING{% endcomment %}

{% input custom.detail.extra\_toelichting as:text placeholder:‘extra toelichting’ %}"

In the export the line ‘totaal’ looks not good. I want the total amount under the other amounts.  
Can you see what’s the problem with my code?

Many thanks.

Kind regards

Yana

---

<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 28, 2019, 11:04am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408/2 "2019-02-28T11:04:37Z")

</div>

Hi Yana

can you paste your code into the three brackets and past an export? I cannot reproduce the error you are describing.

Kind regards  
Sofie

---

<div class="post-metadata">

### Author: ![Yana](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@Yana](https://community.silverfin.com/u/Yana)
#### Post date: [March 1, 2019, 10:20am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408/3 "2019-03-01T10:20:55Z")

</div>

‘’’{% stripnewlines %}  
|Datum  
|Omschrijving  
|Regime  
|Aantal m²  
|Prijs per m²  
|Saldo  
|  
{% newline %}  
|----10%----  
|----27%----  
|----15%----  
|----15%----  
|----15%----  
|----15%—:  
|—3%-----+

{% fori admin in custom.terreinen %}  
{% newline %}  
| {% input admin.datum as:date %}  
| {% input admin.omschrijving %}  
| {% input admin.regime as:select options:“BTW|Registratie” %}  
| {% input admin.aantalm² %}  
| {% input admin.prijsperm² as:currency %}  
| {% $1+input admin.Saldo as:currency %}  
| {% input admin.bijlage as:file %}  
{% if forloop.last %}  
{% newline %}  
{% ifi admin.Saldo != blank %}  
| **Terreinen**  
|  
|  
|  
|  
| **{{ $1 | currency }}**  
|  
{% endifi %}  
{% endif %}  
{% endfori %}

{% fori detail in custom.gebouwen %}  
{% newline %}  
| {% input detail.datum as:date %}  
| {% input detail.omschrijving %}  
| {% input detail.regime as:select options:“BTW|Registratie” %}  
| {% input detail.aantalm² %}  
| {% input detail.prijsperm² as:currency %}  
| {% $2+input detail.Saldo as:currency %}  
| {% input detail.bijlage as:file %}  
{% if forloop.last %}  
{% newline %}  
{% ifi detail.Saldo != blank %}  
| **Gebouwen**  
|  
|  
|  
|  
| **{{ $2 | currency }}**  
|

{% endifi %}  
{% endif %}  
{% endfori %}

{% newline %}  
|  
|  
|  
|  
|  
|  
|

{% newline %}

|_^ **Totaal** ^_  
|_^^_  
|_^^_  
|_^^_  
|_^^_  
|_^ **{{ $1+$2 | currency }}** ^_  
|_^^_

{% endstripnewlines %}

  

{% comment %}EXTRA TOELICHTING{% endcomment %}

{% input custom.detail.extra\_toelichting as:text placeholder:‘extra toelichting’ %}’’’

---

<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: [March 1, 2019, 10:59am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408/4 "2019-03-01T10:59:40Z")

</div>

Hi Yana

I created a test and it looks that you built a very nice template. Can you point out the problem?

 ![31](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/fee2d9298840d1a31a8e18931318135014f28f02.png)

Kind regards  
Sofie

---

<div class="post-metadata">

### Author: ![Yana](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@Yana](https://community.silverfin.com/u/Yana)
#### Post date: [March 1, 2019, 11:16am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408/5 "2019-03-01T11:16:01Z")

</div>

It looks like this

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/5490c24d40345a96465d578d1cf19c70ce021008.png)

---

<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: [March 4, 2019, 8:06am UTC](https://community.silverfin.com/t/template-investeringen-in-terreinen-en-gebouwen/1408/6 "2019-03-04T08:06:42Z")

</div>

Hi Yana

your code looks fine, so I assume that you get this lay-out problem because there are 2 empty input lines under the header ‘gebouwen’. Can you delete one empty line (the first one) and revert back if the problem is fixed or not?

Kind regards,  
Sofie
