Here you configure when the sales tax is due:

Book with invoice date (agreed) = assessment based on the consideration agreed
Book with payment date (received) = assessment based on the consideration received

Orders will perform the sales tax / VAT book entries accordingly.

This setting can be changed anytime. However, existing orders and book entries will not and can not be adapted. Only future orders will use the new setting.