In of our reconciliation templates we’ve used the people/person drop to gather information about directors and shareholders. The following input tag was used:{% fori person in period.people %}.
We opened a new period and noticed that the data entered in this table cannot be copied to the next period. Can you review the code and investigate this issue?
I have the following code (stripped out the non relevant things):
{% fori person in period.people %}
|{% input person.custom.typepersonne as:select options:"PP|PM" %}
|{% input person.name placeholder:'Nom' %}
|{% input person.director as:boolean %}
|{% if person.custom.typepersonne == "PM" %}{% input person.custom.typedirector as:select options:answer_optionsdirectorpm option_values:"Président|Directeur général|Administrateur" %}{% else %}{% input person.custom.typedirector as:select options:answer_optionsdirector option_values:"Gérant|Président|Directeur général|Administrateur|Représentant légal|Exploitant|Indivisaire" %}{% endif %}
|{% input person.shareholder as:boolean %}
|{% unless person.custom.typepersonne == "PM" %}{% input person.custom.dbe as:boolean %}{% endunless %}
|{% unless person.custom.typepersonne == "PM" %}{% input person.custom.carteiddate as:date placeholder:'' %}{% endunless %}
|{% unless person.custom.typepersonne == "PM" %}{% input person.custom.a1date as:date placeholder:'' %}{% endunless %}
|{% input person.custom.typecac as:select options:answer_optionscac option_values:"Titulaire|Suppléant" %}
{% newline %}{% endfori %}