fx_tax_vat_calc
Compute VAT for an amount in a given country from built-in VAT rate tables: net, VAT and gross, standard or reduced rate, treating the amount as VAT-inclusive or exclusive. Pure; price 0.0 (free).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to compute VAT on | |
| country | Yes | ISO 3166 country code with a VAT rate on file | |
| rateType | No | Which VAT rate to apply (default: standard) | |
| amountIncludesVat | No | Treat amount as VAT-inclusive (gross) rather than net (default: false) |