Using the new beta feature we can finally customise templates to reflect our 14 brands and numberous worldwide locations. Everything is perfectly set except when displaying the line item table and specifically line item discounts. THe following was pulled from the modern template/proposals tall where the quote discount is written under the line item total and displays fine in the preview function. See the highlighted section for the issue
<h1 style=“margin-top: 50px; text-align: left;”>Products & Services</h1>
<table>
<thead>
<tr>
<th>Item & Description</th>
<th>Quantity</th>
<th>Unit price</th>
<th>Total</th>
</tr>
</thead>
<tbody class=“line-items”>
{% for item in LINE_ITEMS|sort(False, False, ‘hs_position_on_quote’) %}
<tr>
<td>
{{ item.name }}
<br>
{{ item.description }}
</td>
<td>{{ item.quantity }}</td>
<td>{{ item.price|format_currency(LOCALE, CURRENCY, true) }}</td>
<td>
{{ item.amount|format_currency(LOCALE, CURRENCY, true) }}
{% if item.recurringbillingfrequency %}
/ {{ item.recurringbillingfrequency }}
{% endif %}
{% if item.discount %}
<br>
after {{ item.discount|format_currency(LOCALE, CURRENCY, true) }} discount
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div style=“flex-direction: column;”>
{% if SUB_TOTALS|length > 0 %}
<h3>Subtotals</h3>
<table>
<tbody>
{% if SUB_TOTALS.one_time %}
<tr>
<td>
One-time subtotal
</td>
<td>
{{ SUB_TOTALS.one_time.subTotal|format_currency(LOCALE, CURRENCY, true) }}</td>
</tr>
{% endif %}
{% if SUB_TOTALS.monthly %}
<tr>
<td>
Monthly recurring subtotal
</td>
<td>
{{ SUB_TOTALS.monthly.subTotal|format_currency(LOCALE, CURRENCY, true) }} / month
</td>
</tr>
{% endif %}
{% if SUB_TOTALS.quarterly %}
<tr>
<td>
Quarterly recurring subtotal
</td>
<td>
{{ SUB_TOTALS.quarterly.subTotal|format_currency(LOCALE, CURRENCY, true) }} / quarter
</td>
</tr>
{% endif %}
{% if SUB_TOTALS.per_six_months %}
<tr>
<td>
Monthly recurring subtotal
</td>
<td>
{{ SUB_TOTALS.per_six_months.subTotal|format_currency(LOCALE, CURRENCY, true) }} / six months
</td>
</tr>
{% endif %}
{% if SUB_TOTALS.annually %}
<tr>
<td>
Annually recurring subtotal
</td>
<td>
{{ SUB_TOTALS.annually.subTotal|format_currency(LOCALE, CURRENCY, true) }} / per year
</td>
</tr>
{% endif %}
{% if SUB_TOTALS.per_two_years %}
<tr>
<td>
Per two years recurring subtotal
</td>
<td>
{{ SUB_TOTALS.per_two_years.subTotal|format_currency(LOCALE, CURRENCY, true) }} / per two years
</td>
</tr>
{% endif %}
{% if SUB_TOTALS.per_three_years %}
<tr>
<td>
Per three years recurring subtotal
</td>
<td>
{{ SUB_TOTALS.per_three_years.subTotal|format_currency(LOCALE, CURRENCY, true) }} / per three years
</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
{% if ADDITIONAL_FEES|length > 0 %}
<h3>Other fees</h3>
<table>
<tbody>
{% for fee in ADDITIONAL_FEES %}
<tr>
<td>
{{ fee.name }}
</td>
<td>
{{ fee.category == “DISCOUNT” ? “-” : null }}
{% if fee.isPercentage %}
{{ fee.amount }} %
{% else %}
{{ fee.amount|format_currency(LOCALE, CURRENCY, true)}}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<div style=“text-align: right;”>
<h3>Total {{ QUOTE_TOTAL|format_currency(LOCALE, CURRENCY, true) }}</h3>
The total doesn’t include any applicable taxes.
</div>
</div>
</div>
</div>
<!-- QUOTE SECTION END -->
When a discount either perfectage or set amount is entered into the line item field “unit discount” when creating a quote this does not display. Possibly this HubSpot Created property isn’t actually identified as “item.discount” but as I have no access to this property I can’t check.
Any ideas or work arounds? It is essential that my sales team can show line item discounts when given on specific products but not have it displayed when no discount is provided.
