Type amount ignores inactive accounts
Here are the steps to reproduce the issue using just account module:
- Create a company and use the minimal account chart
- Create a fiscalyear for 2020 and another for 2021
- Create a move on 31/12/2020 with "Main Cash" Account with 100€ in debit and "Main Revenue" as counterpart.
- Set end date on "Main Cash" to 31/12/2020
- Open the Balance sheet with date 01/01/2020.
Current behaviour:
- The "Asset\Current\Type" has an amount of 0€
Expected behaviour:
- The same type has the amount of 100€ cumulated from previous fiscalyear.
Note that the value of the type is correct until 31/12/2020 but it's incorrect after the end date of the account.