Hi Gheorghe,
This can be achieved by enabling the "Set Invoice Date on Payment" setting in the Tax Configuration.
Here is the related documentation: https://docs.whmcs.com/payments/tax-configuration/#vat-settings