Hello Alnus, thank you for your attention - and welcome to the club.
Your idea sounds very much plausible, unluckily none of the two relevant accounts are closed. Where else could the problem be?
The error message is clear that the problem is one account used is closed.
Maybe you did not check the right accounts or you forgot that other accounts are involved like the tax account.
This happens in sales and purchases when trying to “process” an order.
Background: I took the wrong decision not to choose the standard German SKR04 account scheme, but trying to enhance the “minimal account table”. Bad idea, but now such it is. Due to advice of an accountant, I had to rearrange some of the accounts. Now this problem occurs again. I checked all the accounts, not of them is closed. Definitively not.
Is there any possibility for solving this problem - or will I really have to start over from close to scratch with SKR04?
Indeed, there where two accounts without type. I added accounts there. Still it does not work. None of the account has a “debit type” - whatever this is. Can that be the problem?
I hit the same problem with the « French » chart of account whilst creating a Sales Order. What I did :
Run the query « Select * from account_account where closed = true; » in « Postgres / pgadmin4 »
This query confirmed that 252 accounts were « closed »
I did not bother to find out which one
Run the query « UPDATE account_account SET closed = false WHERE closed = true; »
That solved the problem : I could advance the Sales Order to « Process »
Suggestion : whilst processing the sales order, to have the error message display one such account encountered in this state up until there are no more in that state.