When prepayments are generated, the calculation is based on the ex-tax amount if, in the payment terms, the %VAT of the first line of the payment term has the value: 0.
The following functions are impacted by the activity code :
Sales > Orders > Prepayment management