Add or remove VAT
calculate_vatAdd VAT to a net price or take it out of a gross price at the standard (20%), reduced (5%) or any other rate, with the net, VAT and gross amounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The price | |
| direction | Yes | add: the amount is net; remove: the amount includes VAT | |
| ratePercent | No | VAT rate as a percentage; defaults to 20 |