When crediting a sales invoice in combination with a broken fiscal year, the wrong VAT period was sometimes selected

When crediting a sales invoice in combination with a broken fiscal year, the wrong VAT period was sometimes selected.