Better support for chart of account evolution over time
For now, there is a single active check box which is only usable if no moves have ever been made on this account or its children.
But some countries (like Germany) have a highly evolving charts for almost every fiscal year. The 'active' field is not good enough as account should deactivated from a specific fiscal year.
Here is my proposal:
- Add a from/to date on the account (and template) (and enforce on children)
- Add a function field that convert the dates into valid fiscal years
- Enforce move creation inside the dates/fiscal year
- Compute active field using the dates/fiscal year/periods from the context
- Ensure that date/fiscal year/period are set in the search context for all document storing account
- Add a forward account field on account that have an end date. The property "account*used" must follow such forward until a valid account for the date is found.
The same design should be added also on the tax code and line (but not the forward).