BASKET-VATRates- provide exactly this breakdown.
All tags are permitted in all templates. Except for BASKET-VATRates-Data, they belong in the loop {@BASKET-VATRates-Data}, because they always describe a specific tax rate.
Guide: VAT · Reference: Basket totals
The tax breakdown in the template
The loop only runs over the tax rates that actually occur in the basket. A shop with three configured rates and a basket in which only the reduced rate occurs returns exactly one iteration.
Goods value or order value
For each tax rate there are two reference values, and the choice between them determines whether shipping and payment costs are included.BASKET-VATRates-VAT exists only once, not separately for goods and order. It returns the tax amount of the respective rate.The tags
BASKET-VATRates-Data
As a single tag, the number of tax rates used in the basket; as a range tag, the bracket around the breakdown; as a loop, one iteration per tax rate.The count is useful for a case distinction in the template: with exactly one tax rate, a single line in the invoice footer is often enough; the table only becomes worthwhile from two rates onward.
BASKET-VATRates-Rate
Outputs the tax rate as a percentage.BASKET-VATRates-VAT
Outputs the VAT amount attributable to this tax rate.BASKET-VATRates-SubTotal, -SubTotalNet, and -SubTotalGross
Output the goods value attributable to this tax rate: according to the shop setting, explicitly net, or explicitly gross.BASKET-VATRates-Total, -TotalNet, and -TotalGross
Output the same for the order value, that is, including shipping and payment costs.SubTotal and Total without a suffix follow the shop setting. In a gross shop, they return the same value as the Gross variant; in a net shop, the same as the Net variant.Amounts for further processing
Three technical variants output the values unformatted and in a freely selectable notation, intended for interfaces and tracking.
Without parameters, two decimal places are output with a period as the separator.
The technical variants for the entire basket have a third parameter as a multiplier. The tags on this page do not support it.
Alternative currency
For each of these values there is also a variant in an alternative currency, fromBASKET-VATRates-AltCurrencySubTotal to BASKET-VATRates-AltCurrencyVAT. They are described together with the other tags for the alternative currency.
Reference: AltCurrency- (Alternative currency)
Related topics
- Guide: VAT
- Reference: Basket totals
- Reference: AltCurrency- (Alternative currency)
