<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Display dollar amount of percentage based tax (or other fee) on custom quote template in Sales Hub Tools</title>
    <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Display-dollar-amount-of-percentage-based-tax-or-other-fee-on/m-p/399542#M5259</link>
    <description>&lt;P&gt;I wasn't entirely sure where to put custom quote template related posts since it's a new feature, but let me know if there is a better place than this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The sales team adds taxes to quotes in percent format (ex: GST 5%) as standard practice, but the custom quote was only showing the tax line item as the percentage value, not the actual dollar amount of that tax. In standard quote/invoice practice the tax items needed to show the actual dollar amount. Even though it is possible to add taxes as dollar amounts when creating the quote, it would be counter intuitive to have them calculate the tax amount manually each time, when sales taxes are inherently percentage based.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I couldn't find a system variable that would display the percentage based tax as dollar amount, so please let me know if that does exist. &lt;EM&gt;If it doesn't it would be a very helpful addition.&lt;/EM&gt; What I ended having to do was convert the system variable for the one_time subtotal into a custom variable that could then be used with filter or operator. The system variable itself (SUB_TOTALS.one_time.subTotal) wouldn't work with the operator for whatever reason, despite its value being a number. In case anyone else needs reference, I did something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{%- for fee in ADDITIONAL_FEES -%}
&amp;lt;tr&amp;gt;
  &amp;lt;td&amp;gt;{{ fee.name }}&amp;lt;/td&amp;gt;
  &amp;lt;td&amp;gt;
    {{ fee.category == "DISCOUNT" ? "-" : null }} 
    {% if fee.isPercentage %}
      {% set feeDollarCalc = fee.amount / 100 * SUB_TOTALS.one_time.subTotal %}
      ({{ fee.amount }}%) {{ feeDollarCalc|format_currency(LOCALE, CURRENCY, true) }} {{ QUOTE_PROPS.hs_currency }}
    {% else %}
      {{ fee.amount|format_currency(LOCALE, CURRENCY, true)}} {{ QUOTE_PROPS.hs_currency }}
    {% endif %}
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which results in this sort of output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-13 at 1.54.06 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/36429i5203661F549D3CCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-01-13 at 1.54.06 PM.png" alt="Screen Shot 2021-01-13 at 1.54.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned, if there is a more elegant approach I'd love to hear about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 22:12:46 GMT</pubDate>
    <dc:creator>graemeduckett</dc:creator>
    <dc:date>2021-01-13T22:12:46Z</dc:date>
  </channel>
</rss>

