Yana
February 28, 2019, 7:57am
1
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
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
Yana
March 1, 2019, 10:20am
3
‘’’{% 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’ %}’’’
Hi Yana
I created a test and it looks that you built a very nice template. Can you point out the problem?
Kind regards
Sofie
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