Standard template => 3 fields

The following code is when you want to add an extra column to the SF standard template for an account:

{% t= “titel” fr:“titre” en:“Item” %}
{% t= “waarde” fr:“valeur” en:“Value” %}
{% t= “referte” fr:“reference” en:“Reference” %}
{% t= “extra info” fr:“extra info” en:“Description” %}
{% stripnewlines %}
{% fori detail in current_account.details %}
{% if forloop.first %}
|--------------20%-----------------|--------------15%-----------------|--------------------35%-----------|------10%------|-------20%--------:+{% newline %}
{% endif %}
|{% input detail.custom.title placeholder:‘titel’ %}
|{% input detail.custom.referte placeholder:‘referte’ %}
| {% ic %}{% input detail.custom.text as:text size:mini placeholder:‘extra info’ %}{% endic %}
{% nic %}{{ detail.custom.text | multiline_table}}{% endnic %}
|{% input detail.custom.doc as:file %}
|{% if current_account.liability_or_income %}
{% $0+input detail.custom.value as:n_currency placeholder:‘waarde’ %}
{% else %}
{% $0+input detail.custom.value as:currency placeholder:‘waarde’ %}
{% endif %}
{% newline %}
{% ic %}
{% if forloop.last %}
| | | |
|{% if current_account.liability_or_income %}
{{ -1*$0 | currency }}
{% else %}
{{ $0 | currency }}
{% endif %}

{% endif %}
{% endic %}
{% endfori %}
{% endstripnewlines %}

Thanks for the help Sam.

1 Like