Creating a new comment

I would like to make a new comment but it doesn’t work when I try it.
it works as a detail within an account but it doesn’t work to put it as an template like liquid assets.
How do I need to change this to be able to implement it as an ‘toelichting’

{% t= “Ligging” fr:“Lieu” en:“Location” %}
{% t= “Totale aankkoopprijs” fr:“Lieu” en:“Location” %}
{% t= “Totale aktekosten” fr:“Lieu” en:“Location” %}
{% t= “Oppervlakte m²” fr:“Lieu” en:“Location” %}
{% t= “Datum aankoop” fr:“Période” en:“Period” %}
{% t= “Notaris” fr:“Propriétaire” en:“Renter” %}
{% t= “KI” fr:“RC” en:“CR” %}
{% t= “Oppervlakte” fr:“RC” en:“CR” %}
{% t= “Waarde grond” fr:“RC” en:“CR” %}
{% t= “Beroeps%” fr:“professionel %” en:“professional %” %}
{% t= “BeroepsKI” fr:“RC professionel” en:“professional CR” %}
{% t= “Aankoopprijs volgens akte” fr:"% participation loueur" en:"% participation renter" %}
{% t= “niet geïndexeerd” fr:“pas indexé” en:“not indexed” %}
{% t= “Grondwaarde” fr:“Loyer payé” en:“Paid rent” %}
{% t= “Normale huur” fr:“Loyer normal” en:“normal rent” %}
{% t= “Deel gebouw” fr:“À requalifier” en:“for requalification” %}
{% t= “herkwalificatie” fr:“Requalification” en:“requalification” %}
{% t= “Grens huurherkwalificatie” fr:“Limite réqualification du loyer” en:“Limit of requalification of the rent” %}
{% t= “verhuurder” fr:“propriétaire” en:“renter” %}
{% t= “Gebouwwaarde” fr:“propriétaire” en:“renter” %}
{% t= “adres verhuurder” fr:“adresse propriétaire” en:“address renter” %}
{% t= “Aktekosten” fr:“adresse propriétaire” en:“address renter” %}
{% t= “ligging” fr:“lieu” en:“location” %}
{% t= “start datum” fr:“date début” en:“start date” %}
{% t= “eind datum” fr:“date fin” en:“end date” %}
{% t= “KI” fr:“RC” en:“CR” %}
{% t= “beroeps” fr:“professionel” en:“professional” %}
{% t= “eigendoms” fr:“participation” en:“property” %}
{% t= “value” fr:“valeur” en:“value” %}
{% t= “TOTAAL Grond” fr:“valeur” en:“value” %}
{% t= “TOTAAL Gebouw” fr:“valeur” en:“value” %}
{% t= “Aktekosten Grond” fr:“valeur” en:“value” %}
{% t= “Aktekosten Gebouw” fr:“valeur” en:“value” %}
{% t= “Deel Grond:” fr:“Part du gérant” en:“Part of company director” %}
{% t= “Extra toelichting” fr:“Explication supplémentaire” en:“Additional explanation” %}
{% t= “vatnr” fr:“nr.tva” en:“nr.vat” %}
{% t= “ja|nee” fr:“oui|non” en:“yes|no” %}

{% fori detail in current_account.details %}{% assign $1 = 0 %}{% assign $2 = 0 %}{% assign $3 = 0 %}

|------20%------|-----------65%-----------|------15%--------:+
| {% t “Notaris” %} | {% if detail.custom.verhuurder != blank %}{% endif %}{% input detail.custom.verhuurder %}{% if detail.custom.verhuurder != blank %}{% endif %}
| | {% input detail.custom.adres_notaris %}
| | {% input detail.custom.vatnr placeholder:‘BTW nummer’%}
| | {% input detail.custom.bijlage as:file %}
| {% t “Fiche 281.50” %} | {% input detail.custom.janee placeholder: ‘Ja of Nee’ %}
|
|
| {% t “Ligging” %} | {% input detail.custom.ligging %}
| {% t “Oppervlakte m²” %} | {% input detail.custom.oppervlakte %}
| {% t “Datum aankoop” %} | {% input detail.custom.aankoop_datum as:date %} {% ifi detail.custom.eind_datum != blank %}{% endifi %}|
| {% t “Totale aankoopprijs” %} | {% input detail.custom.aankoopprijs %}
| {% t “Totale aktekosten” %} | {% input detail.custom.aktekosten %}
| {% t “Beroeps%” %} | {% input detail.custom.beroeps as: percentage %}{% assign beroeps = detail.custom.beroeps %}

| Gebouwen| Waarde | Beroepsmatig | Totaal beroepsmatig
|--------50%-------|-------20%----------|-----10%-----|----20%-----:+
| Grondwaarde | {%input detail.custom.grondwaarde as: currency %}{% assign grondwaarde = detail.custom.grondwaarde %} | {{beroeps | percentage}} | = {{ grondwaarde | currency }} x {{ beroeps | percentage }}| {%=$0+ grondwaarde*beroeps | round | currency %}
| Aktekosten Grond | {%input detail.custom.aktekosten_grond as: currency %}{% assign aktekosten_grond = detail.custom.aktekosten_grond %} | {{beroeps | percentage}} | = {{ aktekosten_grond | currency }} x {{ beroeps | percentage }}| {%=$0+ aktekosten_grond*beroeps | round | currency %}
| | | | |{{ $0 | currency }}
| Gebouwwaarde | {%input detail.custom.gebouwwaarde as: currency %} {% assign gebouwwaarde = detail.custom.gebouwwaarde %}| {{ beroeps | percentage }} | = {{ gebouwwaarde | currency }} x {{ beroeps | percentage }}| {%=$1+ gebouwwaarde*beroeps | round | currency %}
| Aktekosten Gebouw | {%input detail.custom.aktekosten_gebouw as: currency %}{% assign aktekosten_gebouw = detail.custom.aktekosten_gebouw %} | {{ beroeps | percentage }} | = {{ aktekosten_gebouw | currency }} x {{ beroeps | percentage }}| {%=$1+ aktekosten_gebouw*beroeps | round | currency %}
| | | | |{{ $1 | currency }}

{% assign check = current_account.value-$1 %}{% if ABS(check) <= 0.01 %}{% unexplained 0 %}{% else %}{% unexplained check %}{% endif %}
|{{ $0 | currency }}{% unexplained ABS($0) as:indicator %}|{% input custom.grond.range as:account_collection range:220 %}


{% ifi custom.extra.bijlage.document or custom.extra.toelichting != blank %}
{% stripnewlines %}

------

{% newline %}
| {% t “Extra toelichting” %}
| {% input custom.extra.bijlage as:file placeholder:’’ %}
{% endstripnewlines %}

{% input custom.extra.toelichting as:text size:mini placeholder:’’ %}
{% endifi %}
{% endfori %}

Hi Tine,

You start by opening a fori loop:

{% fori detail in current_account.details %}

However, it makes no sense to refer to current account in a reconciliation template. Better is to define a new custom collection, for example:

{% fori item in custom.current_assets %}

Regards,
Michiel