After grouping all the lines on the monthly payment summary, I still have the problem that account_payment_clearing seems to want clearing accounts that disallow party_required.
In the French PCG, when exchange bills are returned to the supplier, the accounting movement
is from 401x to 403x. Then when paid 512x will reconcile with 403x.
(similar in reverse direction using 411x/413x for clients)
Why not allow clearing account with party_required?
Can the grouping be adapted to put the ultimate move line there instead in order to be selectable from the statement during payment processing? That is, ultimately that is what a large number of our groupings are for - treating monthly exchange bill statements.