Is there a way to keep historical data that are bound to period.people (shareholders and/or directors)?
For example: if you’ve a got a file where you store information with regard to shareholders that does not change with the accounting period (such as their birthdate), how do you make sure that information ‘rolls over’ to the following periods)?
I tried with (for person in period.people), attaching person.custom.birthdate for each person. I’d like this birthdate to ‘roll over’ over other accounting periods.
For each person in a period, I’d like to add the ‘wettelijke vertegenwoordiger’ (if any) to the company object by using company.custom.[namespace]. However, this doesn’t work (code below). Can you help me here?
Thanks!
´´´
{% for person in period.people %}
{% assign namespace = person.name | replace:" “,”" | replace:".","" | replace:"-","_" | downcase %} {% comment %}Deze namespace wordt telkens opgemaakt als variabelenaam gekoppeld aan een person{% endcomment %}
{% assign company.custom.[namespace].wettelijkevertegenwoordiger_naam = person.custom.represented_by_name %} {% comment %}Steek de wettelijke vertegenwoordiger hierin{% endcomment %}
However, I found a workaround via a for-loop where a break is introduced when names match. So it’s feasible, but (as you rightly pointed out) not in the way I proposed.