If the payment is of the Prepayment type and if the Sales tax % field has for value 0, the calculation of the automatically generated prepayment will be based on the excluding tax amount of the order.
If the payment is of the Prepayment type and if the Sales tax % field has for value 100, the calculation of the automatically generated prepayment will be based on the tax-including amount of the order.