Tax
RateTotal
RateTotal contains a sum of all the tax rates in the document with a matching category and rate.
Schema ID
https://gobl.org/draft-0/tax/total#/$defs/RateTotal
Properties
Title | Property | Type | Req. | Description |
---|---|---|---|---|
Key | key | cbc.Key | Optional rate key is required when grouping. | |
Country | country | l10n.TaxCountryCode | Country code override when issuing with taxes applied from different countries, it’d be very strange to mix rates from different countries, but in theory this would be possible. | |
Extensions | ext | tax.Extensions | If the rate is defined with extensions, they’ll be used to group by also. | |
Base | base | num.Amount | true | Base amount that the percentage is applied to. |
Percent | percent | num.Percentage | Percentage of the rate. Will be nil when taxes are exempt. | |
Surcharge | surcharge | tax.RateTotalSurcharge | Surcharge applied to the rate. | |
Amount | amount | num.Amount | true | Total amount of rate, excluding surcharges |