ok, another point for discussion.
Should I implement a default date for member join/leave date (like @ced and @pokoli suggested in codereview )
here the discussion:
maybe we should add a default value for join date (probably today).
this date is important and it can’t be changed afterwards, so having a default
is very dangerous.
But normally you encode the date the member joined. So for me, it makes sense to
have a default.
If we decide to have a default, should i permit the user to modify the date in draft?
Now you can only modify the membership line when you go from 'running to ‘draft’, and you cannot go from ‘stopped’ to ‘draft’ (so the leave_date cannot be modified by the user via the gui)
My opinion is to not have a default, so the user will be force to check before committing the membership, and maintain the strict flow. But I’m open for discussion.
But normally you encode the date the member joined. […]
What do you mean? You’re referring to the creation date of the record?