{"id":28497,"date":"2026-06-09T15:22:47","date_gmt":"2026-06-09T13:22:47","guid":{"rendered":"https:\/\/support.serviceprotokoll.se\/kb\/tags-for-vat\/"},"modified":"2026-06-10T15:09:16","modified_gmt":"2026-06-10T13:09:16","slug":"tags-for-vat","status":"publish","type":"ht_kb","link":"https:\/\/support.serviceprotokoll.se\/en\/kb\/tags-for-vat\/","title":{"rendered":"Tags for price and VAT"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">These tags can be used in all places where a price section is used, i.e. work orders, service orders, service protocols, sales orders and quotes.<\/p>\n\n<h4 class=\"wp-block-heading\">1. Recommended summary box<\/h4>\n\n<p class=\"wp-block-paragraph\">This is a practical example of how totals can be laid out in a template.<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Sum excl. VAT<\/strong><\/td><td>{Gross}<\/td><\/tr><tr><td><strong>Discount<\/strong><\/td><td>{Discount}<\/td><\/tr><tr><td><strong>Subtotal before discount<\/strong><\/td><td>{Subtotal}<\/td><\/tr><tr><td><strong>VAT<\/strong><\/td><td>{Vat}<\/td><\/tr><tr><td><strong>Subtotal before discount<\/strong><\/td><td>{GrossIncVat}<\/td><\/tr><tr><td><strong>Tax reduction<\/strong><\/td><td>{TaxReduction}<\/td><\/tr><tr><td><strong>Paying before rounding<\/strong><\/td><td>{TotalBeforeRounding}<\/td><\/tr><tr><td><strong>Rounding<\/strong><\/td><td>{RoundingAdjustment}<\/td><\/tr><tr><td><strong>Total to pay<\/strong><\/td><td>{Total}<\/td><\/tr><tr><td><strong>Effective VAT percentage<\/strong><\/td><td>{TotalVatPct}<\/td><\/tr><tr><td><strong>Currency\/price unit<\/strong><\/td><td>{Unit}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h4 class=\"wp-block-heading\">2. All total amount<\/h4>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>0<\/strong><\/td><td><strong>Example of placement<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><\/thead><tbody><tr><td>{Net}<\/td><td>Total\/summary<\/td><td>Total cost excl. VAT.<\/td><\/tr><tr><td>{PriceTotalNet}<\/td><td>Total\/summary<\/td><td>Same as {Net}, but with clear PriceTotal prefix.<\/td><\/tr><tr><td>{Gross}<\/td><td>Total\/summary<\/td><td>Total sales amount excl. VAT, after discount.<\/td><\/tr><tr><td>{PriceTotalGross}<\/td><td>Total\/summary<\/td><td>Same as {Gross}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{Discount}<\/td><td>Total\/summary<\/td><td>Total discount excl. VAT.<\/td><\/tr><tr><td>{PriceTotalDiscount}<\/td><td>Total\/summary<\/td><td>Same as {Discount}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{Subtotal}<\/td><td>Total\/summary<\/td><td>Total before discount excl. VAT.<\/td><\/tr><tr><td>{PriceTotalSubtotal}<\/td><td>Total\/summary<\/td><td>Same as {Subtotal}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{Vat}<\/td><td>Total\/summary<\/td><td>Total VAT.<\/td><\/tr><tr><td>{PriceTotalVat}<\/td><td>Total\/summary<\/td><td>Same as {Subtotal}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{GrossIncVat}<\/td><td>Total\/summary<\/td><td>Same as {Vat}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{PriceTotalGrossIncVat}<\/td><td>Total\/summary<\/td><td>Same as {GrossIncVat}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{TaxReduction}<\/td><td>Total\/summary<\/td><td>Tax reduction\/ROT\/RUT deduction.<\/td><\/tr><tr><td>{PriceTotalTaxReduction}<\/td><td>Total\/summary<\/td><td>Same as {TaxReduction}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{Offered}<\/td><td>Total\/summary<\/td><td>Quoted amount, if available.<\/td><\/tr><tr><td>{PriceTotalOffered}<\/td><td>Total\/summary<\/td><td>Same as {Offered}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{TotalBeforeRounding}<\/td><td>Total\/summary<\/td><td>Total to pay before rounding.<\/td><\/tr><tr><td>{PriceTotalTotalBeforeRounding}<\/td><td>Total\/summary<\/td><td>Same as {TotalBeforeRounding}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{RoundingAdjustment}<\/td><td>Total\/summary<\/td><td>Rounding difference.<\/td><\/tr><tr><td>{PriceTotalRoundingAdjustment}<\/td><td>Total\/summary<\/td><td>Same as {RoundingAdjustment}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{Total}<\/td><td>Total\/summary<\/td><td>Final total to pay<\/td><\/tr><tr><td>{PriceTotalTotal}<\/td><td>Total\/summary<\/td><td>Same as {Total}, but with PriceTotal prefix.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h4 class=\"wp-block-heading\">3. Percentage, margin and VAT<\/h4>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>Tag in the Word template<\/strong><\/td><td><strong>Example of placement<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><\/thead><tbody><tr><td>{VatPct}<\/td><td>Total\/summary<\/td><td>VAT percentage when the document has a single VAT rate. For multiple VAT rates, {TotalVatPct} is recommended.<\/td><\/tr><tr><td>{PriceTotalVatPct}<\/td><td>Total\/summary<\/td><td>Same as {VatPct}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{TotalVatPct}<\/td><td>Total\/summary<\/td><td>Effective total VAT percentage for the entire document. For one VAT line, that line is displayed, for multiple lines, total VAT \/ total excl. VAT * 100 is calculated.<\/td><\/tr><tr><td>{PriceTotalTotalVatPct}<\/td><td>Total\/summary<\/td><td>Same as {TotalVatPct}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{DiscountPct}<\/td><td>Total\/summary<\/td><td>Discount as a percentage.<\/td><\/tr><tr><td>{PriceTotalDiscountPct}<\/td><td>Total\/summary<\/td><td>Same as {DiscountPct}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{Earnings}<\/td><td>Total\/summary<\/td><td>Contribution margin\/profit, based on sales minus cost.<\/td><\/tr><tr><td>{PriceTotalEarnings}<\/td><td>Total\/summary<\/td><td>Same as {Earnings}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{EarningsPct}<\/td><td>Total\/summary<\/td><td>Coverage ratio\/profit margin in percent.<\/td><\/tr><tr><td>{PriceTotalEarningsPct}<\/td><td>Total\/summary<\/td><td>Same as {EarningsPct}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{TaxReductionRate}<\/td><td>Total\/summary<\/td><td>Tax reduction percentage, if available.<\/td><\/tr><tr><td>{PriceTotalTaxReductionRate}<\/td><td>Total\/summary<\/td><td>Same as {TaxReductionRate}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{HasSingleVatRate}<\/td><td>Total\/summary<\/td><td>Shows whether the document only has one VAT rate.<\/td><\/tr><tr><td>{PriceTotalHasSingleVatRate}<\/td><td>Total\/summary<\/td><td>Same as {HasSingleVatRate}, but with PriceTotal prefix.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h4 class=\"wp-block-heading\">4. Currency, price unit and rounding<\/h4>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>Tag in the Word template<\/strong><\/td><td><strong>Example of placement<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><\/thead><tbody><tr><td>{Unit}<\/td><td>Total\/summary<\/td><td>Price unit\/currency displayed, for example SEK.<\/td><\/tr><tr><td>{PriceTotalUnit}<\/td><td>Total\/summary<\/td><td>Same as {Unit}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{CurrencyCode}<\/td><td>Total\/summary<\/td><td>Currency code, if available.<\/td><\/tr><tr><td>{PriceTotalCurrencyCode}<\/td><td>Total\/summary<\/td><td>Same as {CurrencyCode}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{CurrencyFactor}<\/td><td>Total\/summary<\/td><td>Currency factor<\/td><\/tr><tr><td>{PriceTotalCurrencyFactor}<\/td><td>Total\/summary<\/td><td>Same as {CurrencyFactor}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{MinorUnits}<\/td><td>Total\/summary<\/td><td>Number of decimal places for the currency.<\/td><\/tr><tr><td>{PriceTotalMinorUnits}<\/td><td>Total\/summary<\/td><td>Same as {MinorUnits}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{RoundingStep}<\/td><td>Total\/summary<\/td><td>Rounding steps.<\/td><\/tr><tr><td>{PriceTotalRoundingStep}<\/td><td>Total\/summary<\/td><td>Same as {RoundingStep}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{RoundingMode}<\/td><td>Total\/summary<\/td><td>Rounding method.<\/td><\/tr><tr><td>{PriceTotalRoundingMode}<\/td><td>Total\/summary<\/td><td>Same as {RoundingMode}, but with PriceTotal prefix.<\/td><\/tr><tr><td>{TaxReductionType}<\/td><td>Total\/summary<\/td><td>Type of tax reduction<\/td><\/tr><tr><td>{PriceTotalTaxReductionType}<\/td><td>Total\/summary<\/td><td>Same as {TaxReductionType}, but with PriceTotal prefix.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h4 class=\"wp-block-heading\">5. VAT split with multiple VAT rates<\/h4>\n\n<p class=\"wp-block-paragraph\">Use a Word table when the document may contain multiple VAT rates. The {VatBreakdown} tag should be in the first cell of the table. The row below acts as a template row and is repeated for each VAT row.<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>{VatBreakdown}<\/strong><\/td><td><strong>Excl. VAT<\/strong><\/td><td><strong>VAT<\/strong><\/td><td><strong>Incl. VAT<\/strong><\/td><\/tr><tr><td>{VatBreakdownVatPct}<\/td><td>{VatBreakdownGross}<\/td><td>{VatBreakdownVat}<\/td><td>{VatBreakdownGrossIncVat}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h4 class=\"wp-block-heading\">6. Short tags in VAT rows<\/h4>\n\n<p class=\"wp-block-paragraph\">The shorter tags can be used in the VAT breakdown template row, but the prefixed tags above are recommended to avoid confusion with total tags.<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>{VatBreakdown}<\/strong><\/td><td><strong>Excl. VAT<\/strong><\/td><td><strong>VAT<\/strong><\/td><td><strong>Incl. VAT<\/strong><\/td><\/tr><tr><td>{VatPct}<\/td><td>{Gross}<\/td><td>{Vat}<\/td><td>{GrossIncVat}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h4 class=\"wp-block-heading\">Quick guide to choosing a VAT tag<\/h4>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>Tag in the Word template<\/strong><\/td><td><strong>Example of placement<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><\/thead><tbody><tr><td>{VatPct}<\/td><td>Older\/simple template<\/td><td>Use when the document only has one VAT rate.<\/td><\/tr><tr><td>{TotalVatPct}<\/td><td>Recommended total box<\/td><td>Use when the template should always show a VAT percentage, even if multiple VAT rates exist.<\/td><\/tr><tr><td>{VatBreakdownVatPct}<\/td><td>VAT breakdown table<\/td><td>Use in row template to display each VAT rate on its own row.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>These tags can be used in all places where a price section is used, i.e. work orders, service orders, service protocols, sales orders and quotes. 1. Recommended summary box This is a practical example of how totals can be laid out in a template. Sum excl. VAT {Gross} Discount {Discount}&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_searchwp_excluded":"","footnotes":""},"ht-kb-category":[808],"ht-kb-tag":[1027,1025,1024],"class_list":["post-28497","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-print-template-tags","ht_kb_tag-price-section","ht_kb_tag-tags-for-vat","ht_kb_tag-vat"],"_links":{"self":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb\/28497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/comments?post=28497"}],"version-history":[{"count":4,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb\/28497\/revisions"}],"predecessor-version":[{"id":28528,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb\/28497\/revisions\/28528"}],"wp:attachment":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/media?parent=28497"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb-category?post=28497"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=28497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}