Issue 10961

Title
Misconfigured adjustment period can break general ledger
Priority
bug
Status
need-eg
Nosy list
ced, pokoli, timitos
Assigned to
Keywords

Created on 2021-11-16.12:46:41 by timitos, last changed 2 weeks ago by pokoli.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-11-16.13:22:37
On 2021-11-16 12:46, Korbinian Preisler wrote:
> If you have
> *  fiscalyear from 2021-01-01 to 2021-12-31
> *  monthly accounting periods
> *  an adjustment period with start date 2021-01-01 and end date 2021-12-31
> 
> and you select the adjustment period as end period on the general ledger account form view
> the method get_periods_ids() from 'account.general_ledger.account' does not return proper period ids
> for computation of the account values.

Why is it not proper periods?

Rem:
    The rules to report issue are:

    * define the setup
    * state what is happening
    * state what should be happening.
Author: [hidden] (timitos) Tryton translator
Date: 2021-11-16.12:46:41

If you have
* fiscalyear from 2021-01-01 to 2021-12-31
* monthly accounting periods
* an adjustment period with start date 2021-01-01 and end date 2021-12-31

and you select the adjustment period as end period on the general ledger account form view
the method get_periods_ids() from 'account.general_ledger.account' does not return proper period ids
for computation of the account values.

I think that it was not intended to allow such configurations for the adjustment period. So maybe we need to add some constraints to prevent misconfiguration.

History
Date User Action Args
2021-11-18 10:20:11pokolisetnosy: + pokoli
2021-11-16 13:22:37cedsetmessages: + msg71687
nosy: + ced
status: unread -> need-eg
2021-11-16 12:46:41timitoscreate