Hello,
I made a change to one of our existing account template but I have a problem because when I type an amount in the new field, the program also copy this amount to the next field in the table.
This is what happens:
This is what I have in the code. Can you tell me what is wrong?
Blockquote
| | | {% for year in period.calendar_years %}{{ year.end_date | date:‘%Y’ }}|{% endfor %}{% t “Totaal” %}
|-----------------------------------------+|—|----------15%-------------:|---------15%------------:|---------15%------------------------------:|-------15%-------------:|{% fori detail in current_account.custom.details %}{% assign $30 = 0 %}
| {% t “Bedrag aan vergoeding die in het belastbaar tijdperk als beroepskost werd ingebracht” %} | {% input detail.custom.doc as:file %} | {% for year in period.calendar_years %}{% stripnewlines %}
{% if forloop.last %}{% assign drop = detail.custom.value %} {% else %}{% assign drop = detail.custom[forloop.index0] %}{% endif %}
{% case forloop.index0 %}
{% when 0 %}
{% $0+input drop as:currency placeholder:‘’ %}
{% when 1 %}
{% $10+input drop as:currency placeholder:‘’ %}
{% when 2 %}
{% $20+input drop as:currency placeholder:‘’ %}
{% endcase %}
|
{% endstripnewlines %}{% endfor %} {{ $0+$10+$20 | currency }}{% assign $1=$1+$0 %}{% assign $11=$11+$10 %}{% assign $21=$21+$20 %}{% assign $0=0 %}{% assign $10=0 %}{% assign $20=0 %}
|_ {% t “Bedrag aan de vergoeding die in het belastbaar tijdperk werd betaald of toegekend” %} | | {% for year in period.calendar_years %}{% stripnewlines %}
{% if forloop.last %}{% assign drop2 = detail.custom.bedrag %} {% else %}{% assign drop2 = custom.bedrag[forloop.index] %}{% endif %}
{% comment %}{% if forloop.last %}{% assign drop2 = custom.bedrag.value %}{% else %}{% assign drop2 = custom.bedrag[forloop.index] %}{% endif %} {% endcomment %}
{% case forloop.index0 %}
{% when 0 %}
{% $2+input drop2 as:currency placeholder:‘’ %}
{% when 1 %}
{% $22+input drop2 as:currency placeholder:‘’ %}
{% when 2 %}
{% $23+input drop2 as:currency placeholder:‘’ %}
{% endcase %}
|
{% endstripnewlines %} {% endfor %} {{ $2+$22+$23 | currency }}{% assign $2=0 %}{% assign $22=0 %}{% assign $23=0 %}{% endfori %}
|
| {% t “Totaal” %} | |{% for year in period.calendar_years %}{% case forloop.index0 %}{% when 0 %}{{ $1 | currency }}{% when 1 %}{{ $11 | currency }}{% when 2 %}{{ $21 | currency }}{% endcase %}|{% endfor %}{{ $1+$11+$21 | currency }}{% unreconciled current_account.value-($11+$21+$1) %}_|
Blockquote
Thanks a lot,
Sylvi