This validation checks if the VAT amount on the invoice header is correctly calculated on the header.
| Item | Description |
|---|---|
| Technical Name | validate_calculated_vat |
| Availability | Generic |
When does this validation fail?
- Invoice amount or VAT amount is negative
- VAT code is 0% but VAT amount is not 0
- VAT code is not 0% but VAT amount is 0
- Calculated VAT amount does not match the entered VAT amount
- VAT amount ≥ amount excl. VAT, while 'tax explanation code' is not set to 'VT'
- VAT amount ≠ invoice amount, while 'tax explanation code' is set to 'VT'
When does this validation not fail?
- No VAT code or VAT amount filled in on the header
- VAT lines present (VAT splitting)
Additional information
What do the amounts mean?
- Invoice amount = invoice amount incl. VAT - credit limit.
- Actual VAT amount = VAT amount set on the invoice (may be the VAT amount on the VAT lines)
- Amount excl. VAT = invoice amount - specific VAT amount*
- Specific VAT amount* = calculated VAT using (gross) invoice amount and VAT percentage, thereby a specific calculation with the gross amount instead of the net amount.
- If the invoice amount is 0, the actual VAT amount is used.
- Calculated VAT amount = amount excl. VAT * VAT percentage
More information
An overview of all business validations is available in the article Business validations - overview.