When implementing, I found that it was more efficient to update the tax lines when payments were added to the invoice instead of when closing the period. This is because it is difficult to search for the invoices that have payments updated during the closed period.
So by default the tax ratio the paid invoice is moved to the current period.
I will add a wizard on move line, like the reconciliation, to add a line to an invoice and select the date/period at which this should be registered.