Hello
The gl3240p routine UpdatePeriods searches the tables
[]a_batch[/:m]
[]a_journal[/:m]
[]a_gift_batch[/:m][/list:u]
and reduces the values of a_batch_period_i resp. a_journal_period_i by the number of a_ledger.a_number_fwd_posting_periods_i's.
In openpetra this is not possible anymore, because the old a_batch entries are not moved to previous_year_batch and so on.
My suggestion is: We do not change this number any more and accept a value of a_batch_period_i = 520 in ten years and so on.
So we can drop UpdatePeriods completely. We additionly have to remove the limit of 20 which is defined in a_accounting_period.a_accounting_period_number_i, but actually this seems to be a "comment limit".
Best regards
Wolfgang