# Template investments

**URL:** <https://community.silverfin.com/t/template-investments/1344>\
**Category:** Templates\
**Tags:** ifi, custom\_template\
**Created:** [January 8, 2019, 4:35pm UTC](https://community.silverfin.com/t/template-investments/1344 "2019-01-08T16:35:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [January 10, 2019, 8:30am UTC](https://community.silverfin.com/t/template-investments/1344/4 "2019-01-10T08:30:33Z")

</div>

Hi Yana

some small adjustments and tips for your code below (I only adjusted the part ‘terreinen’):

- do you want to use the period.custom? The period is attached to the working period and always changes by changing ‘working period’
- make sure the total size of the columns = 100 %
- the ifi- statement should go into your fori-loop. To make this work, you should work with forloop.last

Maybe, this community post can also help you further:

> [@Ifi-statement depending on fori-statement](https://community.silverfin.com/t/ifi-statement-depending-on-fori-statement/565):
>
> Hi, I’m having some trouble with my ifi-statement in the code below. With the fori statement, nothing will be printed when there’s no content. But in the code below I have a first row that could be seen as title row, this one may not be printed when there is no content. The code I wrote this far doesn’t work. Anyone who could help me? {% ifi bankrekening.rekeningnummer != blank or bankrekening.bank != blank %} {{ header }} {% newline %} |Bankrekening||{% newline %}{% fori bankrekening in cu…

````auto
|Datum
|Factuur
|Omschrijving
|Leverancier
|Aantal m²
|Prijs per m²
|Regime
|Saldo
|
{% newline %}
|-----10%-----
|-----7%-----
|-----20%-----
|-----10%-----
|-----10%-----
|-----15%-----
|-----10%-----
|-----15%-----
|-----3%-----:+
{% fori admin in custom.terreinen %}
{% newline %}
| {% input admin.datum as:date %}
| {% input admin.factuur %}
| {% input admin.Omschrijving %}
| {% input admin.Leverancier %} 
| {% input admin.aantalm² %}
| {% input admin.prijsperm² as:currency %}
| {% input admin.Regime as:select options:“BTW|Reg.rechten” %}
| {% $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 %}
{% endstripnewlines %}```

Kr 
Sofie
````

---

_[View the full topic](https://community.silverfin.com/t/template-investments/1344)._
