The Date and Due date on the created VAT invoice follows the To date and Due date from the Process VAT report window (TX502000) even if the period is closed or the periods are user defined and not following the end date of the VAT periods
Example:
Financial period 03-2023 are ending 27.03.2023 and VAT period 01-2023 ending 30.03.2023
This invoice will be posted in Period 04-2023 with the date 30.03.2023 and due date as defined in the Process VAT report window.
New warning and error message is added if there is no open periods to post the VAT invoice to.