Hi,
Could you please assist in below, each value of the input fields (in the fori) are duplicated if there’s a second value on the for loop. How can we resolve this:
{% for rekeningen2 in selected2 %}
{% stripnewlines %}
| {% t “Description” %}
| {{ period.minus_1y.year_end_date |date:’%d/%m/%Y’ }}
| {% t “InCo” %} ({% t “P&L” %})
| {% t “RePa” %}
| {{ period.year_end_date |date:’%d/%m/%Y’ }}
{% newline %}
|—40%-----
|:—15%-----:
|:—15%-----:
|:—15%-----:
|—15%-----:+
{% newline %}
| {{ rekeningen2.original_number }} {{ rekeningen2.original_name as:text }}
| {% assign valuepy2 = rekeningen2.opening_value as:currency %} {{ valuepy2 | currency }}
|
|
| {% assign valuecy2 = rekeningen2.value as:currency %} {{ valuecy2 | currency }}
{% capture reken_key %}reken_{{ rekeningen2.key }}{% endcapture %}
{% fori newitem in custom[reken_key] %}
{% newline %}
| {% input newitem.description2 as:text required:true placeholder:‘Description’ %}
| {% $4+input newitem.amount2 as:currency %}
| {% $5+input newitem.InCo2 as:currency %}
| {% $6+input newitem.RePa2 as:currency %}
| {% =$7+ newitem.amount2+newitem.InCo2+newitem.RePa2 as:currency %}
{% endfori %}
{% newline %}
| {% t “reconcile” %}
| {% unreconciled valuepy2-$4 as:indicator unreconciled_text:“Still to reconcile” %} {{ valuepy2-$4 | currency }}
|
|
| {% unreconciled valuecy2-$7 as:indicator unreconciled_text:“Still to reconcile” %}{{ valuecy2-$7 | currency }}
{% endstripnewlines %}
{% endfor %}